Skip to content

Commit edcd96e

Browse files
committed
Small phpdoc cleanups
1 parent 91cde4d commit edcd96e

1 file changed

Lines changed: 14 additions & 18 deletions

File tree

lib/midcom/config/main.php

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
*
1818
* <b>Site-specific configuration:</b>
1919
*
20-
* MidCOM will include the file <i>midcom::get()->config->get('midcom_config_basedir') . /midcom.conf</i> which must be a regular
21-
* PHP file. You may populate the global array $midcom_config_site in this file. It should
20+
* You may populate the global array $midcom_config_site. It should
2221
* list all options that apply to all installations (like the Cache backend selection
2322
* or the indexer host).
2423
*
@@ -50,12 +49,12 @@
5049
*
5150
* <b>Authentication configuration</b>
5251
*
53-
* - <b>boolean allow_sudo:</b> Set this to true (the default) to allow components to
52+
* - <b>bool allow_sudo:</b> Set this to true (the default) to allow components to
5453
* request super user privileges for certain operations. This is mainly used to allow
5554
* anonymous access to the system without having to store a user account everywhere.
5655
* - <b>string auth_backend:</b> The authentication backend to use, the "simple"
5756
* backend is used as a default.
58-
* - <b>boolean auth_check_client_ip:</b> Control whether to check the client IP address
57+
* - <b>bool auth_check_client_ip:</b> Control whether to check the client IP address
5958
* on each subsequent request when authentication a user. This is enabled by default
6059
* as it will make session hijacking much harder. You should not turn it off unless
6160
* you have very good reasons to do.
@@ -86,7 +85,7 @@
8685
* In general, you should use this only to change the backend driver.
8786
* In all other cases you should leave this option untouched. The defaults are to store all
8887
* cache databases into the 'content/' subdirectory of the cache base directory.
89-
* - <b>boolean cache_module_content_uncached:</b> Set this to true if you want the site to run in an uncached
88+
* - <b>bool cache_module_content_uncached:</b> Set this to true if you want the site to run in an uncached
9089
* mode. This is different from cache_disable in that the regular header preprocessing is
9190
* done anyway, allowing for browser side caching. Essentially, the computing order is the
9291
* same (no_cache for example is considered like usual), but the cache file is not stored.
@@ -145,19 +144,16 @@
145144
* Configuration example:
146145
*
147146
* <code>
148-
* $GLOBALS['midcom_config_local']['error_actions'] = array
149-
* (
150-
* 500 => array
151-
* (
147+
* $GLOBALS['midcom_config_local']['error_actions'] = [
148+
* 500 => [
152149
* 'action' => 'email',
153150
* 'email' => 'webmaster@example.net',
154-
* ),
155-
* 404 => array
156-
* (
151+
* ],
152+
* 404 => [
157153
* 'action' => 'log',
158154
* 'filename' => '/var/log/broken_links.log',
159-
* ),
160-
* );
155+
* ],
156+
* ];
161157
* </code>
162158
*
163159
* <b>MidCOM Core configuration</b>
@@ -186,7 +182,7 @@
186182
*
187183
* <b>string midcom_services_rcs_bin_dir</b>: the prefix for the rcs utilities (default: /usr/bin)
188184
* <b>string midcom_services_rcs_root </b>: the directory where the rcs files get placed. (default: must be set!)
189-
* <b>boolean midcom_services_rcs_enable</b>: if set, midcom will fail hard if the rcs service is not operational. (default: false)
185+
* <b>bool midcom_services_rcs_enable</b>: if set, midcom will fail hard if the rcs service is not operational. (default: false)
190186
*
191187
* <b>Style Engine</b>
192188
*
@@ -210,7 +206,7 @@
210206
* - <b>string toolbars_object_style_class:</b> defaults to midcom_toolbar object_toolbar
211207
* - <b>string toolbars_simple_css_path:</b> this defaults to MIDCOM_STATIC_URL/midcom.services.toolbars/simple.css
212208
* and is used to set the css for the toolbars used with onsite editing.
213-
* - <b>boolean toolbars_enable_centralized:</b> defaults to true, whether to enable the centralized,
209+
* - <b>bool toolbars_enable_centralized:</b> defaults to true, whether to enable the centralized,
214210
* javascript-floating MidCOM toolbar that users can display with midcom::get()->toolbars->show();
215211
*
216212
* <b>Utility Programs</b>
@@ -234,10 +230,10 @@
234230
*
235231
* <b>Visibility settings (NAP and DBA)</b>
236232
*
237-
* - <b>boolean show_hidden_objects:</b> This flag indicates whether objects that are
233+
* - <b>bool show_hidden_objects:</b> This flag indicates whether objects that are
238234
* invisible either by explicit hiding or by their scheduling should be shown anyway.
239235
* This defaults to true at this time
240-
* - <b>boolean show_unapproved_objects:</b> This flag indicates whether objects should be
236+
* - <b>bool show_unapproved_objects:</b> This flag indicates whether objects should be
241237
* shown even if they are not approved. This defaults to true.
242238
*
243239
* @package midcom

0 commit comments

Comments
 (0)