Completed
Push — 7.x-3.x ( 00546f...21089d )
by Devin
04:13 queued 01:28
created
modules/commons/commons_polls/commons_polls.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_polls.strongarm.inc
5
- */
3
+   * @file
4
+   * commons_polls.strongarm.inc
5
+   */
6 6
 
7 7
 /**
8 8
  * Implements hook_strongarm().
Please login to merge, or discard this patch.
modules/commons/commons_polls/commons_polls.module 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @file
4
- * Code for the Commons polls feature.
5
- */
3
+   * @file
4
+   * Code for the Commons polls feature.
5
+   */
6 6
 
7 7
 include_once 'commons_polls.features.inc';
8 8
 
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   +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.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_radioactivity.strongarm.inc
5
- */
3
+   * @file
4
+   * commons_radioactivity.strongarm.inc
5
+   */
6 6
 
7 7
 /**
8 8
  * Implements hook_strongarm().
Please login to merge, or discard this patch.
commons_radioactivity/commons_radioactivity.radioactivity_decay_profile.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_radioactivity.radioactivity_decay_profile.inc
5
- */
3
+   * @file
4
+   * commons_radioactivity.radioactivity_decay_profile.inc
5
+   */
6 6
 
7 7
 /**
8 8
  * Implements hook_default_radioactivity_decay_profile().
Please login to merge, or discard this patch.
commons_radioactivity_groups/commons_radioactivity_groups.module 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
- * Code for the Commons Radioactivity Groups feature.
5
- */
3
+   * @file
4
+   * Code for the Commons Radioactivity Groups feature.
5
+   */
6 6
 
7 7
 include_once 'commons_radioactivity_groups.features.inc';
8 8
 
Please login to merge, or discard this patch.
commons_radioactivity_groups/commons_radioactivity_groups.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_radioactivity_groups.views_default.inc
5
- */
3
+   * @file
4
+   * commons_radioactivity_groups.views_default.inc
5
+   */
6 6
 
7 7
 /**
8 8
  * Implements hook_views_default_views().
Please login to merge, or discard this patch.
commons_radioactivity_groups/commons_radioactivity_groups.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_radioactivity_groups.features.inc
5
- */
3
+   * @file
4
+   * commons_radioactivity_groups.features.inc
5
+   */
6 6
 
7 7
 /**
8 8
  * Implements hook_views_api().
Please login to merge, or discard this patch.
modules/commons/commons_radioactivity/commons_radioactivity.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 Radioactivity feature.
5
- */
3
+   * @file
4
+   * Code for the Commons Radioactivity feature.
5
+   */
6 6
 
7 7
 // Include files contain hook implementations for the corresponding modules.
8 8
 include_once 'commons_radioactivity.features.inc';
Please login to merge, or discard this 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.