Completed
Branch 7.x-3.x (9d48fc)
by Devin
04:36
created
modules/commons/commons_polls/commons_polls.module 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 function commons_polls_form_node_form_alter(&$form, &$form_state, $form_id) {
26 26
   $node = $form['#node'];
27 27
 
28
-  list(, , $bundle) = entity_extract_ids('node', $node);
28
+  list(,, $bundle) = entity_extract_ids('node', $node);
29 29
 
30 30
   if ($bundle == 'poll' && empty($node->nid)) {
31 31
     drupal_set_title(t('Create a poll'));
Please login to merge, or discard this patch.
includes/incidents/commons_radioactivity.incidents_flag.inc 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,14 +17,14 @@
 block discarded – undo
17 17
     if ($op == 'flag') {
18 18
       // A user following their own node should not increase radioactivity.
19 19
       if ($node->uid != $account->uid) {
20
-        commons_radioactivity_incident_node($node,  COMMONS_RADIOACTIVITY_FLAG_NODE);
20
+        commons_radioactivity_incident_node($node, COMMONS_RADIOACTIVITY_FLAG_NODE);
21 21
       }
22 22
     }
23 23
 
24 24
     if ($op == 'unflag') {
25 25
       // A user unfollowing their own node should not decrease radioactivity.
26 26
       if ($node->uid != $account->uid) {
27
-        commons_radioactivity_incident_node($node,  -1 * COMMONS_RADIOACTIVITY_FLAG_NODE);
27
+        commons_radioactivity_incident_node($node, -1 * COMMONS_RADIOACTIVITY_FLAG_NODE);
28 28
       }
29 29
     }
30 30
   }
Please login to merge, or discard this patch.
modules/commons/commons_radioactivity/commons_radioactivity.module 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     if (!empty($commons_radioactivity_entity_types)) {
34 34
       foreach ($commons_radioactivity_entity_types as $entity_type => $bundles) {
35
-        foreach(array_keys($bundles) as $bundle) {
35
+        foreach (array_keys($bundles) as $bundle) {
36 36
           $info['features']['field_instance'][] = "$entity_type-$bundle-field_radioactivity";
37 37
         }
38 38
       }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
   // Only operate on nodes that have the radioactivity field.
99 99
   if (!empty($node->field_radioactivity)) {
100 100
     // Find the node's ID and bundle.
101
-    list($id, , $bundle) = entity_extract_ids('node', $node);
101
+    list($id,, $bundle) = entity_extract_ids('node', $node);
102 102
 
103 103
     // Prevent groups from going negative in energy.
104 104
     if ($bundle == 'group' && $node->field_radioactivity[LANGUAGE_NONE][0]['radioactivity_energy'] + $value >= 0) {
Please login to merge, or discard this patch.
modules/commons/commons_q_a/commons_q_a.commons.inc 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
  */
45 45
 function commons_q_a_commons_bw_create_all_widget($group) {
46 46
   if (og_user_access('node', $group->nid, 'create question content')) {
47
-    $link = l(t('Ask a question'),'node/add/question',
47
+    $link = l(t('Ask a question'), 'node/add/question',
48 48
       array('attributes' => array('class' => 'commons-q-a-create'), 'query' => array('og_group_ref' => $group->nid))
49 49
     );
50 50
     return array(
Please login to merge, or discard this patch.
modules/commons/commons_q_a/commons_q_a.module 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 function commons_q_a_form_node_form_alter(&$form, &$form_state, $form_id) {
203 203
   $node = $form['#node'];
204 204
 
205
-  list(, , $bundle) = entity_extract_ids('node', $node);
205
+  list(,, $bundle) = entity_extract_ids('node', $node);
206 206
 
207 207
   if ($bundle == 'question' && empty($node->nid)) {
208 208
     drupal_set_title(t('Ask a question'));
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
     $form['container']['comment_body'] = $form['comment_body'];
237 237
     $form['container']['actions'] = $form['actions'];
238 238
     unset($form['author']);
239
-    unset($form['subject']);  // We don't need a subject, they're pointless within comments.
239
+    unset($form['subject']); // We don't need a subject, they're pointless within comments.
240 240
     unset($form['comment_body']);
241 241
     unset($form['actions']);
242 242
   }
Please login to merge, or discard this patch.
commons.install_callbacks.inc 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
   // Create a user for each username.
33 33
   foreach ($demo_usernames as $username) {
34
-    list($first_name, $last_name)  = explode(" ", $username);
34
+    list($first_name, $last_name) = explode(" ", $username);
35 35
     $normalized_username = commons_normalize_name($username);
36 36
     $password = user_password(8);
37 37
 
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
   $event->field_address[LANGUAGE_NONE][0]['postal_code'] = '01803';
208 208
   $event->field_address[LANGUAGE_NONE][0]['country'] = 'US';
209 209
   $event->field_address[LANGUAGE_NONE][0]['location'] = 'Waterfront';
210
-  $event->field_address[LANGUAGE_NONE][0]['administrative_area']  = 'MA';
210
+  $event->field_address[LANGUAGE_NONE][0]['administrative_area'] = 'MA';
211 211
   $event->field_address[LANGUAGE_NONE][0]['locality'] = 'Boston';
212 212
   $event->og_group_ref[LANGUAGE_NONE][0]['target_id'] = $demo_groups['boston']->nid;
213 213
   node_save($event);
Please login to merge, or discard this patch.