Passed
Push — dpa_docker_wrapper12 ( e18bd7 )
by David
08:59
created
drupal/sites/all/features/spam_controls/spam_controls.features.inc 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@
 block discarded – undo
4 4
  * Implementation of hook_ctools_plugin_api().
5 5
  */
6 6
 function spam_controls_ctools_plugin_api() {
7
-  list($module, $api) = func_get_args();
8
-  if ($module == "context" && $api == "context") {
7
+    list($module, $api) = func_get_args();
8
+    if ($module == "context" && $api == "context") {
9 9
     return array("version" => 3);
10
-  }
11
-  elseif ($module == "strongarm" && $api == "strongarm") {
10
+    }
11
+    elseif ($module == "strongarm" && $api == "strongarm") {
12 12
     return array("version" => 1);
13
-  }
13
+    }
14 14
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,7 @@
 block discarded – undo
7 7
   list($module, $api) = func_get_args();
8 8
   if ($module == "context" && $api == "context") {
9 9
     return array("version" => 3);
10
-  }
11
-  elseif ($module == "strongarm" && $api == "strongarm") {
10
+  } elseif ($module == "strongarm" && $api == "strongarm") {
12 11
     return array("version" => 1);
13 12
   }
14 13
 }
Please login to merge, or discard this patch.
sites/all/features/spam_controls/spam_controls.features.user_permission.inc 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -4,37 +4,37 @@
 block discarded – undo
4 4
  * Implementation of hook_user_default_permissions().
5 5
  */
6 6
 function spam_controls_user_default_permissions() {
7
-  $permissions = array();
7
+    $permissions = array();
8 8
 
9
-  // Exported permission: administer CAPTCHA settings
10
-  $permissions['administer CAPTCHA settings'] = array(
9
+    // Exported permission: administer CAPTCHA settings
10
+    $permissions['administer CAPTCHA settings'] = array(
11 11
     'name' => 'administer CAPTCHA settings',
12 12
     'roles' => array(
13
-      '0' => 'administrator',
13
+        '0' => 'administrator',
14 14
     ),
15
-  );
15
+    );
16 16
 
17
-  // Exported permission: administer recaptcha
18
-  $permissions['administer recaptcha'] = array(
17
+    // Exported permission: administer recaptcha
18
+    $permissions['administer recaptcha'] = array(
19 19
     'name' => 'administer recaptcha',
20 20
     'roles' => array(
21
-      '0' => 'administrator',
21
+        '0' => 'administrator',
22 22
     ),
23
-  );
23
+    );
24 24
 
25
-  // Exported permission: administer spamicide
26
-  $permissions['administer spamicide'] = array(
25
+    // Exported permission: administer spamicide
26
+    $permissions['administer spamicide'] = array(
27 27
     'name' => 'administer spamicide',
28 28
     'roles' => array(
29
-      '0' => 'administrator',
29
+        '0' => 'administrator',
30 30
     ),
31
-  );
31
+    );
32 32
 
33
-  // Exported permission: skip CAPTCHA
34
-  $permissions['skip CAPTCHA'] = array(
33
+    // Exported permission: skip CAPTCHA
34
+    $permissions['skip CAPTCHA'] = array(
35 35
     'name' => 'skip CAPTCHA',
36 36
     'roles' => array(),
37
-  );
37
+    );
38 38
 
39
-  return $permissions;
39
+    return $permissions;
40 40
 }
Please login to merge, or discard this patch.
sites/all/themes/zen/layouts/one_sidebar_second/one_sidebar_second.inc 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
  * Implements hook_panels_layouts().
4 4
  */
5 5
 function zen_one_sidebar_second_panels_layouts() {
6
-  $items['one_sidebar_second'] = array(
6
+    $items['one_sidebar_second'] = array(
7 7
     'title' => t('Zen Layout: one sidebar after content'),
8 8
     'icon' => 'one-sidebar-second.png',
9 9
     'theme' => 'zen_one_sidebar_second',
@@ -11,10 +11,10 @@  discard block
 block discarded – undo
11 11
     'css' => 'one-sidebar-second.css',
12 12
     'admin css' => 'one-sidebar-second-admin.css',    
13 13
     'panels' => array(
14
-      'content' => t('Content'),
15
-      'sidebar_first' => t('First sidebar'),
14
+        'content' => t('Content'),
15
+        'sidebar_first' => t('First sidebar'),
16 16
     ),
17
-  );
17
+    );
18 18
 
19
-  return $items;
19
+    return $items;
20 20
 }
Please login to merge, or discard this patch.
drupal/sites/all/themes/zen/layouts/two_sidebars/two_sidebars.inc 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
  * Implements hook_panels_layouts().
4 4
  */
5 5
 function zen_two_sidebars_panels_layouts() {
6
-  $items['two_sidebars'] = array(
6
+    $items['two_sidebars'] = array(
7 7
     'title' => t('Zen Layout: two sidebars with content'),
8 8
     'icon' => 'two-sidebars.png',
9 9
     'theme' => 'zen_two_sidebars',
@@ -11,11 +11,11 @@  discard block
 block discarded – undo
11 11
     'css' => 'two-sidebars.css',
12 12
     'admin css' => 'two-sidebars-admin.css',    
13 13
     'panels' => array(
14
-      'content' => t('Content'),
15
-      'sidebar_first' => t('First sidebar'),
16
-      'sidebar_second' => t('Second sidebar'),
14
+        'content' => t('Content'),
15
+        'sidebar_first' => t('First sidebar'),
16
+        'sidebar_second' => t('Second sidebar'),
17 17
     ),
18
-  );
18
+    );
19 19
 
20
-  return $items;
20
+    return $items;
21 21
 }
Please login to merge, or discard this patch.
sites/all/themes/zen/layouts/two_sidebars_second/two_sidebars_second.inc 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
  * Implements hook_panels_layouts().
4 4
  */
5 5
 function zen_two_sidebars_second_panels_layouts() {
6
-  $items['two_sidebars_second'] = array(
6
+    $items['two_sidebars_second'] = array(
7 7
     'title' => t('Zen Layout: two sidebars after content'),
8 8
     'icon' => 'two-sidebars-second.png',
9 9
     'theme' => 'zen_two_sidebars_second',
@@ -11,11 +11,11 @@  discard block
 block discarded – undo
11 11
     'css' => 'two-sidebars-second.css',
12 12
     'admin css' => 'two-sidebars-second-admin.css',    
13 13
     'panels' => array(
14
-      'content' => t('Content'),
15
-      'sidebar_first' => t('First sidebar'),
16
-      'sidebar_second' => t('Second sidebar'),
14
+        'content' => t('Content'),
15
+        'sidebar_first' => t('First sidebar'),
16
+        'sidebar_second' => t('Second sidebar'),
17 17
     ),
18
-  );
18
+    );
19 19
 
20
-  return $items;
20
+    return $items;
21 21
 }
Please login to merge, or discard this patch.
drupal/sites/all/themes/zen/layouts/one_sidebar_first/one_sidebar_first.inc 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
  * Implements hook_panels_layouts().
4 4
  */
5 5
 function zen_one_sidebar_first_panels_layouts() {
6
-  $items['one_sidebar_first'] = array(
6
+    $items['one_sidebar_first'] = array(
7 7
     'title' => t('Zen Layout: one sidebar before content'),
8 8
     'icon' => 'one-sidebar-first.png',
9 9
     'theme' => 'zen_one_sidebar_first',
@@ -11,10 +11,10 @@  discard block
 block discarded – undo
11 11
     'css' => 'one-sidebar-first.css',
12 12
     'admin css' => 'one-sidebar-first-admin.css',    
13 13
     'panels' => array(
14
-      'content' => t('Content'),
15
-      'sidebar_first' => t('First sidebar'),
14
+        'content' => t('Content'),
15
+        'sidebar_first' => t('First sidebar'),
16 16
     ),
17
-  );
17
+    );
18 18
 
19
-  return $items;
19
+    return $items;
20 20
 }
Please login to merge, or discard this patch.
sites/all/themes/zen/layouts/two_sidebars_first/two_sidebars_first.inc 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
  * Implements hook_panels_layouts().
4 4
  */
5 5
 function zen_two_sidebars_first_panels_layouts() {
6
-  $items['two_sidebars_first'] = array(
6
+    $items['two_sidebars_first'] = array(
7 7
     'title' => t('Zen Layout: two sidebars before content'),
8 8
     'icon' => 'two-sidebars-first.png',
9 9
     'theme' => 'zen_two_sidebars_first',
@@ -11,11 +11,11 @@  discard block
 block discarded – undo
11 11
     'css' => 'two-sidebars-first.css',
12 12
     'admin css' => 'two-sidebars-first-admin.css',    
13 13
     'panels' => array(
14
-      'content' => t('Content'),
15
-      'sidebar_first' => t('First sidebar'),
16
-      'sidebar_second' => t('Second sidebar'),
14
+        'content' => t('Content'),
15
+        'sidebar_first' => t('First sidebar'),
16
+        'sidebar_second' => t('Second sidebar'),
17 17
     ),
18
-  );
18
+    );
19 19
 
20
-  return $items;
20
+    return $items;
21 21
 }
Please login to merge, or discard this patch.
drupal/sites/all/themes/zen/zen-internals/template.conditional-styles.inc 4 patches
Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -21,92 +21,92 @@
 block discarded – undo
21 21
  *   An array of all the theme paths.
22 22
  */
23 23
 function conditional_styles_paths_to_basetheme($theme) {
24
-  static $theme_paths;
25
-  if (empty($theme_paths[$theme])) {
24
+    static $theme_paths;
25
+    if (empty($theme_paths[$theme])) {
26 26
     $theme_paths[$theme] = array();
27 27
     $themes = list_themes();
28 28
     // Grab the paths from the base theme.
29 29
     if (!empty($themes[$theme]->base_theme)) {
30
-      $theme_paths[$theme] = conditional_styles_paths_to_basetheme($themes[$theme]->base_theme);
30
+        $theme_paths[$theme] = conditional_styles_paths_to_basetheme($themes[$theme]->base_theme);
31 31
     }
32 32
     $theme_paths[$theme][$theme] = dirname($themes[$theme]->filename);
33
-  }
34
-  return $theme_paths[$theme];
33
+    }
34
+    return $theme_paths[$theme];
35 35
 }
36 36
 
37 37
 /**
38 38
  * When the theme registry is rebuilt, we also build the conditional stylesheets.
39 39
  */
40 40
 function _conditional_styles_theme($existing, $type, $theme, $path) {
41
-  // Process the conditional stylesheets for every active theme.
42
-  $themes = list_themes();
43
-  foreach (array_keys($themes) AS $theme) {
41
+    // Process the conditional stylesheets for every active theme.
42
+    $themes = list_themes();
43
+    foreach (array_keys($themes) AS $theme) {
44 44
     // We only need to process active themes.
45 45
     if ($themes[$theme]->status || $GLOBALS['theme'] == $theme) {
46
-      $paths = conditional_styles_paths_to_basetheme($theme);
46
+        $paths = conditional_styles_paths_to_basetheme($theme);
47 47
 
48
-      // Grab all the conditional stylesheets.
49
-      $stylesheets = array();
50
-      // Start with the base theme and travel up the chain to the active theme.
51
-      foreach ($paths AS $theme_name => $path) {
48
+        // Grab all the conditional stylesheets.
49
+        $stylesheets = array();
50
+        // Start with the base theme and travel up the chain to the active theme.
51
+        foreach ($paths AS $theme_name => $path) {
52 52
         // Look at the conditional-stylesheets defined in the theme's .info file.
53 53
         if (!empty($themes[$theme_name]->info['conditional-stylesheets'])) {
54
-          foreach ($themes[$theme_name]->info['conditional-stylesheets'] AS $condition => $css) {
54
+            foreach ($themes[$theme_name]->info['conditional-stylesheets'] AS $condition => $css) {
55 55
             // Allow the theme to override its base themes' styles.
56 56
             foreach ($css AS $media => $files) {
57
-              foreach ($files AS $file) {
57
+                foreach ($files AS $file) {
58 58
                 $stylesheets[$condition][$media][$file] = $path;
59
-              }
59
+                }
60
+            }
60 61
             }
61
-          }
62 62
         }
63
-      }
64
-      // Render the stylesheets to link elements.
65
-      $conditional_styles = $conditional_styles_rtl = '';
66
-      if (!empty($stylesheets)) {
63
+        }
64
+        // Render the stylesheets to link elements.
65
+        $conditional_styles = $conditional_styles_rtl = '';
66
+        if (!empty($stylesheets)) {
67 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
-          // Each condition requires its own set of links.
71
-          $output = $output_rtl = '';
72
-          foreach ($css AS $media => $files) {
70
+            // Each condition requires its own set of links.
71
+            $output = $output_rtl = '';
72
+            foreach ($css AS $media => $files) {
73 73
             foreach ($files AS $file => $path) {
74
-              // Don't allow non-existent stylesheets to clutter the logs with 404.
75
-              if (file_exists("./$path/$file")) {
74
+                // Don't allow non-existent stylesheets to clutter the logs with 404.
75
+                if (file_exists("./$path/$file")) {
76 76
                 $link = "<link type=\"text/css\" rel=\"stylesheet\" media=\"$media\" href=\"$base_path$path/$file$query_string\" />\n";
77 77
                 $output .= $link;
78 78
                 $output_rtl .= $link;
79 79
                 $file_rtl = str_replace('.css', '-rtl.css', $file);
80 80
                 if (file_exists("./$path/$file_rtl")) {
81
-                  $output_rtl .= "<link type=\"text/css\" rel=\"stylesheet\" media=\"$media\" href=\"$base_path$path/$file_rtl$query_string\" />\n";
81
+                    $output_rtl .= "<link type=\"text/css\" rel=\"stylesheet\" media=\"$media\" href=\"$base_path$path/$file_rtl$query_string\" />\n";
82
+                }
82 83
                 }
83
-              }
84 84
             }
85
-          }
86
-          if ($output) {
85
+            }
86
+            if ($output) {
87 87
             $conditional_styles .= "<!--[$condition]>\n$output<![endif]-->\n";
88 88
             $conditional_styles_rtl .= "<!--[$condition]>\n$output_rtl<![endif]-->\n";
89
-          }
89
+            }
90
+        }
90 91
         }
91
-      }
92
-      // Save the stylesheets for later retrieval.
93
-      if ($conditional_styles) {
92
+        // Save the stylesheets for later retrieval.
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
-      }
103
-      elseif (db_is_active()) {
102
+        }
103
+        elseif (db_is_active()) {
104 104
         variable_del('conditional_styles_' . $theme);
105 105
         variable_del('conditional_styles_' . $theme . '_rtl');
106
-      }
106
+        }
107
+    }
107 108
     }
108
-  }
109 109
 
110
-  // Return nothing.
111
-  return array();
110
+    // Return nothing.
111
+    return array();
112 112
 }
Please login to merge, or discard this 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.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -94,13 +94,11 @@
 block discarded – undo
94 94
         if (db_is_active()) {
95 95
           variable_set('conditional_styles_' . $theme, $conditional_styles);
96 96
           variable_set('conditional_styles_' . $theme . '_rtl', $conditional_styles_rtl);
97
-        }
98
-        else {
97
+        } else {
99 98
           $GLOBALS['conf']['conditional_styles_' . $theme] = $conditional_styles;
100 99
           $GLOBALS['conf']['conditional_styles_' . $theme . '_rtl'] = $conditional_styles_rtl;
101 100
         }
102
-      }
103
-      elseif (db_is_active()) {
101
+      } elseif (db_is_active()) {
104 102
         variable_del('conditional_styles_' . $theme);
105 103
         variable_del('conditional_styles_' . $theme . '_rtl');
106 104
       }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 function _conditional_styles_theme($existing, $type, $theme, $path) {
41 41
   // Process the conditional stylesheets for every active theme.
42 42
   $themes = list_themes();
43
-  foreach (array_keys($themes) AS $theme) {
43
+  foreach (array_keys($themes) as $theme) {
44 44
     // We only need to process active themes.
45 45
     if ($themes[$theme]->status || $GLOBALS['theme'] == $theme) {
46 46
       $paths = conditional_styles_paths_to_basetheme($theme);
@@ -48,13 +48,13 @@  discard block
 block discarded – undo
48 48
       // Grab all the conditional stylesheets.
49 49
       $stylesheets = array();
50 50
       // Start with the base theme and travel up the chain to the active theme.
51
-      foreach ($paths AS $theme_name => $path) {
51
+      foreach ($paths as $theme_name => $path) {
52 52
         // Look at the conditional-stylesheets defined in the theme's .info file.
53 53
         if (!empty($themes[$theme_name]->info['conditional-stylesheets'])) {
54
-          foreach ($themes[$theme_name]->info['conditional-stylesheets'] AS $condition => $css) {
54
+          foreach ($themes[$theme_name]->info['conditional-stylesheets'] as $condition => $css) {
55 55
             // Allow the theme to override its base themes' styles.
56
-            foreach ($css AS $media => $files) {
57
-              foreach ($files AS $file) {
56
+            foreach ($css as $media => $files) {
57
+              foreach ($files as $file) {
58 58
                 $stylesheets[$condition][$media][$file] = $path;
59 59
               }
60 60
             }
@@ -66,11 +66,11 @@  discard block
 block discarded – undo
66 66
       if (!empty($stylesheets)) {
67 67
         $query_string = '?'. substr(variable_get('css_js_query_string', '0'), 0, 1);
68 68
         $base_path = base_path();
69
-        foreach ($stylesheets AS $condition => $css) {
69
+        foreach ($stylesheets as $condition => $css) {
70 70
           // Each condition requires its own set of links.
71 71
           $output = $output_rtl = '';
72
-          foreach ($css AS $media => $files) {
73
-            foreach ($files AS $file => $path) {
72
+          foreach ($css as $media => $files) {
73
+            foreach ($files as $file => $path) {
74 74
               // Don't allow non-existent stylesheets to clutter the logs with 404.
75 75
               if (file_exists("./$path/$file")) {
76 76
                 $link = "<link type=\"text/css\" rel=\"stylesheet\" media=\"$media\" href=\"$base_path$path/$file$query_string\" />\n";
Please login to merge, or discard this patch.
drupal/sites/all/themes/zen/zen-internals/template.block-editing.inc 3 patches
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -13,76 +13,76 @@
 block discarded – undo
13 13
  *   The name of the template being rendered ("block" in this case.)
14 14
  */
15 15
 function zen_preprocess_block_editing(&$vars, $hook) {
16
-  $block = $vars['block'];
16
+    $block = $vars['block'];
17 17
 
18
-  // Display 'edit block' for custom blocks.
19
-  if ($block->module == 'block') {
18
+    // Display 'edit block' for custom blocks.
19
+    if ($block->module == 'block') {
20 20
     $vars['edit_links_array']['block-edit'] = l('<span>' . t('edit block') . '</span>', 'admin/build/block/configure/' . $block->module . '/' . $block->delta,
21
-      array(
21
+        array(
22 22
         'attributes' => array(
23
-          'title' => t('edit the content of this block'),
24
-          'class' => 'block-edit',
23
+            'title' => t('edit the content of this block'),
24
+            'class' => 'block-edit',
25 25
         ),
26 26
         'query' => drupal_get_destination(),
27 27
         'html' => TRUE,
28
-      )
28
+        )
29 29
     );
30
-  }
31
-  // Display 'configure' for other blocks.
32
-  else {
30
+    }
31
+    // Display 'configure' for other blocks.
32
+    else {
33 33
     $vars['edit_links_array']['block-config'] = l('<span>' . t('configure') . '</span>', 'admin/build/block/configure/' . $block->module . '/' . $block->delta,
34
-      array(
34
+        array(
35 35
         'attributes' => array(
36
-          'title' => t('configure this block'),
37
-          'class' => 'block-config',
36
+            'title' => t('configure this block'),
37
+            'class' => 'block-config',
38 38
         ),
39 39
         'query' => drupal_get_destination(),
40 40
         'html' => TRUE,
41
-      )
41
+        )
42 42
     );
43
-  }
43
+    }
44 44
 
45
-  // Display 'edit view' for Views blocks.
46
-  if ($block->module == 'views' && user_access('administer views')) {
45
+    // Display 'edit view' for Views blocks.
46
+    if ($block->module == 'views' && user_access('administer views')) {
47 47
     list($view_name, $view_block) = explode('-block', $block->delta);
48 48
     $vars['edit_links_array']['block-edit-view'] = l('<span>' . t('edit view') . '</span>', 'admin/build/views/edit/' . $view_name,
49
-      array(
49
+        array(
50 50
         'attributes' => array(
51
-          'title' => t('edit the view that defines this block'),
52
-          'class' => 'block-edit-view',
51
+            'title' => t('edit the view that defines this block'),
52
+            'class' => 'block-edit-view',
53 53
         ),
54 54
         'query' => drupal_get_destination(),
55 55
         'fragment' => 'views-tab-block' . $view_block,
56 56
         'html' => TRUE,
57
-      )
57
+        )
58 58
     );
59
-  }
60
-  // Display 'edit menu' for Menu blocks.
61
-  elseif (($block->module == 'menu' || ($block->module == 'user' && $block->delta == 1)) && user_access('administer menu')) {
59
+    }
60
+    // Display 'edit menu' for Menu blocks.
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 63
     $vars['edit_links_array']['block-edit-menu'] = l('<span>' . t('edit menu') . '</span>', 'admin/build/menu-customize/' . $menu_name,
64
-      array(
64
+        array(
65 65
         'attributes' => array(
66
-          'title' => t('edit the menu that defines this block'),
67
-          'class' => 'block-edit-menu',
66
+            'title' => t('edit the menu that defines this block'),
67
+            'class' => 'block-edit-menu',
68 68
         ),
69 69
         'query' => drupal_get_destination(),
70 70
         'html' => TRUE,
71
-      )
71
+        )
72 72
     );
73
-  }
74
-  // Display 'edit menu' for Menu block blocks.
75
-  elseif ($block->module == 'menu_block' && user_access('administer menu')) {
73
+    }
74
+    // Display 'edit menu' for Menu block blocks.
75
+    elseif ($block->module == 'menu_block' && user_access('administer menu')) {
76 76
     list($menu_name, ) = split(':', variable_get("menu_block_{$block->delta}_parent", 'navigation:0'));
77 77
     $vars['edit_links_array']['block-edit-menu'] = l('<span>' . t('edit menu') . '</span>', 'admin/build/menu-customize/' . $menu_name,
78
-      array(
78
+        array(
79 79
         'attributes' => array(
80
-          'title' => t('edit the menu that defines this block'),
81
-          'class' => 'block-edit-menu',
80
+            'title' => t('edit the menu that defines this block'),
81
+            'class' => 'block-edit-menu',
82 82
         ),
83 83
         'query' => drupal_get_destination(),
84 84
         'html' => TRUE,
85
-      )
85
+        )
86 86
     );
87
-  }
87
+    }
88 88
 }
Please login to merge, or discard this 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.
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
           'class' => 'block-edit',
25 25
         ),
26 26
         'query' => drupal_get_destination(),
27
-        'html' => TRUE,
27
+        'html' => true,
28 28
       )
29 29
     );
30 30
   }
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
           'class' => 'block-config',
38 38
         ),
39 39
         'query' => drupal_get_destination(),
40
-        'html' => TRUE,
40
+        'html' => true,
41 41
       )
42 42
     );
43 43
   }
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         ),
54 54
         'query' => drupal_get_destination(),
55 55
         'fragment' => 'views-tab-block' . $view_block,
56
-        'html' => TRUE,
56
+        'html' => true,
57 57
       )
58 58
     );
59 59
   }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
           'class' => 'block-edit-menu',
68 68
         ),
69 69
         'query' => drupal_get_destination(),
70
-        'html' => TRUE,
70
+        'html' => true,
71 71
       )
72 72
     );
73 73
   }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
           'class' => 'block-edit-menu',
82 82
         ),
83 83
         'query' => drupal_get_destination(),
84
-        'html' => TRUE,
84
+        'html' => true,
85 85
       )
86 86
     );
87 87
   }
Please login to merge, or discard this patch.