Completed
Push — 7.x-3.x ( ae8d10...902f1e )
by Devin
07:34 queued 04:58
created
modules/commons/commons_activity_streams/commons_activity_streams.module 1 patch
Spacing   +2 added lines, -2 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;
@@ -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.
Please login to merge, or discard this patch.
commons_follow/includes/views/handlers/commons_follow_handler_field_ops.inc 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
   function render($values) {
16 16
     global $user;
17 17
     //If the passed in user doesn't match the current user
18
-    if(isset($this->view->args[0]) && $user->uid != $this->view->args[0]) {
18
+    if (isset($this->view->args[0]) && $user->uid != $this->view->args[0]) {
19 19
 
20 20
       if (!($flag = $this->get_flag())) {
21 21
         // get_flag() itself will print a more detailed message.
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
       $flag_wrapper_classes_array[] = 'flag-wrapper';
42 42
       $flag_wrapper_classes_array[] = 'flag-' . $variables['flag_css_name'];
43 43
       $flag_wrapper_classes_array[] = 'flag-' . $variables['flag_css_name'] . '-' . $content_id;
44
-      $variables['flag_wrapper_classes'] = implode(' ',$flag_wrapper_classes_array);
44
+      $variables['flag_wrapper_classes'] = implode(' ', $flag_wrapper_classes_array);
45 45
 
46 46
       $flag_classes_array = array();
47 47
       $flag_classes_array[] = 'flag';
Please login to merge, or discard this patch.
modules/commons/commons_follow/commons_follow.module 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
  * Implements hook_form_alter().
130 130
  */
131 131
 function commons_follow_form_alter(&$form, &$form_state, $form_id) {
132
-  if ($form_id != 'views_exposed_form' || strpos($form['#id'],'views-exposed-form-commons-bw') !== 0 || empty($form['following'])) {
132
+  if ($form_id != 'views_exposed_form' || strpos($form['#id'], 'views-exposed-form-commons-bw') !== 0 || empty($form['following'])) {
133 133
     return;
134 134
   }
135 135
 
@@ -347,10 +347,10 @@  discard block
 block discarded – undo
347 347
   }
348 348
   global $user;
349 349
   $prefix = variable_get('message_subscribe_flag_prefix', 'subscribe') . '_';
350
-  if(strpos($view->name, $prefix) === 0 && isset($view->args[0]) && $user->uid != $view->args[0]) {
350
+  if (strpos($view->name, $prefix) === 0 && isset($view->args[0]) && $user->uid != $view->args[0]) {
351 351
     $flag_content_keys = array_keys($query->table_queue);
352
-    foreach($flag_content_keys AS $key) {
353
-      if(strpos($key, 'flag_content') === 0) {
352
+    foreach ($flag_content_keys AS $key) {
353
+      if (strpos($key, 'flag_content') === 0) {
354 354
         //Convert the Send Email Query
355 355
         $join = $query->table_queue[$key]['join'];
356 356
         $join->extra[1] = array(
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 1 patch
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.
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.
commons_follow_ui/commons_follow_ui.commons_utility_links.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
   if (user_is_logged_in()) {
15 15
     global $user;
16 16
     $account = $user;
17
-    $links['settings']= array(
17
+    $links['settings'] = array(
18 18
       'href' => 'user/' . $account->uid . '/notification-settings',
19 19
       'title' => t('Settings'),
20 20
       'weight' => 10,
Please login to merge, or discard this patch.
modules/commons/commons_media/commons_media.module 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -340,7 +340,7 @@
 block discarded – undo
340 340
   $collected_fields = array();
341 341
 
342 342
   // Determine the list of instances to iterate on.
343
-  list(, , $bundle) = entity_extract_ids($type, $entity);
343
+  list(,, $bundle) = entity_extract_ids($type, $entity);
344 344
   $instances = field_info_instances($type, $bundle);
345 345
   $fields = field_info_fields();
346 346
 
Please login to merge, or discard this patch.
commons_trusted_contacts/commons_trusted_contacts.commons_utility_links.inc 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     // Add a link to the user's invitations.
36 36
     if ($unread_invitations) {
37
-      $links['unread-invitations']= array(
37
+      $links['unread-invitations'] = array(
38 38
         'href' => 'user/' . $user->uid . '/contacts',
39 39
         'query' => array('qt-commons_trusted_contacts' => 'invitations'),
40 40
         'title' => format_plural($unread_invitations, '1 invitation', '@count invitations'),
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     // Add a link to the user's unread messages.
46 46
     if ($unread_messages) {
47
-      $links['unread-messages']= array(
47
+      $links['unread-messages'] = array(
48 48
         'href' => 'user/' . $user->uid . '/contacts',
49 49
         'query' => array('qt-commons_trusted_contacts' => 'messages'),
50 50
         'title' => format_plural($unread_messages, '1 message', '@count messages'),
Please login to merge, or discard this patch.