Completed
Push — 7.x-3.x ( ae8d10...902f1e )
by Devin
07:34 queued 04:58
created
modules/commons/commons_utility_links/commons_utility_links.api.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
   if (user_is_logged_in()) {
37 37
     global $user;
38 38
     $account = $user;
39
-    $links['find_fiends']= array(
39
+    $links['find_fiends'] = array(
40 40
       'href' => 'user/' . $account->uid . '/find_friends',
41 41
       'title' => t('Find friends'),
42 42
     );
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.
commons_events/modules/commons_events_solr/commons_events_solr.module 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
   if (empty($env_id)) {
24 24
     $env_id = commons_events_solr_search_environment();
25 25
   }
26
-  foreach($facets as $facet) {
26
+  foreach ($facets as $facet) {
27 27
     $facet['settings'] = serialize($facet['settings']);
28 28
     $facet['name'] = $env_id . $facet['name'];
29 29
     $facet['searcher'] = $env_id;
Please login to merge, or discard this patch.
modules/commons/commons_events/commons_events.module 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
   if ($type == 'node' && isset($build['#node'])) {
204 204
     $node = $build['#node'];
205 205
 
206
-    list(, , $bundle) = entity_extract_ids('node', $node);
206
+    list(,, $bundle) = entity_extract_ids('node', $node);
207 207
 
208 208
     if ($bundle == 'event') {
209 209
       $build['attending'] = array(
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 function commons_events_form_node_form_alter(&$form, &$form_state, $form_id) {
235 235
   $node = $form_state['node'];
236 236
 
237
-  list(, , $bundle) = entity_extract_ids('node', $node);
237
+  list(,, $bundle) = entity_extract_ids('node', $node);
238 238
 
239 239
   if ($bundle == 'event' && empty($node->nid)) {
240 240
     drupal_set_title(t('Create an event'));
Please login to merge, or discard this patch.
modules/commons/commons_like/commons_like.module 1 patch
Spacing   +2 added lines, -2 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;
Please login to merge, or discard this patch.
modules/commons/commons_polls/commons_polls.module 1 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.module 1 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.
modules/commons/commons_q_a/commons_q_a.commons.inc 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
  */
45 45
 function commons_q_a_commons_bw_create_all_widget($group) {
46 46
   if (og_user_access('node', $group->nid, 'create question content')) {
47
-    $link = l(t('Ask a question'),'node/add/question',
47
+    $link = l(t('Ask a question'), 'node/add/question',
48 48
       array('attributes' => array('class' => 'commons-q-a-create'), 'query' => array('og_group_ref' => $group->nid))
49 49
     );
50 50
     return array(
Please login to merge, or discard this patch.