Completed
Pull Request — master (#1795)
by Christian
09:16
created
drupal/sites/all/features/boinc_standard/boinc_standard.input_formats.inc 2 patches
Indentation   +141 added lines, -141 removed lines patch added patch discarded remove patch
@@ -4,117 +4,117 @@  discard block
 block discarded – undo
4 4
  * Implementation of hook_input_formats().
5 5
  */
6 6
 function boinc_standard_input_formats() {
7
-  $input_formats = array();
7
+    $input_formats = array();
8 8
 
9
-  $input_format = new stdClass;
10
-  $input_format->api_version = 1;
11
-  $input_format->name = 'Rich text';
12
-  $input_format->roles = array(
9
+    $input_format = new stdClass;
10
+    $input_format->api_version = 1;
11
+    $input_format->name = 'Rich text';
12
+    $input_format->roles = array(
13 13
     1 => 'anonymous user',
14 14
     2 => 'authenticated user',
15
-  );
16
-  $input_format->cache = FALSE;
17
-  $input_format->settings = array(
15
+    );
16
+    $input_format->cache = FALSE;
17
+    $input_format->settings = array(
18 18
     // Settings for: tableofcontents module
19 19
     'tableofcontents' => array(
20
-      // Hide the table of contents tags
21
-      'tableofcontents_hide_table' => 0,
22
-      // Whether an automatic table of content should be added
23
-      'tableofcontents_automatic' => '0',
24
-      // Number of headers before an automatic table of content is added
25
-      'tableofcontents_min_limit' => '5',
26
-      // Remove Table of Contents tags from teasers
27
-      'tableofcontents_remove_teaser' => 1,
28
-      // Allow users to override the settings within the table of contents tag itself
29
-      'tableofcontents_allow_override' => 1,
30
-      // Ensure title is safe (i.e. use check_plain() to avoid XSS attacks.)
31
-      'tableofcontents_safe_title' => 1,
32
-      // Table of Contents Title
33
-      'tableofcontents_title' => 'Table of Contents',
34
-      // Minimum heading level
35
-      'tableofcontents_minlevel' => '2',
36
-      // Maximum heading level
37
-      'tableofcontents_maxlevel' => '3',
38
-      // Include link to hide/show table of contents
39
-      'tableofcontents_hide_show' => 1,
40
-      // Start with the table of content collapsed
41
-      'tableofcontents_collapsed' => 0,
42
-      // Select what is stripped from the header titles
43
-      'tableofcontents_id_stripping' => array(
44
-          'digits' => 0,
45
-          'dashes' => 0,
46
-          'periods' => 0,
47
-          'underscores' => 0,
48
-          'colons' => 0,
20
+        // Hide the table of contents tags
21
+        'tableofcontents_hide_table' => 0,
22
+        // Whether an automatic table of content should be added
23
+        'tableofcontents_automatic' => '0',
24
+        // Number of headers before an automatic table of content is added
25
+        'tableofcontents_min_limit' => '5',
26
+        // Remove Table of Contents tags from teasers
27
+        'tableofcontents_remove_teaser' => 1,
28
+        // Allow users to override the settings within the table of contents tag itself
29
+        'tableofcontents_allow_override' => 1,
30
+        // Ensure title is safe (i.e. use check_plain() to avoid XSS attacks.)
31
+        'tableofcontents_safe_title' => 1,
32
+        // Table of Contents Title
33
+        'tableofcontents_title' => 'Table of Contents',
34
+        // Minimum heading level
35
+        'tableofcontents_minlevel' => '2',
36
+        // Maximum heading level
37
+        'tableofcontents_maxlevel' => '3',
38
+        // Include link to hide/show table of contents
39
+        'tableofcontents_hide_show' => 1,
40
+        // Start with the table of content collapsed
41
+        'tableofcontents_collapsed' => 0,
42
+        // Select what is stripped from the header titles
43
+        'tableofcontents_id_stripping' => array(
44
+            'digits' => 0,
45
+            'dashes' => 0,
46
+            'periods' => 0,
47
+            'underscores' => 0,
48
+            'colons' => 0,
49 49
         ),
50
-      // Identifier introducer
51
-      'tableofcontents_identifier_introducer' => 'header',
52
-      // Identifier and number separator
53
-      'tableofcontents_id_separator' => '-',
54
-      // How to generate missing header identifiers
55
-      'tableofcontents_id_generator' => 'title',
56
-      // List of tags allowed in table headers
57
-      'tableofcontents_allowed_tags' => '<em> <i> <strong> <b> <u> <del> <ins> <sub> <sup> <cite> <strike> <s> <tt> <span> <font> <abbr> <acronym> <dfn> <q> <bdo> <big> <small>',
58
-      // Add the comments to the table of contents
59
-      'tableofcontents_comments' => 0,
60
-      // Select header level at which comments start
61
-      'tableofcontents_comments_level' => '3',
62
-      // Back to top label
63
-      'tableofcontents_back_to_top' => '',
64
-      // Back to top location
65
-      'tableofcontents_back_to_top_location' => 'bottom',
66
-      // Minimum level where Back to Top appears
67
-      'tableofcontents_back_to_top_minlevel' => '2',
68
-      // Maximum level where Back to Top appears
69
-      'tableofcontents_back_to_top_maxlevel' => '4',
70
-      // Back to top anchor
71
-      'tableofcontents_back_to_top_anchor' => 'toc',
72
-      // Scroll back to the table of contents
73
-      'tableofcontents_scroll_back_to_top' => 0,
74
-      // Numbering method
75
-      'tableofcontents_numbering' => '0',
76
-      // Add the number to the headers
77
-      'tableofcontents_number_headers' => 0,
78
-      // Numbering mode
79
-      'tableofcontents_number_mode' => '0',
80
-      // Numbering prefix
81
-      'tableofcontents_number_start_letter' => '',
82
-      // Numbering separator
83
-      'tableofcontents_number_separator' => '.',
84
-      // Numbering suffix
85
-      'tableofcontents_number_end_letter' => '.',
50
+        // Identifier introducer
51
+        'tableofcontents_identifier_introducer' => 'header',
52
+        // Identifier and number separator
53
+        'tableofcontents_id_separator' => '-',
54
+        // How to generate missing header identifiers
55
+        'tableofcontents_id_generator' => 'title',
56
+        // List of tags allowed in table headers
57
+        'tableofcontents_allowed_tags' => '<em> <i> <strong> <b> <u> <del> <ins> <sub> <sup> <cite> <strike> <s> <tt> <span> <font> <abbr> <acronym> <dfn> <q> <bdo> <big> <small>',
58
+        // Add the comments to the table of contents
59
+        'tableofcontents_comments' => 0,
60
+        // Select header level at which comments start
61
+        'tableofcontents_comments_level' => '3',
62
+        // Back to top label
63
+        'tableofcontents_back_to_top' => '',
64
+        // Back to top location
65
+        'tableofcontents_back_to_top_location' => 'bottom',
66
+        // Minimum level where Back to Top appears
67
+        'tableofcontents_back_to_top_minlevel' => '2',
68
+        // Maximum level where Back to Top appears
69
+        'tableofcontents_back_to_top_maxlevel' => '4',
70
+        // Back to top anchor
71
+        'tableofcontents_back_to_top_anchor' => 'toc',
72
+        // Scroll back to the table of contents
73
+        'tableofcontents_scroll_back_to_top' => 0,
74
+        // Numbering method
75
+        'tableofcontents_numbering' => '0',
76
+        // Add the number to the headers
77
+        'tableofcontents_number_headers' => 0,
78
+        // Numbering mode
79
+        'tableofcontents_number_mode' => '0',
80
+        // Numbering prefix
81
+        'tableofcontents_number_start_letter' => '',
82
+        // Numbering separator
83
+        'tableofcontents_number_separator' => '.',
84
+        // Numbering suffix
85
+        'tableofcontents_number_end_letter' => '.',
86 86
     ),
87 87
     // Settings for: pathologic module
88 88
     'pathologic' => array(
89
-      // Also considered local
90
-      'filter_pathologic_local_paths' => '/',
91
-      // Output full absolute URLs
92
-      'filter_pathologic_absolute' => 1,
89
+        // Also considered local
90
+        'filter_pathologic_local_paths' => '/',
91
+        // Output full absolute URLs
92
+        'filter_pathologic_absolute' => 1,
93 93
     ),
94 94
     // Settings for: bbcode module
95 95
     'bbcode' => array(
96
-      // Convert addresses to links
97
-      'bbcode_make_links' => '1',
98
-      // Spam link deterrent
99
-      'bbcode_filter_nofollow' => '0',
100
-      // Email address encoding
101
-      'bbcode_encode_mailto' => '1',
102
-      // Smart paragraph and line breaks
103
-      'bbcode_paragraph_breaks' => '2',
104
-      // Print debugging info
105
-      'bbcode_debug' => '0',
96
+        // Convert addresses to links
97
+        'bbcode_make_links' => '1',
98
+        // Spam link deterrent
99
+        'bbcode_filter_nofollow' => '0',
100
+        // Email address encoding
101
+        'bbcode_encode_mailto' => '1',
102
+        // Smart paragraph and line breaks
103
+        'bbcode_paragraph_breaks' => '2',
104
+        // Print debugging info
105
+        'bbcode_debug' => '0',
106 106
     ),
107 107
     // Settings for: htmlpurifier module
108 108
     'htmlpurifier' => array(
109
-      'htmlpurifier_clear_cac' => array(
110
-          '#description' => NULL,
111
-          '#value' => 'Clear cache (Warning: Can result in performance degradation)',
109
+        'htmlpurifier_clear_cac' => array(
110
+            '#description' => NULL,
111
+            '#value' => 'Clear cache (Warning: Can result in performance degradation)',
112 112
         ),
113
-      // Display help text
114
-      'htmlpurifier_help' => 1,
115
-      'htmlpurifier_config' => array(
116
-          '#description' => NULL,
117
-          '#value' => array(
113
+        // Display help text
114
+        'htmlpurifier_help' => 1,
115
+        'htmlpurifier_config' => array(
116
+            '#description' => NULL,
117
+            '#value' => array(
118 118
             'Attr.EnableID' => '0',
119 119
             'AutoFormat.AutoParagraph' => '1',
120 120
             'AutoFormat.Linkify' => '1',
@@ -127,74 +127,74 @@  discard block
 block discarded – undo
127 127
             'URI.DisableExternalResources' => '0',
128 128
             'URI.DisableResources' => '0',
129 129
             'Null_URI.Munge' => '1',
130
-          ),
130
+            ),
131 131
         ),
132 132
     ),
133
-  );
134
-  $input_format->filters = array(
133
+    );
134
+    $input_format->filters = array(
135 135
     'tableofcontents' => array(
136
-      // Delta => Weight for: Table of contents
137
-      '0' => '-10',
136
+        // Delta => Weight for: Table of contents
137
+        '0' => '-10',
138 138
     ),
139 139
     'pathologic' => array(
140
-      // Delta => Weight for: Pathologic
141
-      '0' => '-9',
140
+        // Delta => Weight for: Pathologic
141
+        '0' => '-9',
142 142
     ),
143 143
     'bbcode' => array(
144
-      // Delta => Weight for: BBCode
145
-      '0' => '-8',
144
+        // Delta => Weight for: BBCode
145
+        '0' => '-8',
146 146
     ),
147 147
     'htmlpurifier' => array(
148
-      // Delta => Weight for: HTML Purifier
149
-      '0' => '-7',
148
+        // Delta => Weight for: HTML Purifier
149
+        '0' => '-7',
150 150
     ),
151 151
     'image_caption_filter' => array(
152
-      // Delta => Weight for: Image caption filter
153
-      '0' => '-6',
152
+        // Delta => Weight for: Image caption filter
153
+        '0' => '-6',
154 154
     ),
155
-  );
156
-  $input_format->machine = 'rich_text';
157
-  $input_formats['rich_text'] = $input_format;
155
+    );
156
+    $input_format->machine = 'rich_text';
157
+    $input_formats['rich_text'] = $input_format;
158 158
 
159
-  $input_format = new stdClass;
160
-  $input_format->api_version = 1;
161
-  $input_format->name = 'PHP code';
162
-  $input_format->roles = array();
163
-  $input_format->cache = FALSE;
164
-  $input_format->settings = array(
165
-  );
166
-  $input_format->filters = array(
159
+    $input_format = new stdClass;
160
+    $input_format->api_version = 1;
161
+    $input_format->name = 'PHP code';
162
+    $input_format->roles = array();
163
+    $input_format->cache = FALSE;
164
+    $input_format->settings = array(
165
+    );
166
+    $input_format->filters = array(
167 167
     'php' => array(
168
-      '0' => '0',
168
+        '0' => '0',
169 169
     ),
170
-  );
171
-  $input_format->machine = 'php_code';
172
-  $input_formats['php_code'] = $input_format;
170
+    );
171
+    $input_format->machine = 'php_code';
172
+    $input_formats['php_code'] = $input_format;
173 173
 
174
-  $input_format = new stdClass;
175
-  $input_format->api_version = 1;
176
-  $input_format->name = 'Plain text';
177
-  $input_format->roles = array(
174
+    $input_format = new stdClass;
175
+    $input_format->api_version = 1;
176
+    $input_format->name = 'Plain text';
177
+    $input_format->roles = array(
178 178
     3519698132 => 'administrator',
179
-  );
180
-  $input_format->cache = TRUE;
181
-  $input_format->settings = array(
179
+    );
180
+    $input_format->cache = TRUE;
181
+    $input_format->settings = array(
182 182
     // Settings for: filter module
183 183
     'filter' => array(
184
-      'filter_html' => '2',
185
-      'allowed_html' => '<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>',
186
-      'filter_html_help' => 0,
187
-      'filter_html_nofollow' => 0,
184
+        'filter_html' => '2',
185
+        'allowed_html' => '<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>',
186
+        'filter_html_help' => 0,
187
+        'filter_html_nofollow' => 0,
188 188
     ),
189
-  );
190
-  $input_format->filters = array(
189
+    );
190
+    $input_format->filters = array(
191 191
     'filter' => array(
192
-      '0' => '10',
192
+        '0' => '10',
193 193
     ),
194
-  );
195
-  $input_format->machine = 'plain_text';
196
-  $input_formats['plain_text'] = $input_format;
194
+    );
195
+    $input_format->machine = 'plain_text';
196
+    $input_formats['plain_text'] = $input_format;
197 197
 
198
-  return $input_formats;
198
+    return $input_formats;
199 199
 
200 200
 }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     1 => 'anonymous user',
14 14
     2 => 'authenticated user',
15 15
   );
16
-  $input_format->cache = FALSE;
16
+  $input_format->cache = false;
17 17
   $input_format->settings = array(
18 18
     // Settings for: tableofcontents module
19 19
     'tableofcontents' => array(
@@ -107,13 +107,13 @@  discard block
 block discarded – undo
107 107
     // Settings for: htmlpurifier module
108 108
     'htmlpurifier' => array(
109 109
       'htmlpurifier_clear_cac' => array(
110
-          '#description' => NULL,
110
+          '#description' => null,
111 111
           '#value' => 'Clear cache (Warning: Can result in performance degradation)',
112 112
         ),
113 113
       // Display help text
114 114
       'htmlpurifier_help' => 1,
115 115
       'htmlpurifier_config' => array(
116
-          '#description' => NULL,
116
+          '#description' => null,
117 117
           '#value' => array(
118 118
             'Attr.EnableID' => '0',
119 119
             'AutoFormat.AutoParagraph' => '1',
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
   $input_format->api_version = 1;
161 161
   $input_format->name = 'PHP code';
162 162
   $input_format->roles = array();
163
-  $input_format->cache = FALSE;
163
+  $input_format->cache = false;
164 164
   $input_format->settings = array(
165 165
   );
166 166
   $input_format->filters = array(
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
   $input_format->roles = array(
178 178
     3519698132 => 'administrator',
179 179
   );
180
-  $input_format->cache = TRUE;
180
+  $input_format->cache = true;
181 181
   $input_format->settings = array(
182 182
     // Settings for: filter module
183 183
     'filter' => array(
Please login to merge, or discard this patch.
all/features/boinc_standard/boinc_standard.features.fe_block_settings.inc 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -4,12 +4,12 @@  discard block
 block discarded – undo
4 4
  * Implementation of hook_default_fe_block_settings().
5 5
  */
6 6
 function boinc_standard_default_fe_block_settings() {
7
-  $export = array();
7
+    $export = array();
8 8
 
9
-  // boinc
10
-  $theme = array();
9
+    // boinc
10
+    $theme = array();
11 11
 
12
-  $theme['menu_block-1'] = array(
12
+    $theme['menu_block-1'] = array(
13 13
     'module' => 'menu_block',
14 14
     'delta' => '1',
15 15
     'theme' => 'boinc',
@@ -22,14 +22,14 @@  discard block
 block discarded – undo
22 22
     'pages' => '',
23 23
     'title' => '<none>',
24 24
     'cache' => '-1',
25
-  );
25
+    );
26 26
 
27
-  $export['boinc'] = $theme;
27
+    $export['boinc'] = $theme;
28 28
 
29
-  // einstein
30
-  $theme = array();
29
+    // einstein
30
+    $theme = array();
31 31
 
32
-  $theme['menu_block-1'] = array(
32
+    $theme['menu_block-1'] = array(
33 33
     'module' => 'menu_block',
34 34
     'delta' => '1',
35 35
     'theme' => 'einstein',
@@ -42,14 +42,14 @@  discard block
 block discarded – undo
42 42
     'pages' => '',
43 43
     'title' => '<none>',
44 44
     'cache' => '-1',
45
-  );
45
+    );
46 46
 
47
-  $export['einstein'] = $theme;
47
+    $export['einstein'] = $theme;
48 48
 
49
-  // garland
50
-  $theme = array();
49
+    // garland
50
+    $theme = array();
51 51
 
52
-  $theme['menu_block-1'] = array(
52
+    $theme['menu_block-1'] = array(
53 53
     'module' => 'menu_block',
54 54
     'delta' => '1',
55 55
     'theme' => 'garland',
@@ -62,16 +62,16 @@  discard block
 block discarded – undo
62 62
     'pages' => '',
63 63
     'title' => '<none>',
64 64
     'cache' => '-1',
65
-  );
65
+    );
66 66
 
67
-  $export['garland'] = $theme;
67
+    $export['garland'] = $theme;
68 68
 
69
-  $theme_default = variable_get('theme_default', 'garland');
70
-  $themes = list_themes();
71
-  foreach ($export as $theme_key => $settings) {
69
+    $theme_default = variable_get('theme_default', 'garland');
70
+    $themes = list_themes();
71
+    foreach ($export as $theme_key => $settings) {
72 72
     if ($theme_key != $theme_default && empty($themes[$theme_key]->status)) {
73
-      unset($export[$theme_key]);
73
+        unset($export[$theme_key]);
74 74
     }
75
-  }
76
-  return $export;
75
+    }
76
+    return $export;
77 77
 }
Please login to merge, or discard this patch.
drupal/sites/all/features/boinc_standard/boinc_standard.module 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -6,16 +6,16 @@
 block discarded – undo
6 6
  * Make some changes to configurations after the feature has been enabled
7 7
  */
8 8
 function boinc_standard_enable() {
9
-  // Ensure that the default theme is enabled. A bit ridiculous, but it is
10
-  // possible for this not to be the case.
11
-  $default_theme = variable_get('theme_default', 'boinc');
12
-  // If default theme is garland, this is because the boinc_standard feature
13
-  // has not been reverted yet. Work around this by forcing it to default to
14
-  // the boinc theme
15
-  if ($default_theme == 'garland') {
9
+    // Ensure that the default theme is enabled. A bit ridiculous, but it is
10
+    // possible for this not to be the case.
11
+    $default_theme = variable_get('theme_default', 'boinc');
12
+    // If default theme is garland, this is because the boinc_standard feature
13
+    // has not been reverted yet. Work around this by forcing it to default to
14
+    // the boinc theme
15
+    if ($default_theme == 'garland') {
16 16
     $default_theme = 'boinc';
17 17
     variable_set('theme_default', $default_theme);
18
-  }
19
-  $default_theme_enabled = db_query("UPDATE {system} SET status = 1
18
+    }
19
+    $default_theme_enabled = db_query("UPDATE {system} SET status = 1
20 20
     WHERE type = 'theme' and name = '%s'", $default_theme);
21 21
 }
Please login to merge, or discard this patch.
sites/all/features/boinc_standard/boinc_standard.features.menu_custom.inc 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -4,19 +4,19 @@
 block discarded – undo
4 4
  * Implementation of hook_menu_default_menu_custom().
5 5
  */
6 6
 function boinc_standard_menu_default_menu_custom() {
7
-  $menus = array();
7
+    $menus = array();
8 8
 
9
-  // Exported menu: menu-footer-links
10
-  $menus['menu-footer-links'] = array(
9
+    // Exported menu: menu-footer-links
10
+    $menus['menu-footer-links'] = array(
11 11
     'menu_name' => 'menu-footer-links',
12 12
     'title' => 'Footer links',
13 13
     'description' => 'Auxiliary menu, typically at the bottom of the page in the footer, that includes links to content such as "about us" or "privacy policy" etc.',
14
-  );
15
-  // Translatables
16
-  // Included for use with string extractors like potx.
17
-  t('Auxiliary menu, typically at the bottom of the page in the footer, that includes links to content such as "about us" or "privacy policy" etc.');
18
-  t('Footer links');
14
+    );
15
+    // Translatables
16
+    // Included for use with string extractors like potx.
17
+    t('Auxiliary menu, typically at the bottom of the page in the footer, that includes links to content such as "about us" or "privacy policy" etc.');
18
+    t('Footer links');
19 19
 
20 20
 
21
-  return $menus;
21
+    return $menus;
22 22
 }
Please login to merge, or discard this patch.
all/features/boinc_server_migration/boinc_server_migration.strongarm.inc 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -4,14 +4,14 @@
 block discarded – undo
4 4
  * Implementation of hook_strongarm().
5 5
  */
6 6
 function boinc_server_migration_strongarm() {
7
-  $export = array();
7
+    $export = array();
8 8
 
9
-  $strongarm = new stdClass;
10
-  $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
11
-  $strongarm->api_version = 1;
12
-  $strongarm->name = 'boincimport_input_format';
13
-  $strongarm->value = '4';
14
-  $export['boincimport_input_format'] = $strongarm;
9
+    $strongarm = new stdClass;
10
+    $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
11
+    $strongarm->api_version = 1;
12
+    $strongarm->name = 'boincimport_input_format';
13
+    $strongarm->value = '4';
14
+    $export['boincimport_input_format'] = $strongarm;
15 15
 
16
-  return $export;
16
+    return $export;
17 17
 }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
   $export = array();
8 8
 
9 9
   $strongarm = new stdClass;
10
-  $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
10
+  $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */
11 11
   $strongarm->api_version = 1;
12 12
   $strongarm->name = 'boincimport_input_format';
13 13
   $strongarm->value = '4';
Please login to merge, or discard this patch.
all/features/boinc_server_migration/boinc_server_migration.features.inc 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
  * Implementation of hook_ctools_plugin_api().
5 5
  */
6 6
 function boinc_server_migration_ctools_plugin_api() {
7
-  list($module, $api) = func_get_args();
8
-  if ($module == "strongarm" && $api == "strongarm") {
7
+    list($module, $api) = func_get_args();
8
+    if ($module == "strongarm" && $api == "strongarm") {
9 9
     return array("version" => 1);
10
-  }
10
+    }
11 11
 }
Please login to merge, or discard this patch.
drupal/sites/all/features/global_search/global_search.strongarm.inc 2 patches
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -4,55 +4,55 @@
 block discarded – undo
4 4
  * Implementation of hook_strongarm().
5 5
  */
6 6
 function global_search_strongarm() {
7
-  $export = array();
7
+    $export = array();
8 8
 
9
-  $strongarm = new stdClass;
10
-  $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
11
-  $strongarm->api_version = 1;
12
-  $strongarm->name = 'search404_page_title';
13
-  $strongarm->value = 'Page not found';
14
-  $export['search404_page_title'] = $strongarm;
9
+    $strongarm = new stdClass;
10
+    $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
11
+    $strongarm->api_version = 1;
12
+    $strongarm->name = 'search404_page_title';
13
+    $strongarm->value = 'Page not found';
14
+    $export['search404_page_title'] = $strongarm;
15 15
 
16
-  $strongarm = new stdClass;
17
-  $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
18
-  $strongarm->api_version = 1;
19
-  $strongarm->name = 'search_by_page_settings';
20
-  $strongarm->value = array(
16
+    $strongarm = new stdClass;
17
+    $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
18
+    $strongarm->api_version = 1;
19
+    $strongarm->name = 'search_by_page_settings';
20
+    $strongarm->value = array(
21 21
     1 => array(
22
-      'environment_name' => 'general',
23
-      'page_title' => '',
24
-      'block_title' => 'Search',
25
-      'field_label' => 'Search',
26
-      'button_label' => 'Search',
27
-      'page_path' => 'find',
28
-      'exclude_tags' => '',
29
-      'sbp_nodes_types_indexed' => array(
22
+        'environment_name' => 'general',
23
+        'page_title' => '',
24
+        'block_title' => 'Search',
25
+        'field_label' => 'Search',
26
+        'button_label' => 'Search',
27
+        'page_path' => 'find',
28
+        'exclude_tags' => '',
29
+        'sbp_nodes_types_indexed' => array(
30 30
         'forum' => 'forum',
31 31
         'page' => 'page',
32 32
         'panel' => 'panel',
33 33
         'profile' => 'profile',
34 34
         'story' => 'story',
35
-      ),
36
-      'sbp_nodes_display_type' => 'excerpts',
37
-      'sbp_nodes_role' => '1',
38
-      'sbp_nodes_min_time' => '1',
39
-      'sbp_nodes_max_time' => '0',
40
-      'sbp_paths_min_time' => '1',
41
-      'sbp_paths_max_time' => '0',
42
-      'sbp_users_roles_indexed' => array(
35
+        ),
36
+        'sbp_nodes_display_type' => 'excerpts',
37
+        'sbp_nodes_role' => '1',
38
+        'sbp_nodes_min_time' => '1',
39
+        'sbp_nodes_max_time' => '0',
40
+        'sbp_paths_min_time' => '1',
41
+        'sbp_paths_max_time' => '0',
42
+        'sbp_users_roles_indexed' => array(
43 43
         2 => 2,
44 44
         4 => 0,
45 45
         5 => 0,
46 46
         3 => 0,
47 47
         6 => 0,
48
-      ),
49
-      'sbp_users_role' => '1',
50
-      'sbp_users_min_time' => '1',
51
-      'sbp_users_max_time' => '0',
52
-      'op' => 'Save configuration',
48
+        ),
49
+        'sbp_users_role' => '1',
50
+        'sbp_users_min_time' => '1',
51
+        'sbp_users_max_time' => '0',
52
+        'op' => 'Save configuration',
53 53
     ),
54
-  );
55
-  $export['search_by_page_settings'] = $strongarm;
54
+    );
55
+    $export['search_by_page_settings'] = $strongarm;
56 56
 
57
-  return $export;
57
+    return $export;
58 58
 }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,14 +7,14 @@
 block discarded – undo
7 7
   $export = array();
8 8
 
9 9
   $strongarm = new stdClass;
10
-  $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
10
+  $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */
11 11
   $strongarm->api_version = 1;
12 12
   $strongarm->name = 'search404_page_title';
13 13
   $strongarm->value = 'Page not found';
14 14
   $export['search404_page_title'] = $strongarm;
15 15
 
16 16
   $strongarm = new stdClass;
17
-  $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
17
+  $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */
18 18
   $strongarm->api_version = 1;
19 19
   $strongarm->name = 'search_by_page_settings';
20 20
   $strongarm->value = array(
Please login to merge, or discard this patch.
sites/all/features/global_search/global_search.features.user_permission.inc 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -4,33 +4,33 @@
 block discarded – undo
4 4
  * Implementation of hook_user_default_permissions().
5 5
  */
6 6
 function global_search_user_default_permissions() {
7
-  $permissions = array();
7
+    $permissions = array();
8 8
 
9
-  // Exported permission: administer search
10
-  $permissions['administer search'] = array(
9
+    // Exported permission: administer search
10
+    $permissions['administer search'] = array(
11 11
     'name' => 'administer search',
12 12
     'roles' => array(
13
-      '0' => 'administrator',
13
+        '0' => 'administrator',
14 14
     ),
15
-  );
15
+    );
16 16
 
17
-  // Exported permission: search content
18
-  $permissions['search content'] = array(
17
+    // Exported permission: search content
18
+    $permissions['search content'] = array(
19 19
     'name' => 'search content',
20 20
     'roles' => array(
21
-      '0' => 'anonymous user',
22
-      '1' => 'authenticated user',
21
+        '0' => 'anonymous user',
22
+        '1' => 'authenticated user',
23 23
     ),
24
-  );
24
+    );
25 25
 
26
-  // Exported permission: use advanced search
27
-  $permissions['use advanced search'] = array(
26
+    // Exported permission: use advanced search
27
+    $permissions['use advanced search'] = array(
28 28
     'name' => 'use advanced search',
29 29
     'roles' => array(
30
-      '0' => 'anonymous user',
31
-      '1' => 'authenticated user',
30
+        '0' => 'anonymous user',
31
+        '1' => 'authenticated user',
32 32
     ),
33
-  );
33
+    );
34 34
 
35
-  return $permissions;
35
+    return $permissions;
36 36
 }
Please login to merge, or discard this patch.
drupal/sites/all/features/global_search/global_search.features.inc 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
  * Implementation of hook_ctools_plugin_api().
5 5
  */
6 6
 function global_search_ctools_plugin_api() {
7
-  list($module, $api) = func_get_args();
8
-  if ($module == "strongarm" && $api == "strongarm") {
7
+    list($module, $api) = func_get_args();
8
+    if ($module == "strongarm" && $api == "strongarm") {
9 9
     return array("version" => 1);
10
-  }
10
+    }
11 11
 }
Please login to merge, or discard this patch.