Completed
Push — 7.x-3.x ( c76c52...23d519 )
by Devin
04:25
created
modules/commons/commons_groups/commons_groups.features.field_instance.inc 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@
 block discarded – undo
214 214
       'weight' => 1,
215 215
     ),
216 216
   );
217
-   // Exported field_instance: 'node-group-body'
217
+    // Exported field_instance: 'node-group-body'
218 218
   $field_instances["$entity_type-$bundle-body"] = array(
219 219
     'bundle' => $bundle,
220 220
     'default_value' => NULL,
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
   $commons_groups_entity_types = commons_groups_get_group_content_entity_types();
14 14
   if (!empty($commons_groups_entity_types)) {
15 15
     foreach ($commons_groups_entity_types as $entity_type => $bundles) {
16
-      foreach(array_keys($bundles) as $bundle) {
16
+      foreach (array_keys($bundles) as $bundle) {
17 17
         commons_groups_field_definition($field_instances, $entity_type, $bundle);
18 18
       }
19 19
     }
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     // to create the group audience field for it when installing the profile.
26 26
     $group_bundles['node'] = array('group' => TRUE);
27 27
   }
28
-  foreach(array_keys($group_bundles['node']) as $bundle) {
28
+  foreach (array_keys($group_bundles['node']) as $bundle) {
29 29
     commons_groups_field_definition_group($field_instances, 'node', $bundle);
30 30
   }
31 31
 
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
   );
258 258
 
259 259
   // Exported field_instance: 'node-group-group_group'
260
-  $field_instances["$entity_type-$bundle-" . OG_GROUP_FIELD] = array(
260
+  $field_instances["$entity_type-$bundle-".OG_GROUP_FIELD] = array(
261 261
     'bundle' => $bundle,
262 262
     'default_value' => array(
263 263
       0 => array(
Please login to merge, or discard this patch.
modules/commons/commons_topics/commons_topics.module 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     $commons_topics_entity_types = commons_topics_get_entity_types_with_topics();
20 20
     if (!empty($commons_topics_entity_types)) {
21 21
       foreach ($commons_topics_entity_types as $entity_type => $bundles) {
22
-        foreach(array_keys($bundles) as $bundle) {
22
+        foreach (array_keys($bundles) as $bundle) {
23 23
           $info['features']['field_instance'][] = "$entity_type-$bundle-field_topics";
24 24
         }
25 25
       }
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     );
43 43
     $form['topics_wrapper']['field_topics'] = $form['field_topics'];
44 44
     $form['field_topics'] = array('#language' => NULL);
45
-    $form['#attached']['js'][] = drupal_get_path('module', 'commons_topics') . '/js/commons_topics.js';
45
+    $form['#attached']['js'][] = drupal_get_path('module', 'commons_topics').'/js/commons_topics.js';
46 46
   }
47 47
 }
48 48
 
Please login to merge, or discard this patch.
modules/commons/commons_groups/commons_groups.features.field_base.inc 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
   );
146 146
 
147 147
 // Exported field_base: 'og_group_ref'
148
- $field_bases['og_group_ref'] = array(
148
+  $field_bases['og_group_ref'] = array(
149 149
     'active' => '1',
150 150
     'cardinality' => '-1',
151 151
     'deleted' => '0',
Please login to merge, or discard this patch.
modules/commons/commons_polls/commons_polls.module 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 /**
10 10
 * Implements hook_strongarm_alter().
11 11
 */
12
- function commons_polls_strongarm_alter(&$items) {
12
+  function commons_polls_strongarm_alter(&$items) {
13 13
   // Expose the poll content type for integration with Commons Radioactivity
14 14
   // and Commons Groups.
15 15
   foreach (array('commons_radioactivity_entity_types', 'commons_groups_entity_types') as $key) {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 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'));
@@ -80,10 +80,10 @@  discard block
 block discarded – undo
80 80
   }
81 81
 
82 82
   $form['choice_wrapper']['add_choice'] = array(
83
-    '#markup' => '<a href="#" id="add-choice">' . t('Add more choices') . '</a>',
83
+    '#markup' => '<a href="#" id="add-choice">'.t('Add more choices').'</a>',
84 84
   );
85 85
 
86
-  $form['#attached']['js'][] = drupal_get_path('module', 'commons_polls') . '/js/commons_polls_partial_form.js';
86
+  $form['#attached']['js'][] = drupal_get_path('module', 'commons_polls').'/js/commons_polls_partial_form.js';
87 87
 
88 88
   $form['actions']['submit']['#value'] = t('Create');
89 89
 
Please login to merge, or discard this patch.
modules/commons/commons_radioactivity/commons_radioactivity.module 1 patch
Spacing   +3 added lines, -3 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
       }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     $form['field_radioactivity']['#attributes'] = array(
56 56
       'class' => array('radioactivity-form-energy'),
57 57
     );
58
-    $form['field_radioactivity']['#attached']['js'][] = drupal_get_path('module', 'commons_radioactivity') . '/commons_radioactivity.js';
58
+    $form['field_radioactivity']['#attached']['js'][] = drupal_get_path('module', 'commons_radioactivity').'/commons_radioactivity.js';
59 59
   }
60 60
 }
61 61
 
@@ -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_utility_links/commons_utility_links.api.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@
 block discarded – undo
36 36
   if (user_is_logged_in()) {
37 37
     global $user;
38 38
     $account = $user;
39
-    $links['find_fiends']= array(
40
-      'href' => 'user/' . $account->uid . '/find_friends',
39
+    $links['find_fiends'] = array(
40
+      'href' => 'user/'.$account->uid.'/find_friends',
41 41
       'title' => t('Find friends'),
42 42
     );
43 43
   }
Please login to merge, or discard this patch.
modules/commons/commons_misc/commons_misc.module 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     && !empty($form_state['build_info']['args'])
54 54
     && $form_state['build_info']['args'][0] == 'commons_origins') {
55 55
     // Add the color palette selection form to the apperance settings form.
56
-    require_once(drupal_get_path('theme', 'commons_origins') . '/commons_origins.palettes.inc');
56
+    require_once(drupal_get_path('theme', 'commons_origins').'/commons_origins.palettes.inc');
57 57
     commons_origins_palettes_form($form);
58 58
   }
59 59
 }
Please login to merge, or discard this patch.
modules/commons/commons_bw/commons_bw.features.inc 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  */
10 10
 function commons_bw_ctools_plugin_directory($module, $plugin) {
11 11
   if ($module == 'ctools' && $plugin == 'content_types') {
12
-    return 'plugins/' . $plugin;
12
+    return 'plugins/'.$plugin;
13 13
   }
14 14
 }
15 15
 
@@ -19,6 +19,6 @@  discard block
 block discarded – undo
19 19
 function commons_bw_views_api() {
20 20
   return array(
21 21
     'api' => 3,
22
-    'path' => drupal_get_path('module', 'commons_bw') . '/includes/views',
22
+    'path' => drupal_get_path('module', 'commons_bw').'/includes/views',
23 23
   );
24 24
 }
Please login to merge, or discard this patch.
modules/commons/commons_like/commons_like.module 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 /**
10 10
  * Implements hook_strongarm_alter().
11 11
  */
12
- function commons_like_strongarm_alter(&$items) {
12
+  function commons_like_strongarm_alter(&$items) {
13 13
   // Expose the Post content type for 'liking' via the Commons_like module
14 14
   // by altering the configuration for the Rate.module widget that it provides.
15 15
   if (!empty($items['rate_widgets']->value)) {
@@ -68,10 +68,10 @@  discard block
 block discarded – undo
68 68
 function commons_like_existing_node_like_messages($acting_uid, $target_nids) {
69 69
   $query = new EntityFieldQuery();
70 70
   $query->entityCondition('entity_type', 'message', '=')
71
-   ->propertyCondition('uid', $acting_uid)
72
-   ->propertyCondition('type', 'commons_like_user_likes_node', '=')
73
-   ->fieldCondition('field_target_nodes', 'target_id', $target_nids, 'IN')
74
-   ->execute();
71
+    ->propertyCondition('uid', $acting_uid)
72
+    ->propertyCondition('type', 'commons_like_user_likes_node', '=')
73
+    ->fieldCondition('field_target_nodes', 'target_id', $target_nids, 'IN')
74
+    ->execute();
75 75
 
76 76
   if (!empty($query->ordered_results)) {
77 77
     $mids = array();
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
   // Expose the Post content type for 'liking' via the Commons_like module
14 14
   // by altering the configuration for the Rate.module widget that it provides.
15 15
   if (!empty($items['rate_widgets']->value)) {
16
-    foreach($items['rate_widgets']->value as $key => $widget) {
16
+    foreach ($items['rate_widgets']->value as $key => $widget) {
17 17
       if ($widget->name == 'commons_like') {
18 18
         $commons_entity_integrations = commons_entity_integration_info();
19 19
         if (!empty($commons_entity_integrations['node'])) {
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
   if (!empty($query->ordered_results)) {
77 77
     $mids = array();
78
-    foreach($query->ordered_results as $result) {
78
+    foreach ($query->ordered_results as $result) {
79 79
       $mids[] = $result->entity_id;
80 80
     }
81 81
     return $mids;
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     array(1, 'like'),
108 108
   );
109 109
   $templates['commons_like']->theme = 'rate_template_commons_like';
110
-  $templates['commons_like']->css = drupal_get_path('module', 'commons_like') . '/commons-like.css';
110
+  $templates['commons_like']->css = drupal_get_path('module', 'commons_like').'/commons-like.css';
111 111
   $templates['commons_like']->customizable = FALSE;
112 112
   $templates['commons_like']->translate = TRUE;
113 113
   $templates['commons_like']->use_source_translation = TRUE;
Please login to merge, or discard this patch.