Completed
Push — 7.x-3.x ( daa35d...1b5187 )
by Devin
03:09
created
modules/commons/commons_search/commons_search.module 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     $keys = arg(2);
88 88
     if (!module_exists('commons_search_solr') && !empty($keys)) {
89 89
       // Remove the search keys from the form action only if we're using core search.
90
-      $form['#action'] = str_replace("/" . check_plain(arg(2)), '', $form['#action']);
90
+      $form['#action'] = str_replace("/".check_plain(arg(2)), '', $form['#action']);
91 91
     }
92 92
   }
93 93
 }
@@ -105,19 +105,19 @@  discard block
 block discarded – undo
105 105
       // Add on a filter to the solr query to only list results within the
106 106
       // specified group.
107 107
       $qm = (strpos($form_state['redirect'], '?') !== FALSE ? '' : '?');
108
-      $form_state['redirect'] .= $qm . '&f[1]=sm_og_group_ref:node:' . $form_state['search_group_id'];
108
+      $form_state['redirect'] .= $qm.'&f[1]=sm_og_group_ref:node:'.$form_state['search_group_id'];
109 109
     }
110 110
     else {
111 111
       // Using core search to search within a group doesn't work, so we simply
112 112
       // use a view with exposed search terms to do the searching.
113
-      drupal_goto('search/group/' . $form_state['search_group_id'], array('query' => array('keys' => $keys)));
113
+      drupal_goto('search/group/'.$form_state['search_group_id'], array('query' => array('keys' => $keys)));
114 114
     }
115 115
   }
116 116
   else {
117 117
     if ($form_state['values']['custom_search_types'] == 'c-user') {
118 118
       // Force update the redirect on User search since Custom Search is weird.
119 119
       $keys = check_plain($form_state['values']['search_block_form']);
120
-      $form_state['redirect'] = 'search/user/' . $keys;
120
+      $form_state['redirect'] = 'search/user/'.$keys;
121 121
     }
122 122
   }
123 123
 }
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     && preg_match('/sm_og_group_ref:"node:([0-9]+)"&/', urldecode($variables['response']->request), $match)
135 135
   ) {
136 136
     $group = node_load($match[1]);
137
-    $title = t('Search within !group', array('!group' => '<em>' . $group->title . '</em>'));
137
+    $title = t('Search within !group', array('!group' => '<em>'.$group->title.'</em>'));
138 138
     $variables['title'] = $title;
139 139
   }
140 140
 }
Please login to merge, or discard this patch.
modules/commons/commons_site_homepage/commons_site_homepage.module 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     $form['sort_by']['#title'] = t('sorted by');
27 27
     foreach ($form['type']['#options'] as $type => $name) {
28 28
       if ($type != 'All') {
29
-        $form['type']['#options'][$type] = t(strtolower(substr($name, 0, 1)) . substr($name,1) . 's');
29
+        $form['type']['#options'][$type] = t(strtolower(substr($name, 0, 1)).substr($name, 1).'s');
30 30
       }
31 31
     }
32 32
   }
Please login to merge, or discard this patch.
commons/commons_content_moderation/commons_content_moderation.module 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
   if ($form_state['step'] == 'views_form_views_form' && $vbo->options['vbo_operations']['action::commons_content_moderation_delete_node_block_user']['selected'] == 1) {
146 146
     if (module_exists('mollom') && _mollom_access('report to mollom')) {
147 147
       $form['mollom_text'] = array(
148
-        '#markup' => '<p>' . t('Deleted content will be reported to Mollom.') . '</p>',
148
+        '#markup' => '<p>'.t('Deleted content will be reported to Mollom.').'</p>',
149 149
       );
150 150
     }
151 151
   }
Please login to merge, or discard this patch.
modules/commons/commons_activity_streams/commons_activity_streams.module 1 patch
Spacing   +4 added lines, -4 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;
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
   // Create a token to retrieve the user picture formatted using any of the
225 225
   // currently defined image styles.
226 226
   foreach ($styles as $style_name => $style) {
227
-    $tokens['picture:' . $style_name] = array(
227
+    $tokens['picture:'.$style_name] = array(
228 228
       'name' => t('Picture: @st image style', array('@st' => $style_name)),
229 229
       'description' => t('Picture: @st image style', array('@st' => $style_name)),
230 230
     );
@@ -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.
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
           'html' => TRUE,
276 276
         );
277 277
 
278
-        $replacements[$original] = "<div class='user-picture'>" . l($image, $user_path['path'], $link_options) . "</div>";
278
+        $replacements[$original] = "<div class='user-picture'>".l($image, $user_path['path'], $link_options)."</div>";
279 279
       }
280 280
     }
281 281
   }
Please login to merge, or discard this patch.
modules/commons/commons_media/commons_media.module 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
   if (!isset($commons_entity_integrations)) {
38 38
     foreach (module_implements('commons_entity_integration') as $module) {
39
-      $commons_entity_integrations[$module] = call_user_func($module . '_commons_entity_integration');
39
+      $commons_entity_integrations[$module] = call_user_func($module.'_commons_entity_integration');
40 40
     }
41 41
   }
42 42
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     $form['#suffix'] .= '<span class="ajax-new-content"></span>';
141 141
   }
142 142
 
143
-  $output = theme('status_messages') . drupal_render($form);
143
+  $output = theme('status_messages').drupal_render($form);
144 144
   $js = drupal_add_js();
145 145
   $settings = call_user_func_array('array_merge_recursive', $js['settings']['data']);
146 146
 
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
  */
171 171
 function commons_media_page_build(&$page) {
172 172
   $page['page_bottom']['commons_media']['#attached']['css'] = array(
173
-    drupal_get_path('module', 'commons_media') . '/commons_media.css' => array(
173
+    drupal_get_path('module', 'commons_media').'/commons_media.css' => array(
174 174
       'every_page' => TRUE,
175 175
     ),
176 176
   );
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
 function commons_media_form_file_entity_add_upload_alter(&$form, &$form_state, $form_id) {
256 256
   // Automatically upload selected files.
257 257
   if ($form['#step'] == 1) {
258
-    $form['#attached']['js'][] = drupal_get_path('module', 'commons_media') . '/commons_media_autoupload.js';
258
+    $form['#attached']['js'][] = drupal_get_path('module', 'commons_media').'/commons_media_autoupload.js';
259 259
   }
260 260
 }
261 261
 
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
   $form['options']['fields']['#access'] = FALSE;
277 277
 
278 278
   // Attach JavaScript to automatically embed files.
279
-  $form['#attached']['js'][] = drupal_get_path('module', 'commons_media') . '/commons_media_autoembed.js';
279
+  $form['#attached']['js'][] = drupal_get_path('module', 'commons_media').'/commons_media_autoembed.js';
280 280
 }
281 281
 
282 282
 /**
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
             // Only move files that aren't currently in use.
316 316
             if (empty($usage)) {
317 317
               $scheme = 'private://';
318
-              $uri = file_stream_wrapper_uri_normalize($scheme . $source_file->filename);
318
+              $uri = file_stream_wrapper_uri_normalize($scheme.$source_file->filename);
319 319
               file_move($source_file, $uri, FILE_EXISTS_RENAME);
320 320
             }
321 321
           }
@@ -340,7 +340,7 @@  discard block
 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.
modules/commons/commons_media/commons_media.private_files.inc 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
           // Only move files that aren't currently in use.
58 58
           if (empty($usage)) {
59 59
             $scheme = 'private://';
60
-            $uri = file_stream_wrapper_uri_normalize($scheme . $source_file->filename);
60
+            $uri = file_stream_wrapper_uri_normalize($scheme.$source_file->filename);
61 61
             file_move($source_file, $uri, FILE_EXISTS_RENAME);
62 62
           }
63 63
         }
Please login to merge, or discard this patch.
commons_follow_ui/commons_follow_ui.commons_utility_links.inc 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
   if (user_is_logged_in()) {
15 15
     global $user;
16 16
     $account = $user;
17
-    $links['settings']= array(
18
-      'href' => 'user/' . $account->uid . '/notification-settings',
17
+    $links['settings'] = array(
18
+      'href' => 'user/'.$account->uid.'/notification-settings',
19 19
       'title' => t('Settings'),
20 20
       'weight' => 10,
21 21
     );
Please login to merge, or discard this patch.
themes/commons/commons_origins/template.php 1 patch
Spacing   +72 added lines, -72 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     // @see commons_origins_form_alter().
16 16
     'form_content' => array(
17 17
       'render element' => 'form',
18
-      'path' => drupal_get_path('theme', 'commons_origins') . '/templates/form',
18
+      'path' => drupal_get_path('theme', 'commons_origins').'/templates/form',
19 19
       'template' => 'form-content',
20 20
       'pattern' => 'form_content__',
21 21
     ),
@@ -35,12 +35,12 @@  discard block
 block discarded – undo
35 35
   foreach ($iconify as $name) {
36 36
     if (isset($element[$name])) {
37 37
       $words = explode(' ', $element[$name]['title']);
38
-      foreach($words as &$word) {
39
-        if(is_numeric($word)) {
40
-          $word = '<span class="notification-count">' . $word . '</span>';
38
+      foreach ($words as &$word) {
39
+        if (is_numeric($word)) {
40
+          $word = '<span class="notification-count">'.$word.'</span>';
41 41
         }
42 42
         else {
43
-          $word = '<span class="notification-label element-invisible">' . $word . '</span>';
43
+          $word = '<span class="notification-label element-invisible">'.$word.'</span>';
44 44
         }
45 45
       }
46 46
       $element[$name]['title'] = implode(' ', $words);
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
   // Video and rich type must have HTML content.
60 60
   // Wrap the HTML content in a <div> to allow it to be made responsive.
61 61
   if (in_array($type, array('video', 'rich'))) {
62
-    $variables['content'] = '<div class="oembed">' . $content . '</div>';
62
+    $variables['content'] = '<div class="oembed">'.$content.'</div>';
63 63
   }
64 64
 }
65 65
 
@@ -103,12 +103,12 @@  discard block
 block discarded – undo
103 103
 function commons_origins_apachesolr_search_browse_blocks($vars) {
104 104
   $result = '';
105 105
   if ($vars['content']['#children']) {
106
-    $result .= '<div class="apachesolr-browse-blocks">' . "\n";
107
-    $result .= '  <h2 class="search-results-title">' . t('Browse available categories') . '</h2>' . "\n";
108
-    $result .= '  <div class="commons-pod">' . "\n";
109
-    $result .= '    <p>' . t('Pick a category to launch a search.') . '</p>' . "\n";
110
-    $result .= $vars['content']['#children'] . "\n";
111
-    $result .= '  </div>' . "\n";
106
+    $result .= '<div class="apachesolr-browse-blocks">'."\n";
107
+    $result .= '  <h2 class="search-results-title">'.t('Browse available categories').'</h2>'."\n";
108
+    $result .= '  <div class="commons-pod">'."\n";
109
+    $result .= '    <p>'.t('Pick a category to launch a search.').'</p>'."\n";
110
+    $result .= $vars['content']['#children']."\n";
111
+    $result .= '  </div>'."\n";
112 112
     $result .= '</div>';
113 113
   }
114 114
 
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
     $variables['classes_array'] = array_merge($variables['classes_array'], $variables['message_classes']);
193 193
   }
194 194
   $variables['classes_array'][] = 'clearfix';
195
-  $variables['attributes_array']['id'] = 'privatemsg-mid-' . $variables['mid'];
195
+  $variables['attributes_array']['id'] = 'privatemsg-mid-'.$variables['mid'];
196 196
   $variables['content_attributes_array']['class'][] = 'privatemsg-message-content';
197 197
 
198 198
   // Add a distinct class to the "Delete" action.
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
   $output = '';
215 215
   $path_to_at_core = drupal_get_path('theme', 'adaptivetheme');
216 216
 
217
-  include_once($path_to_at_core . '/inc/get.inc');
217
+  include_once($path_to_at_core.'/inc/get.inc');
218 218
 
219 219
   global $theme_key;
220 220
   $theme_name = $theme_key;
@@ -229,15 +229,15 @@  discard block
 block discarded – undo
229 229
 
230 230
   if (at_get_setting('extra_menu_classes', $theme_name) == 1 && !empty($element['#original_link'])) {
231 231
     if (!empty($element['#original_link']['depth'])) {
232
-      $element['#attributes']['class'][] = 'menu-depth-' . $element['#original_link']['depth'];
232
+      $element['#attributes']['class'][] = 'menu-depth-'.$element['#original_link']['depth'];
233 233
     }
234 234
     if (!empty($element['#original_link']['mlid'])) {
235
-      $element['#attributes']['class'][] = 'menu-item-' . $element['#original_link']['mlid'];
235
+      $element['#attributes']['class'][] = 'menu-item-'.$element['#original_link']['mlid'];
236 236
     }
237 237
   }
238 238
 
239 239
   if (at_get_setting('menu_item_span_elements', $theme_name) == 1 && !empty($element['#title'])) {
240
-    $element['#title'] = '<span>' . $element['#title'] . '</span>';
240
+    $element['#title'] = '<span>'.$element['#title'].'</span>';
241 241
     $element['#localized_options']['html'] = TRUE;
242 242
   }
243 243
 
@@ -246,15 +246,15 @@  discard block
 block discarded – undo
246 246
   }
247 247
 
248 248
   $output = l($element['#title'], $element['#href'], $element['#localized_options']);
249
-  return '<li' . drupal_attributes($element['#attributes']) . '>' . $output . $sub_menu . "</li>";
249
+  return '<li'.drupal_attributes($element['#attributes']).'>'.$output.$sub_menu."</li>";
250 250
 }
251 251
 
252 252
 /**
253 253
  * Helper function to examine menu links and return the appropriate class.
254 254
  */
255
-function commons_origins_menu_link_class(&$element)  {
255
+function commons_origins_menu_link_class(&$element) {
256 256
   if ($element['#original_link']['menu_name'] == 'main-menu') {
257
-    $element['#attributes']['class'][] = drupal_html_class($element['#original_link']['menu_name'] . '-' . $element['#original_link']['router_path']);
257
+    $element['#attributes']['class'][] = drupal_html_class($element['#original_link']['menu_name'].'-'.$element['#original_link']['router_path']);
258 258
   }
259 259
 }
260 260
 
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 
280 280
   // Only load the media styles if Commons Media is enabled.
281 281
   if (module_exists('commons_media')) {
282
-    drupal_add_css(drupal_get_path('theme', 'commons_origins') . '/css/commons-media.css', array('media' => 'screen', 'group' => CSS_THEME));
282
+    drupal_add_css(drupal_get_path('theme', 'commons_origins').'/css/commons-media.css', array('media' => 'screen', 'group' => CSS_THEME));
283 283
   }
284 284
 }
285 285
 
@@ -342,10 +342,10 @@  discard block
 block discarded – undo
342 342
     // Add appropriate classes to words in the title.
343 343
     foreach ($chunks as &$chunk) {
344 344
       if ($chunk == $variables['comment_count']) {
345
-        $chunk = '<span class="action-item-small-append">' . $variables['comment_count'] . '</span>';
345
+        $chunk = '<span class="action-item-small-append">'.$variables['comment_count'].'</span>';
346 346
       }
347 347
       else {
348
-        $chunk = '<span class="element-invisible">' . $chunk . '</span>';
348
+        $chunk = '<span class="element-invisible">'.$chunk.'</span>';
349 349
       }
350 350
     }
351 351
     $comments_link['title'] = implode(' ', $chunks);
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
     'field_related_question',
400 400
     'field_topics',
401 401
   );
402
-  foreach($related_information as $field) {
402
+  foreach ($related_information as $field) {
403 403
     if (!empty($variables['content'][$field])) {
404 404
       $variables['content']['related_information'][$field] = $variables['content'][$field];
405 405
       hide($variables['content'][$field]);
@@ -509,13 +509,13 @@  discard block
 block discarded – undo
509 509
  */
510 510
 function commons_origins_preprocess_panelizer_view_mode(&$variables, $hook) {
511 511
   // Add classed to identity the entity type being overridden.
512
-  $variables['classes_array'][] = drupal_html_class('panelizer-' . $variables['element']['#entity_type']);
513
-  $variables['title_attributes_array']['class'][] = drupal_html_class($variables['element']['#entity_type'] . '-title');
514
-  $variables['title_attributes_array']['class'][] = drupal_html_class('panelizer-' . $variables['element']['#entity_type'] . '-title');
512
+  $variables['classes_array'][] = drupal_html_class('panelizer-'.$variables['element']['#entity_type']);
513
+  $variables['title_attributes_array']['class'][] = drupal_html_class($variables['element']['#entity_type'].'-title');
514
+  $variables['title_attributes_array']['class'][] = drupal_html_class('panelizer-'.$variables['element']['#entity_type'].'-title');
515 515
 
516 516
   // Add some extra theme hooks for the subthemers.
517
-  $variables['hook_theme_suggestions'][] = $hook . '__' . $variables['element']['#entity_type'];
518
-  $variables['hook_theme_suggestions'][] = $hook . '__' . $variables['element']['#entity_type'] . '__' . $variables['element']['#bundle'];
517
+  $variables['hook_theme_suggestions'][] = $hook.'__'.$variables['element']['#entity_type'];
518
+  $variables['hook_theme_suggestions'][] = $hook.'__'.$variables['element']['#entity_type'].'__'.$variables['element']['#bundle'];
519 519
 }
520 520
 
521 521
 /**
@@ -611,10 +611,10 @@  discard block
 block discarded – undo
611 611
   // node type information.
612 612
   foreach ($view->result as $id => $result) {
613 613
     if (isset($result->node_type)) {
614
-      $variables['classes_array'][$id] .= ' ' . drupal_html_class('row-type-' . $result->node_type);
614
+      $variables['classes_array'][$id] .= ' '.drupal_html_class('row-type-'.$result->node_type);
615 615
     }
616 616
     else if (($view->name == 'commons_events_upcoming' && $view->override_path != 'events') || $view->name == 'commons_events_user_upcoming_events') {
617
-      $variables['classes_array'][$id] .= ' ' . drupal_html_class('row-type-event');
617
+      $variables['classes_array'][$id] .= ' '.drupal_html_class('row-type-event');
618 618
     }
619 619
   }
620 620
 }
@@ -622,7 +622,7 @@  discard block
 block discarded – undo
622 622
 /**
623 623
  * Implements hook_preprocess_pager().
624 624
  */
625
-function commons_origins_preprocess_pager_link (&$variables, $hook) {
625
+function commons_origins_preprocess_pager_link(&$variables, $hook) {
626 626
   // Style pager links like buttons.
627 627
   $variables['attributes']['class'][] = 'action-item';
628 628
   $variables['attributes']['class'][] = 'action-item-inline';
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
   }
686 686
 
687 687
   // Set an identifying class to the event attendance form.
688
-  if(strpos($element['#id'], 'commons-events-attend-event-form') === 0) {
688
+  if (strpos($element['#id'], 'commons-events-attend-event-form') === 0) {
689 689
     $variables['attributes_array']['class'][] = 'node-actions';
690 690
   }
691 691
 
@@ -760,7 +760,7 @@  discard block
 block discarded – undo
760 760
     $variables['form']['actions']['submit']['#attributes']['class'][] = 'action-item-primary';
761 761
 
762 762
     if (isset($variables['form']['title'])) {
763
-      $variables['form']['title']['#markup'] = '<h3 class="partial-node-form-title">' . $variables['form']['title']['#markup'] . '</h3>';
763
+      $variables['form']['title']['#markup'] = '<h3 class="partial-node-form-title">'.$variables['form']['title']['#markup'].'</h3>';
764 764
     }
765 765
   }
766 766
 
@@ -827,17 +827,17 @@  discard block
 block discarded – undo
827 827
 
828 828
   $classes = 'rate-button';
829 829
   if ($class) {
830
-    $classes .= ' ' . $class;
830
+    $classes .= ' '.$class;
831 831
   }
832 832
   if (empty($href)) {
833 833
     // Widget is disabled or closed.
834
-    return '<span class="' . $classes . '" id="rate-button-' . $id . '">' .
835
-      '<span class="element-invisible">' . check_plain($text) . '</span>' .
834
+    return '<span class="'.$classes.'" id="rate-button-'.$id.'">'.
835
+      '<span class="element-invisible">'.check_plain($text).'</span>'.
836 836
       '</span>';
837 837
   }
838 838
   else {
839
-    return '<a class="' . $classes . '" id="rate-button-' . $id . '" rel="nofollow" href="' . htmlentities($href) . '" title="' . check_plain($text) . '">' .
840
-      '<span class="element-invisible">' . check_plain($text) . '</span>' .
839
+    return '<a class="'.$classes.'" id="rate-button-'.$id.'" rel="nofollow" href="'.htmlentities($href).'" title="'.check_plain($text).'">'.
840
+      '<span class="element-invisible">'.check_plain($text).'</span>'.
841 841
       '</a>';
842 842
   }
843 843
 }
@@ -929,10 +929,10 @@  discard block
 block discarded – undo
929 929
 function commons_origins_css_alter(&$css) {
930 930
   // Remove preset styles that interfere with theming.
931 931
   $unset = array(
932
-    drupal_get_path('module', 'search') . '/search.css',
933
-    drupal_get_path('module', 'rich_snippets') . '/rich_snippets.css',
934
-    drupal_get_path('module', 'commons_like') . '/commons-like.css',
935
-    drupal_get_path('module', 'panels') . '/css/panels.css',
932
+    drupal_get_path('module', 'search').'/search.css',
933
+    drupal_get_path('module', 'rich_snippets').'/rich_snippets.css',
934
+    drupal_get_path('module', 'commons_like').'/commons-like.css',
935
+    drupal_get_path('module', 'panels').'/css/panels.css',
936 936
   );
937 937
   foreach ($unset as $path) {
938 938
     if (isset($css[$path])) {
@@ -969,14 +969,14 @@  discard block
 block discarded – undo
969 969
           'level' => 'h2',
970 970
         );
971 971
       }
972
-      $output .= '<' . $heading['level'];
972
+      $output .= '<'.$heading['level'];
973 973
       if (!empty($heading['class'])) {
974 974
         $output .= drupal_attributes(array('class' => $heading['class']));
975 975
       }
976
-      $output .= '>' . check_plain($heading['text']) . '</' . $heading['level'] . '>';
976
+      $output .= '>'.check_plain($heading['text']).'</'.$heading['level'].'>';
977 977
     }
978 978
 
979
-    $output .= '<ul' . drupal_attributes($attributes) . '>';
979
+    $output .= '<ul'.drupal_attributes($attributes).'>';
980 980
 
981 981
     $num_links = count($links);
982 982
     $i = 1;
@@ -995,7 +995,7 @@  discard block
 block discarded – undo
995 995
         if (isset($link['href']) && ($link['href'] == $_GET['q'] || ($link['href'] == '<front>' && drupal_is_front_page())) && (empty($link['language']) || $link['language']->language == $language_url->language)) {
996 996
           $class[] = 'active';
997 997
         }
998
-        $output .= '<li' . drupal_attributes(array('class' => $class)) . '>';
998
+        $output .= '<li'.drupal_attributes(array('class' => $class)).'>';
999 999
 
1000 1000
         if (isset($link['href'])) {
1001 1001
           // Pass in $link as $options, they share the same keys.
@@ -1010,7 +1010,7 @@  discard block
 block discarded – undo
1010 1010
           if (isset($link['attributes'])) {
1011 1011
             $span_attributes = drupal_attributes($link['attributes']);
1012 1012
           }
1013
-          $output .= '<span' . $span_attributes . '>' . $link['title'] . '</span>';
1013
+          $output .= '<span'.$span_attributes.'>'.$link['title'].'</span>';
1014 1014
         }
1015 1015
 
1016 1016
         $i++;
@@ -1034,14 +1034,14 @@  discard block
 block discarded – undo
1034 1034
   element_set_attributes($element, array('id'));
1035 1035
   _form_set_class($element, array('form-wrapper'));
1036 1036
 
1037
-  $output = '<fieldset' . drupal_attributes($element['#attributes']) . '>';
1037
+  $output = '<fieldset'.drupal_attributes($element['#attributes']).'>';
1038 1038
   if (!empty($element['#title'])) {
1039 1039
     // Always wrap fieldset legends in a SPAN for CSS positioning.
1040
-    $output .= '<legend><span class="fieldset-legend">' . $element['#title'] . '</span></legend>';
1040
+    $output .= '<legend><span class="fieldset-legend">'.$element['#title'].'</span></legend>';
1041 1041
   }
1042 1042
   $output .= '<div class="fieldset-wrapper">';
1043 1043
   if (!empty($element['#description'])) {
1044
-    $output .= '<div class="fieldset-description">' . $element['#description'] . '</div>';
1044
+    $output .= '<div class="fieldset-description">'.$element['#description'].'</div>';
1045 1045
   }
1046 1046
   $output .= $element['#children'];
1047 1047
   if (isset($element['#value'])) {
@@ -1049,7 +1049,7 @@  discard block
 block discarded – undo
1049 1049
   }
1050 1050
   $output .= '</div>';
1051 1051
   $output .= "</fieldset>\n";
1052
-  return '<div class="fieldset-outer-wrapper">' . $output . '</div>';
1052
+  return '<div class="fieldset-outer-wrapper">'.$output.'</div>';
1053 1053
 }
1054 1054
 
1055 1055
 /**
@@ -1117,10 +1117,10 @@  discard block
 block discarded – undo
1117 1117
   $attributes = drupal_attributes($element['#attributes']);
1118 1118
 
1119 1119
   if (!isset($element['#value'])) {
1120
-    return '<' . $element['#tag'] . $attributes . " />\n";
1120
+    return '<'.$element['#tag'].$attributes." />\n";
1121 1121
   }
1122 1122
   else {
1123
-    $output = '<' . $element['#tag'] . $attributes . '>';
1123
+    $output = '<'.$element['#tag'].$attributes.'>';
1124 1124
     if (isset($element['#value_prefix'])) {
1125 1125
       $output .= $element['#value_prefix'];
1126 1126
     }
@@ -1128,7 +1128,7 @@  discard block
 block discarded – undo
1128 1128
     if (isset($element['#value_suffix'])) {
1129 1129
       $output .= $element['#value_suffix'];
1130 1130
     }
1131
-    $output .= '</' . $element['#tag'] . ">\n";
1131
+    $output .= '</'.$element['#tag'].">\n";
1132 1132
     return $output;
1133 1133
   }
1134 1134
 }
@@ -1143,11 +1143,11 @@  discard block
 block discarded – undo
1143 1143
 
1144 1144
   // Render the label, if it's not hidden.
1145 1145
   if (!$variables['label_hidden']) {
1146
-    $output .= '<div class="field-label"' . $variables['title_attributes'] . '>' . $variables['label'] . ':&nbsp;</div>';
1146
+    $output .= '<div class="field-label"'.$variables['title_attributes'].'>'.$variables['label'].':&nbsp;</div>';
1147 1147
   }
1148 1148
 
1149 1149
   // Render the items.
1150
-  $output .= '<div class="field-items"' . $variables['content_attributes'] . '>';
1150
+  $output .= '<div class="field-items"'.$variables['content_attributes'].'>';
1151 1151
   foreach ($variables['items'] as $delta => $item) {
1152 1152
     if (isset($item['#type']) && $item['#type'] == 'link') {
1153 1153
       if (strpos($item['#href'], '/subscribe')) {
@@ -1158,13 +1158,13 @@  discard block
 block discarded – undo
1158 1158
       }
1159 1159
     }
1160 1160
 
1161
-    $classes = 'field-item ' . ($delta % 2 ? 'odd' : 'even');
1162
-    $output .= '<div class="' . $classes . '"' . $variables['item_attributes'][$delta] . '>' . drupal_render($item) . '</div>';
1161
+    $classes = 'field-item '.($delta % 2 ? 'odd' : 'even');
1162
+    $output .= '<div class="'.$classes.'"'.$variables['item_attributes'][$delta].'>'.drupal_render($item).'</div>';
1163 1163
   }
1164 1164
   $output .= '</div>';
1165 1165
 
1166 1166
   // Render the top-level DIV.
1167
-  $output = '<div class="' . $variables['classes'] . '"' . $variables['attributes'] . '>' . $output . '</div>';
1167
+  $output = '<div class="'.$variables['classes'].'"'.$variables['attributes'].'>'.$output.'</div>';
1168 1168
 
1169 1169
   return $output;
1170 1170
 }
@@ -1176,7 +1176,7 @@  discard block
 block discarded – undo
1176 1176
   $output = '';
1177 1177
 
1178 1178
   // Add Microformat classes to each address.
1179
-  foreach($variables['items'] as &$address) {
1179
+  foreach ($variables['items'] as &$address) {
1180 1180
     // Only display an address if it has been populated. We determine this by
1181 1181
     // validating that the administrative area has been populated.
1182 1182
     if (!empty($address['#address']['administrative_area'])) {
@@ -1190,19 +1190,19 @@  discard block
 block discarded – undo
1190 1190
 
1191 1191
   // Render the label, if it's not hidden.
1192 1192
   if (!$variables['label_hidden']) {
1193
-    $output .= '<div class="field-label"' . $variables['title_attributes'] . '>' . $variables['label'] . ':</div> ';
1193
+    $output .= '<div class="field-label"'.$variables['title_attributes'].'>'.$variables['label'].':</div> ';
1194 1194
   }
1195 1195
 
1196 1196
   // Render the items.
1197
-  $output .= '<div class="field-items"' . $variables['content_attributes'] . '>';
1197
+  $output .= '<div class="field-items"'.$variables['content_attributes'].'>';
1198 1198
   foreach ($variables['items'] as $delta => $item) {
1199
-    $classes = 'field-item ' . ($delta % 2 ? 'odd' : 'even');
1200
-    $output .= '<div class="' . $classes . '"' . $variables['item_attributes'][$delta] . '>' . drupal_render($item) . '</div>';
1199
+    $classes = 'field-item '.($delta % 2 ? 'odd' : 'even');
1200
+    $output .= '<div class="'.$classes.'"'.$variables['item_attributes'][$delta].'>'.drupal_render($item).'</div>';
1201 1201
   }
1202 1202
   $output .= '</div>';
1203 1203
 
1204 1204
   // Render the top-level DIV.
1205
-  $output = '<div class="' . $variables['classes'] . '"' . $variables['attributes'] . '>' . $output . '</div>';
1205
+  $output = '<div class="'.$variables['classes'].'"'.$variables['attributes'].'>'.$output.'</div>';
1206 1206
 
1207 1207
   return $output;
1208 1208
 }
@@ -1260,7 +1260,7 @@  discard block
 block discarded – undo
1260 1260
         $variables['user_profile'][$action]['#access'] = FALSE;
1261 1261
       }
1262 1262
     }
1263
-    if (!module_exists('commons_trusted_contacts') && isset(  $variables['user_profile']['user_actions']['group_group'])) {
1263
+    if (!module_exists('commons_trusted_contacts') && isset($variables['user_profile']['user_actions']['group_group'])) {
1264 1264
       $variables['user_profile']['user_actions']['group_group']['#access'] = FALSE;
1265 1265
     }
1266 1266
     if (!empty($variables['user_profile']['user_actions'])) {
@@ -1301,21 +1301,21 @@  discard block
 block discarded – undo
1301 1301
 
1302 1302
   // Replace the submitted text on nodes with something a bit more pertinent to
1303 1303
   // the content type.
1304
-  if (variable_get('node_submitted_' . $node->type, TRUE)) {
1304
+  if (variable_get('node_submitted_'.$node->type, TRUE)) {
1305 1305
     $node_type_info = node_type_get_type($variables['node']);
1306 1306
     $type_attributes = array('class' => array(
1307 1307
       'node-content-type',
1308
-      drupal_html_class('node-content-type-' . $node->type),
1308
+      drupal_html_class('node-content-type-'.$node->type),
1309 1309
     ));
1310 1310
     $placeholders = array(
1311
-      '!type' => '<span' . drupal_attributes($type_attributes) . '>' . check_plain($node_type_info->name) . '</span>',
1311
+      '!type' => '<span'.drupal_attributes($type_attributes).'>'.check_plain($node_type_info->name).'</span>',
1312 1312
       '!user' => $variables['name'],
1313 1313
       '!date' => $variables['date'],
1314 1314
       '@interval' => format_interval(REQUEST_TIME - $node->created),
1315 1315
     );
1316 1316
     // Show what group the content belongs to if applicable.
1317 1317
     if (!empty($node->{OG_AUDIENCE_FIELD}) && $wrapper->{OG_AUDIENCE_FIELD}->count() == 1) {
1318
-      $placeholders['!group'] = l($wrapper->{OG_AUDIENCE_FIELD}->get(0)->label(), 'node/' . $wrapper->{OG_AUDIENCE_FIELD}->get(0)->getIdentifier());
1318
+      $placeholders['!group'] = l($wrapper->{OG_AUDIENCE_FIELD}->get(0)->label(), 'node/'.$wrapper->{OG_AUDIENCE_FIELD}->get(0)->getIdentifier());
1319 1319
       if ($use_timeago_date_format == TRUE) {
1320 1320
         $variables['submitted'] = t('!type created !date in the !group group by !user', $placeholders);
1321 1321
       }
@@ -1335,6 +1335,6 @@  discard block
 block discarded – undo
1335 1335
 
1336 1336
   // Append a feature label to featured node teasers.
1337 1337
   if ($variables['teaser'] && $variables['promote']) {
1338
-    $variables['submitted'] .= ' <span class="featured-node-tooltip">' . t('Featured') . ' ' . $variables['type'] . '</span>';
1338
+    $variables['submitted'] .= ' <span class="featured-node-tooltip">'.t('Featured').' '.$variables['type'].'</span>';
1339 1339
   }
1340 1340
 }
Please login to merge, or discard this patch.
themes/commons/commons_origins/commons_origins.palettes.inc 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
   );
21 21
 
22 22
   foreach ($palettes as $key => $name) {
23
-    $palettes[$key] = theme('image', array('alt' => t($name), 'title' => t($name), 'path' => drupal_get_path('theme', 'commons_origins') . "/images/palettes/$key.png"));
23
+    $palettes[$key] = theme('image', array('alt' => t($name), 'title' => t($name), 'path' => drupal_get_path('theme', 'commons_origins')."/images/palettes/$key.png"));
24 24
   }
25 25
   return $palettes;
26 26
 }
Please login to merge, or discard this patch.