Completed
Push — 7.x-3.x ( f27cd5...3c5589 )
by Devin
03:12
created
modules/commons/commons_topics/commons_topics.features.field_instance.inc 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
   $commons_groups_entity_types = commons_topics_get_entity_types_with_topics();
15 15
   if (!empty($commons_groups_entity_types)) {
16 16
     foreach ($commons_groups_entity_types as $entity_type => $bundles) {
17
-      foreach(array_keys($bundles) as $bundle) {
17
+      foreach (array_keys($bundles) as $bundle) {
18 18
         commons_topics_field_definition($field_instances, $entity_type, $bundle);
19 19
       }
20 20
     }
Please login to merge, or discard this patch.
modules/commons/commons_posts/commons_posts.commons.inc 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
  */
40 40
 function commons_posts_commons_bw_create_all_widget($group) {
41 41
   if (og_user_access('node', $group->nid, 'create post content')) {
42
-    $link = l(t('Create a post'),'node/add/post',
42
+    $link = l(t('Create a post'), 'node/add/post',
43 43
       array('attributes' => array('class' => 'commons-posts-create'), 'query' => array('og_group_ref' => $group->nid))
44 44
     );
45 45
     return array(
Please login to merge, or discard this patch.
modules/commons/commons_activity_streams/commons_activity_streams.module 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -130,10 +130,10 @@
 block discarded – undo
130 130
 function commons_activity_streams_existing_messages($acting_uid, $target_ids, $target_field, $message_type) {
131 131
   $query = new EntityFieldQuery();
132 132
   $query->entityCondition('entity_type', 'message', '=')
133
-   ->propertyCondition('uid', $acting_uid)
134
-   ->propertyCondition('type', $message_type, '=')
135
-   ->fieldCondition($target_field, 'target_id', $target_ids, 'IN')
136
-   ->execute();
133
+    ->propertyCondition('uid', $acting_uid)
134
+    ->propertyCondition('type', $message_type, '=')
135
+    ->fieldCondition($target_field, 'target_id', $target_ids, 'IN')
136
+    ->execute();
137 137
 
138 138
   if (!empty($query->ordered_results)) {
139 139
     $mids = array();
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 
138 138
   if (!empty($query->ordered_results)) {
139 139
     $mids = array();
140
-    foreach($query->ordered_results as $result) {
140
+    foreach ($query->ordered_results as $result) {
141 141
       $mids[] = $result->entity_id;
142 142
     }
143 143
     return $mids;
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
   // Create a token to retrieve the user picture formatted using any of the
225 225
   // currently defined image styles.
226 226
   foreach ($styles as $style_name => $style) {
227
-    $tokens['picture:' . $style_name] = array(
227
+    $tokens['picture:'.$style_name] = array(
228 228
       'name' => t('Picture: @st image style', array('@st' => $style_name)),
229 229
       'description' => t('Picture: @st image style', array('@st' => $style_name)),
230 230
     );
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
 
253 253
     foreach ($tokens as $token => $original) {
254 254
       if (strpos($token, 'picture:') !== FALSE) {
255
-        list( , $style) = explode(':', $token);
255
+        list(, $style) = explode(':', $token);
256 256
 
257 257
         // Prefer unique account pictures but fall back to the default user
258 258
         // picture if necessary.
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
           'html' => TRUE,
276 276
         );
277 277
 
278
-        $replacements[$original] = "<div class='user-picture'>" . l($image, $user_path['path'], $link_options) . "</div>";
278
+        $replacements[$original] = "<div class='user-picture'>".l($image, $user_path['path'], $link_options)."</div>";
279 279
       }
280 280
     }
281 281
   }
Please login to merge, or discard this patch.
modules/commons/commons_follow/includes/views/commons_follow.views.inc 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     'title' => t('User Follow'), // The item it appears as on the UI,
29 29
     'help' => t('Whether the user is following this content.'), // The help that appears on the UI,
30 30
     'real field' => 'nid',
31
-     // Information for displaying a title as a field
31
+      // Information for displaying a title as a field
32 32
     'filter' => array(
33 33
       'handler' => 'commons_follow_user_follow_filter',
34 34
       'label' => t('Following'),
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     'title' => t('User Follow'), // The item it appears as on the UI,
41 41
     'help' => t('Whether the user is following items related to this message.'), // The help that appears on the UI,
42 42
     'real field' => 'mid',
43
-     // Information for displaying a title as a field
43
+      // Information for displaying a title as a field
44 44
     'filter' => array(
45 45
       'handler' => 'commons_follow_user_follow_filter_message',
46 46
       'label' => t('Following'),
Please login to merge, or discard this patch.
commons/commons_follow/commons_follow_term/commons_follow_term.module 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     ->condition('fid', $flag_ids, 'IN')
25 25
     ->condition('uid', $account->uid, '=')
26 26
     ->condition('content_type', 'taxonomy_term', '=')
27
-    ->fields('f',array('content_id'))
27
+    ->fields('f', array('content_id'))
28 28
     ->execute()
29 29
     ->fetchAll();
30 30
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
   }
35 35
 
36 36
   $tids = array();
37
-  foreach($result as $row) {
37
+  foreach ($result as $row) {
38 38
     $tids[] = (integer) $row->content_id;
39 39
   }
40 40
 
@@ -48,14 +48,14 @@  discard block
 block discarded – undo
48 48
   $result = $query
49 49
     ->addTag('node_access')
50 50
     ->condition('tid', $tids, 'IN')
51
-    ->fields('t',array('nid'))
51
+    ->fields('t', array('nid'))
52 52
     ->groupBy('nid')
53 53
     ->execute()
54 54
     ->fetchAll();
55 55
 
56 56
   // Return the node IDs.
57 57
   $nids = array();
58
-  foreach($result as $row) {
58
+  foreach ($result as $row) {
59 59
     $nids[] = (integer) $row->nid;
60 60
   }
61 61
 
Please login to merge, or discard this patch.
commons/commons_follow/commons_follow_user/commons_follow_user.module 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     ->condition('fid', $flag_ids, 'IN')
27 27
     ->condition('uid', $account->uid, '=')
28 28
     ->condition('content_type', 'user', '=')
29
-    ->fields('f',array('content_id'))
29
+    ->fields('f', array('content_id'))
30 30
     ->execute()
31 31
     ->fetchAll();
32 32
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
   }
37 37
 
38 38
   $uids = array();
39
-  foreach($result as $row) {
39
+  foreach ($result as $row) {
40 40
     $uids[] = (integer) $row->content_id;
41 41
   }
42 42
 
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -92,12 +92,12 @@
 block discarded – undo
92 92
 function commons_follow_user_existing_follow_message($acting_uid, $target_uids) {
93 93
   $query = new EntityFieldQuery();
94 94
   $query->entityCondition('entity_type', 'message', '=')
95
-   ->propertyCondition('uid', $acting_uid)
96
-   ->propertyCondition('type', 'commons_follow_user_user_followed', '=')
97
-   ->fieldCondition('field_target_users', 'target_id', $target_uids, 'IN')
98
-   ->execute();
95
+    ->propertyCondition('uid', $acting_uid)
96
+    ->propertyCondition('type', 'commons_follow_user_user_followed', '=')
97
+    ->fieldCondition('field_target_users', 'target_id', $target_uids, 'IN')
98
+    ->execute();
99 99
 
100
-   return !empty($query->ordered_results);
100
+    return !empty($query->ordered_results);
101 101
 }
102 102
 
103 103
 /**
Please login to merge, or discard this patch.
commons_follow/commons_follow_user/commons_follow_user.views_default.inc 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -343,7 +343,7 @@
 block discarded – undo
343 343
   $handler->display->display_options['style_options']['wrapper_class'] = 'view-profile-badges';
344 344
   $handler->display->display_options['row_plugin'] = 'fields';
345 345
   $handler->display->display_options['row_options']['hide_empty'] = TRUE;
346
-  $handler->display->display_options['row_options']['default_field_elements'] = FALSE;  /* No results behavior: Global: Text area */
346
+  $handler->display->display_options['row_options']['default_field_elements'] = FALSE; /* No results behavior: Global: Text area */
347 347
   $handler->display->display_options['empty']['area']['id'] = 'area';
348 348
   $handler->display->display_options['empty']['area']['table'] = 'views';
349 349
   $handler->display->display_options['empty']['area']['field'] = 'area';
Please login to merge, or discard this patch.
modules/commons/commons_documents/commons_documents.commons.inc 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
  */
41 41
 function commons_documents_commons_bw_create_all_widget($group) {
42 42
   if (og_user_access('node', $group->nid, 'create document content')) {
43
-    $link = l(t('Create a document'),'node/add/document',
43
+    $link = l(t('Create a document'), 'node/add/document',
44 44
       array('attributes' => array('class' => 'commons-documents-create'), 'query' => array('og_group_ref' => $group->nid))
45 45
     );
46 46
     return array(
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.