summaryrefslogtreecommitdiff
path: root/modules/openid
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-05-24 17:39:35 +0000
committerDries Buytaert <dries@buytaert.net>2009-05-24 17:39:35 +0000
commita24a6c2bba2d15ab835e0b0fce9354bb6fb16c5b (patch)
tree9194465a044c0fdad447eba2906f0472a4dff515 /modules/openid
parenta5f42fd007bf3646261b431c52cde53657e21564 (diff)
downloadbrdo-a24a6c2bba2d15ab835e0b0fce9354bb6fb16c5b.tar.gz
brdo-a24a6c2bba2d15ab835e0b0fce9354bb6fb16c5b.tar.bz2
- Patch #471070 by stella: millions of code style fixes.
Diffstat (limited to 'modules/openid')
-rw-r--r--modules/openid/openid.api.php2
-rw-r--r--modules/openid/openid.module16
-rw-r--r--modules/openid/openid.pages.inc4
3 files changed, 11 insertions, 11 deletions
diff --git a/modules/openid/openid.api.php b/modules/openid/openid.api.php
index 7b9be59b2..41f099148 100644
--- a/modules/openid/openid.api.php
+++ b/modules/openid/openid.api.php
@@ -19,7 +19,7 @@
* Possible values:
* - request: Modify parameters before they are sent to the OpenID provider.
* @param $request
- * An associative array of parameter defaults to which to modify or append.
+ * An associative array of parameter defaults to which to modify or append.
* @return
* An associative array of parameters to be merged with the default list.
*
diff --git a/modules/openid/openid.module b/modules/openid/openid.module
index 84fb68219..3e6090493 100644
--- a/modules/openid/openid.module
+++ b/modules/openid/openid.module
@@ -384,14 +384,14 @@ function openid_association($op_endpoint) {
$assoc_response['mac_key'] = base64_encode(_openid_dh_xorsecret($shared, $enc_mac_key));
}
db_insert('openid_association')
- ->fields(array(
- 'idp_endpoint_uri' => $op_endpoint,
- 'session_type' => $assoc_response['session_type'],
- 'assoc_handle' => $assoc_response['assoc_handle'],
- 'assoc_type' => $assoc_response['assoc_type'],
- 'expires_in' => $assoc_response['expires_in'],
- 'mac_key' => $assoc_response['mac_key'],
- 'created' => REQUEST_TIME,
+ ->fields(array(
+ 'idp_endpoint_uri' => $op_endpoint,
+ 'session_type' => $assoc_response['session_type'],
+ 'assoc_handle' => $assoc_response['assoc_handle'],
+ 'assoc_type' => $assoc_response['assoc_type'],
+ 'expires_in' => $assoc_response['expires_in'],
+ 'mac_key' => $assoc_response['mac_key'],
+ 'created' => REQUEST_TIME,
))
->execute();
$assoc_handle = $assoc_response['assoc_handle'];
diff --git a/modules/openid/openid.pages.inc b/modules/openid/openid.pages.inc
index 94c2a441f..ed305639f 100644
--- a/modules/openid/openid.pages.inc
+++ b/modules/openid/openid.pages.inc
@@ -94,7 +94,7 @@ function openid_user_delete_form($form_state, $account, $aid = 0) {
':aid' => $aid,
))
->fetchField();
- return confirm_form(array(), t('Are you sure you want to delete the OpenID %authname for %user?', array('%authname' => $authname, '%user' => $account->name)), 'user/'. $account->uid .'/openid');
+ return confirm_form(array(), t('Are you sure you want to delete the OpenID %authname for %user?', array('%authname' => $authname, '%user' => $account->name)), 'user/' . $account->uid . '/openid');
}
function openid_user_delete_form_submit(&$form_state, $form_values) {
@@ -106,5 +106,5 @@ function openid_user_delete_form_submit(&$form_state, $form_values) {
if ($query) {
drupal_set_message(t('OpenID deleted.'));
}
- $form_state['#redirect'] = 'user/'. $form_state['#args'][0]->uid .'/openid';
+ $form_state['#redirect'] = 'user/' . $form_state['#args'][0]->uid . '/openid';
}