Completed
Branch 7.x-3.x (9d48fc)
by Devin
04:36
created
modules/commons/commons_profile_social/commons_profile_social.module 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @file
4
- * Drupal needs this blank file.
5
- */
3
+   * @file
4
+   * Drupal needs this blank file.
5
+   */
Please login to merge, or discard this patch.
commons_follow/commons_follow_node/commons_follow_node.views_default.inc 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @file
4
- * commons_follow_node.views_default.inc
5
- */
3
+   * @file
4
+   * commons_follow_node.views_default.inc
5
+   */
6 6
 
7 7
 /**
8 8
  * Implements hook_views_default_views().
Please login to merge, or discard this patch.
commons/commons_follow/commons_follow_node/commons_follow_node.features.inc 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @file
4
- * commons_follow_node.features.inc
5
- */
3
+   * @file
4
+   * commons_follow_node.features.inc
5
+   */
6 6
 
7 7
 /**
8 8
  * Implements hook_views_api().
Please login to merge, or discard this patch.
commons/commons_follow/commons_follow_node/commons_follow_node.module 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @file
4
- * Code for the Commons Follow (Individual nodes) feature.
5
- */
3
+   * @file
4
+   * Code for the Commons Follow (Individual nodes) feature.
5
+   */
6 6
 
7 7
 include_once 'commons_follow_node.features.inc';
8 8
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@
 block discarded – undo
29 29
     ->condition('fid', $flag_ids, 'IN')
30 30
     ->condition('uid', $account->uid, '=')
31 31
     ->condition('content_type', 'node', '=')
32
-    ->fields('f',array('content_id'))
32
+    ->fields('f', array('content_id'))
33 33
     ->execute()
34 34
     ->fetchAll();
35 35
   $nids = array();
36
-  foreach($result as $row) {
36
+  foreach ($result as $row) {
37 37
     $nids[] = (integer) $row->content_id;
38 38
   }
39 39
 
Please login to merge, or discard this patch.
commons_follow/commons_follow_group/commons_follow_group.strongarm.inc 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @file
4
- * commons_follow_group.strongarm.inc
5
- */
3
+   * @file
4
+   * commons_follow_group.strongarm.inc
5
+   */
6 6
 
7 7
 /**
8 8
  * Implements hook_strongarm().
Please login to merge, or discard this patch.
commons/commons_follow/commons_follow_group/commons_follow_group.module 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @file
4
- * Code for the Commons Follow (Groups) feature.
5
- */
3
+   * @file
4
+   * Code for the Commons Follow (Groups) feature.
5
+   */
6 6
 
7 7
 include_once 'commons_follow_group.features.inc';
8 8
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     ->condition('uid', $account->uid, '=')
30 30
     ->condition('content_type', 'node', '=')
31 31
     ->condition('content_id', $gids['node'], 'IN')
32
-    ->fields('f',array('content_id'))
32
+    ->fields('f', array('content_id'))
33 33
     ->execute()
34 34
     ->fetchAll();
35 35
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
   }
39 39
 
40 40
   $nids = array();
41
-  foreach($result as $row) {
41
+  foreach ($result as $row) {
42 42
     $nids[] = $row->content_id;
43 43
   }
44 44
 
Please login to merge, or discard this patch.
commons_follow/includes/views/handlers/commons_follow_handler_field_ops.inc 2 patches
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.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,7 @@
 block discarded – undo
52 52
       $variables['link_text'] = $flag->get_label($action . '_short', $content_id);
53 53
 
54 54
       return theme('commons_follow_otheruser_flag', $variables);
55
-    }
56
-    else {
55
+    } else {
57 56
       return parent::render($values);
58 57
     }
59 58
 
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.
modules/commons/commons_follow/commons_follow.module 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -296,11 +296,11 @@
 block discarded – undo
296 296
   return $flag->fid;
297 297
 }
298 298
 /**
299
- * Get a list of all content that a user is following.
300
- * @return
301
- *  An array keyed on the flag name with values corresponding to the IDs
302
- *  of the flagged entities.
303
- */
299
+   * Get a list of all content that a user is following.
300
+   * @return
301
+   *  An array keyed on the flag name with values corresponding to the IDs
302
+   *  of the flagged entities.
303
+   */
304 304
 function commons_follow_get_followed_content($account = array()) {
305 305
   if (empty($account)) {
306 306
     global $user;
Please login to merge, or discard this 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.