Passed
Push — master ( 0f8b85...1af5ec )
by Kevin
15:29 queued 03:24
created
boincwork/views/views_handler_field_boincwork_host_app_turnaround_avg.inc 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
   }
12 12
 
13 13
   function render($values) {
14
-    $time_in_days = $values->host_app_version_turnaround_avg / (24*60*60);
15
-    return round($time_in_days, 2) . ' ' . t('days');
14
+    $time_in_days = $values->host_app_version_turnaround_avg/(24*60*60);
15
+    return round($time_in_days, 2).' '.t('days');
16 16
   }
17 17
 }
Please login to merge, or discard this patch.
boincwork/views/views_handler_field_boincwork_app_version_number.inc 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,6 +11,6 @@
 block discarded – undo
11 11
   }
12 12
 
13 13
   function render($values) {
14
-    return sprintf("%01.2f", $values->app_version_host_app_version_version_num / 100);
14
+    return sprintf("%01.2f", $values->app_version_host_app_version_version_num/100);
15 15
   }
16 16
 }
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/boincwork/boincwork.views.inc 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1637,7 +1637,7 @@
 block discarded – undo
1637 1637
   
1638 1638
   return array(
1639 1639
     'info' => array(
1640
-      'path' => drupal_get_path('module', 'boincwork') . '/views',
1640
+      'path' => drupal_get_path('module', 'boincwork').'/views',
1641 1641
     ),
1642 1642
     'handlers' => array(
1643 1643
       'views_handler_argument_boincuser_id' => array(
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/boinctranslate/boinctranslate.admin.inc 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -301,7 +301,7 @@
 block discarded – undo
301 301
           
302 302
           if ($response == '404 NOT FOUND') {
303 303
             form_set_error(
304
-              'boinc_translate_transifex_' . ($project == $boinc_name ? 'standard' : 'project') . '_resources',
304
+              'boinc_translate_transifex_'.($project == $boinc_name ? 'standard' : 'project').'_resources',
305 305
               t('Resource %name not found in %project.',
306 306
                 array(
307 307
                   '%name' => $resource,
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/boincuser/boincuser.views.inc 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -274,7 +274,7 @@
 block discarded – undo
274 274
 function boincuser_views_handlers() {
275 275
   return array(
276 276
     'info' => array(
277
-      'path' => drupal_get_path('module', 'boincuser') . '/views',
277
+      'path' => drupal_get_path('module', 'boincuser').'/views',
278 278
     ),
279 279
     'handlers' => array(
280 280
       'views_handler_argument_boincuser_id' => array(
Please login to merge, or discard this patch.
drupal/sites/default/boinc/themes/boinc/theme-settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 // $Id: theme-settings.php,v 1.7 2008/09/11 09:36:50 johnalbin Exp $
3 3
 
4 4
 // Include the definition of zen_settings() and zen_theme_get_default_settings().
5
-include_once './' . drupal_get_path('theme', 'zen') . '/theme-settings.php';
5
+include_once './'.drupal_get_path('theme', 'zen').'/theme-settings.php';
6 6
 
7 7
 
8 8
 /**
Please login to merge, or discard this patch.
drupal/sites/all/themes/zen/zen-internals/template.conditional-styles.inc 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
       // Render the stylesheets to link elements.
65 65
       $conditional_styles = $conditional_styles_rtl = '';
66 66
       if (!empty($stylesheets)) {
67
-        $query_string = '?'. substr(variable_get('css_js_query_string', '0'), 0, 1);
67
+        $query_string = '?'.substr(variable_get('css_js_query_string', '0'), 0, 1);
68 68
         $base_path = base_path();
69 69
         foreach ($stylesheets AS $condition => $css) {
70 70
           // Each condition requires its own set of links.
@@ -92,17 +92,17 @@  discard block
 block discarded – undo
92 92
       // Save the stylesheets for later retrieval.
93 93
       if ($conditional_styles) {
94 94
         if (db_is_active()) {
95
-          variable_set('conditional_styles_' . $theme, $conditional_styles);
96
-          variable_set('conditional_styles_' . $theme . '_rtl', $conditional_styles_rtl);
95
+          variable_set('conditional_styles_'.$theme, $conditional_styles);
96
+          variable_set('conditional_styles_'.$theme.'_rtl', $conditional_styles_rtl);
97 97
         }
98 98
         else {
99
-          $GLOBALS['conf']['conditional_styles_' . $theme] = $conditional_styles;
100
-          $GLOBALS['conf']['conditional_styles_' . $theme . '_rtl'] = $conditional_styles_rtl;
99
+          $GLOBALS['conf']['conditional_styles_'.$theme] = $conditional_styles;
100
+          $GLOBALS['conf']['conditional_styles_'.$theme.'_rtl'] = $conditional_styles_rtl;
101 101
         }
102 102
       }
103 103
       elseif (db_is_active()) {
104
-        variable_del('conditional_styles_' . $theme);
105
-        variable_del('conditional_styles_' . $theme . '_rtl');
104
+        variable_del('conditional_styles_'.$theme);
105
+        variable_del('conditional_styles_'.$theme.'_rtl');
106 106
       }
107 107
     }
108 108
   }
Please login to merge, or discard this patch.
drupal/sites/all/themes/zen/zen-internals/template.block-editing.inc 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
   // Display 'edit block' for custom blocks.
19 19
   if ($block->module == 'block') {
20
-    $vars['edit_links_array']['block-edit'] = l('<span>' . t('edit block') . '</span>', 'admin/build/block/configure/' . $block->module . '/' . $block->delta,
20
+    $vars['edit_links_array']['block-edit'] = l('<span>'.t('edit block').'</span>', 'admin/build/block/configure/'.$block->module.'/'.$block->delta,
21 21
       array(
22 22
         'attributes' => array(
23 23
           'title' => t('edit the content of this block'),
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
   }
31 31
   // Display 'configure' for other blocks.
32 32
   else {
33
-    $vars['edit_links_array']['block-config'] = l('<span>' . t('configure') . '</span>', 'admin/build/block/configure/' . $block->module . '/' . $block->delta,
33
+    $vars['edit_links_array']['block-config'] = l('<span>'.t('configure').'</span>', 'admin/build/block/configure/'.$block->module.'/'.$block->delta,
34 34
       array(
35 35
         'attributes' => array(
36 36
           'title' => t('configure this block'),
@@ -45,14 +45,14 @@  discard block
 block discarded – undo
45 45
   // Display 'edit view' for Views blocks.
46 46
   if ($block->module == 'views' && user_access('administer views')) {
47 47
     list($view_name, $view_block) = explode('-block', $block->delta);
48
-    $vars['edit_links_array']['block-edit-view'] = l('<span>' . t('edit view') . '</span>', 'admin/build/views/edit/' . $view_name,
48
+    $vars['edit_links_array']['block-edit-view'] = l('<span>'.t('edit view').'</span>', 'admin/build/views/edit/'.$view_name,
49 49
       array(
50 50
         'attributes' => array(
51 51
           'title' => t('edit the view that defines this block'),
52 52
           'class' => 'block-edit-view',
53 53
         ),
54 54
         'query' => drupal_get_destination(),
55
-        'fragment' => 'views-tab-block' . $view_block,
55
+        'fragment' => 'views-tab-block'.$view_block,
56 56
         'html' => TRUE,
57 57
       )
58 58
     );
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
   // Display 'edit menu' for Menu blocks.
61 61
   elseif (($block->module == 'menu' || ($block->module == 'user' && $block->delta == 1)) && user_access('administer menu')) {
62 62
     $menu_name = ($block->module == 'user') ? 'navigation' : $block->delta;
63
-    $vars['edit_links_array']['block-edit-menu'] = l('<span>' . t('edit menu') . '</span>', 'admin/build/menu-customize/' . $menu_name,
63
+    $vars['edit_links_array']['block-edit-menu'] = l('<span>'.t('edit menu').'</span>', 'admin/build/menu-customize/'.$menu_name,
64 64
       array(
65 65
         'attributes' => array(
66 66
           'title' => t('edit the menu that defines this block'),
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
   }
74 74
   // Display 'edit menu' for Menu block blocks.
75 75
   elseif ($block->module == 'menu_block' && user_access('administer menu')) {
76
-    list($menu_name, ) = split(':', variable_get("menu_block_{$block->delta}_parent", 'navigation:0'));
77
-    $vars['edit_links_array']['block-edit-menu'] = l('<span>' . t('edit menu') . '</span>', 'admin/build/menu-customize/' . $menu_name,
76
+    list($menu_name,) = split(':', variable_get("menu_block_{$block->delta}_parent", 'navigation:0'));
77
+    $vars['edit_links_array']['block-edit-menu'] = l('<span>'.t('edit menu').'</span>', 'admin/build/menu-customize/'.$menu_name,
78 78
       array(
79 79
         'attributes' => array(
80 80
           'title' => t('edit the menu that defines this block'),
Please login to merge, or discard this patch.
drupal/sites/all/themes/zen/zen-internals/template.theme-registry.inc 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 function _zen_theme(&$existing, $type, $theme, $path) {
13 13
   // Compute the conditional stylesheets.
14 14
   if (!module_exists('conditional_styles')) {
15
-    include_once './' . _zen_path() . '/zen-internals/template.conditional-styles.inc';
15
+    include_once './'._zen_path().'/zen-internals/template.conditional-styles.inc';
16 16
     // _conditional_styles_theme() only needs to be run once.
17 17
     if ($theme == 'zen') {
18 18
       _conditional_styles_theme($existing, $type, $theme, $path);
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
   // If we are auto-rebuilding the theme registry, warn about the feature.
27 27
   // Always display the warning in the admin section, otherwise limit to three
28 28
   // warnings per hour.
29
-  if (function_exists('user_access') && user_access('administer site configuration') && theme_get_setting('zen_rebuild_registry') && $theme == $GLOBALS['theme'] && (arg(0) == 'admin' || flood_is_allowed($GLOBALS['theme'] . '_rebuild_registry_warning', 3))) {
30
-    flood_register_event($GLOBALS['theme'] . '_rebuild_registry_warning');
31
-    drupal_set_message(t('For easier theme development, the theme registry is being rebuilt on every page request. It is <em>extremely</em> important to <a href="!link">turn off this feature</a> on production websites.', array('!link' => url('admin/build/themes/settings/' . $GLOBALS['theme']))), 'warning', FALSE);
29
+  if (function_exists('user_access') && user_access('administer site configuration') && theme_get_setting('zen_rebuild_registry') && $theme == $GLOBALS['theme'] && (arg(0) == 'admin' || flood_is_allowed($GLOBALS['theme'].'_rebuild_registry_warning', 3))) {
30
+    flood_register_event($GLOBALS['theme'].'_rebuild_registry_warning');
31
+    drupal_set_message(t('For easier theme development, the theme registry is being rebuilt on every page request. It is <em>extremely</em> important to <a href="!link">turn off this feature</a> on production websites.', array('!link' => url('admin/build/themes/settings/'.$GLOBALS['theme']))), 'warning', FALSE);
32 32
   }
33 33
 
34 34
   // Keep track of all the base themes.
@@ -40,27 +40,27 @@  discard block
 block discarded – undo
40 40
     foreach (array_keys($existing) as $hook) {
41 41
       // Normally, preprocess functions are added to the registry after
42 42
       // HOOK_theme() returns, but if we add them first, they won't be re-added.
43
-      if (function_exists($theme . '_preprocess')) {
44
-        $existing[$hook]['preprocess functions'][] = $theme . '_preprocess';
43
+      if (function_exists($theme.'_preprocess')) {
44
+        $existing[$hook]['preprocess functions'][] = $theme.'_preprocess';
45 45
       }
46
-      if (function_exists($theme . '_preprocess_' . $hook)) {
47
-        $existing[$hook]['preprocess functions'][] = $theme . '_preprocess_' . $hook;
46
+      if (function_exists($theme.'_preprocess_'.$hook)) {
47
+        $existing[$hook]['preprocess functions'][] = $theme.'_preprocess_'.$hook;
48 48
       }
49 49
       // Add base theme process functions.
50 50
       foreach ($base_themes as $base_theme) {
51
-        if (function_exists($base_theme . '_process')) {
52
-          $existing[$hook]['preprocess functions'][] = $base_theme . '_process';
51
+        if (function_exists($base_theme.'_process')) {
52
+          $existing[$hook]['preprocess functions'][] = $base_theme.'_process';
53 53
         }
54
-        if (function_exists($base_theme . '_process_' . $hook)) {
55
-          $existing[$hook]['preprocess functions'][] = $base_theme . '_process_' . $hook;
54
+        if (function_exists($base_theme.'_process_'.$hook)) {
55
+          $existing[$hook]['preprocess functions'][] = $base_theme.'_process_'.$hook;
56 56
         }
57 57
       }
58 58
       // Add the theme process functions.
59
-      if (function_exists($theme . '_process')) {
60
-        $existing[$hook]['preprocess functions'][] = $theme . '_process';
59
+      if (function_exists($theme.'_process')) {
60
+        $existing[$hook]['preprocess functions'][] = $theme.'_process';
61 61
       }
62
-      if (function_exists($theme . '_process_' . $hook)) {
63
-        $existing[$hook]['preprocess functions'][] = $theme . '_process_' . $hook;
62
+      if (function_exists($theme.'_process_'.$hook)) {
63
+        $existing[$hook]['preprocess functions'][] = $theme.'_process_'.$hook;
64 64
       }
65 65
     }
66 66
   }
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
       'region' => array(
79 79
         'arguments' => array('elements' => NULL),
80 80
         'pattern' => 'region_',
81
-        'path' => drupal_get_path('theme', 'zen') . '/templates',
81
+        'path' => drupal_get_path('theme', 'zen').'/templates',
82 82
         'template' => 'region',
83 83
         // drupal_find_theme_templates() requires this, so manually add it.
84 84
         'include files' => array(),
@@ -118,13 +118,13 @@  discard block
 block discarded – undo
118 118
 
119 119
   if (!module_exists('domain_theme') && !empty($defaults)) {
120 120
     // Merge the defaults with the theme settings saved in the database.
121
-    $settings = array_merge($defaults, variable_get('theme_'. $theme .'_settings', array()));
121
+    $settings = array_merge($defaults, variable_get('theme_'.$theme.'_settings', array()));
122 122
     // Save the settings back to the database.
123 123
     if (db_is_active()) {
124
-      variable_set('theme_'. $theme .'_settings', $settings);
124
+      variable_set('theme_'.$theme.'_settings', $settings);
125 125
     }
126 126
     else {
127
-      $GLOBALS['conf']['theme_'. $theme .'_settings'] = $settings;
127
+      $GLOBALS['conf']['theme_'.$theme.'_settings'] = $settings;
128 128
     }
129 129
     // If the active theme has been loaded, force refresh of Drupal internals.
130 130
     if (!empty($GLOBALS['theme_key'])) {
Please login to merge, or discard this patch.