Completed
Push — master ( fc7743...6ad0d8 )
by Nazar
04:33
created
core/classes/Config/Module_Properties.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@
 block discarded – undo
9 9
 use
10 10
 	cs\Config;
11 11
 /**
12
- * Class for getting of db and storage configuration of module
13
- */
12
+	 * Class for getting of db and storage configuration of module
13
+	 */
14 14
 class Module_Properties {
15 15
 	const ENABLED     = 1;
16 16
 	const DISABLED    = 0;
Please login to merge, or discard this patch.
core/traits/Singleton.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@
 block discarded – undo
9 9
 use
10 10
 	cs\Singleton\Base;
11 11
 /**
12
- * @inheritdoc
13
- */
12
+	 * @inheritdoc
13
+	 */
14 14
 trait Singleton {
15 15
 	use Base;
16 16
 }
Please login to merge, or discard this patch.
core/traits/Request/Route.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 			 * If match was not found - mirror is not allowed!
109 109
 			 */
110 110
 			if ($this->mirror_index === -1) {
111
-				throw new ExitException("Mirror $this->host not allowed", 400);
111
+				throw new ExitException("mirror $this->host not allowed", 400);
112 112
 			}
113 113
 			$results = $this->analyze_route_path($this->path);
114 114
 			$this->handle_redirect($Config, $results['path_normalized']);
Please login to merge, or discard this patch.
core/classes/False_class.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -10,16 +10,16 @@
 block discarded – undo
10 10
 	ArrayAccess,
11 11
 	SimpleXMLElement;
12 12
 /**
13
- * False_class is used for chained calling, when some method may return false.
14
- *
15
- * Usage of class is simple, just return his instance instead of real boolean <i>false</i>.
16
- * On every call of any method or getting of any property or getting any element of array instance of the this class will be returned.
17
- * Access to anything of this class instance will be casted to boolean <i>false</i>
18
- *
19
- * Inherits SimpleXMLElement in order to be casted from object to boolean as <i>false</i>
20
- *
21
- * @property string $error
22
- */
13
+	 * False_class is used for chained calling, when some method may return false.
14
+	 *
15
+	 * Usage of class is simple, just return his instance instead of real boolean <i>false</i>.
16
+	 * On every call of any method or getting of any property or getting any element of array instance of the this class will be returned.
17
+	 * Access to anything of this class instance will be casted to boolean <i>false</i>
18
+	 *
19
+	 * Inherits SimpleXMLElement in order to be casted from object to boolean as <i>false</i>
20
+	 *
21
+	 * @property string $error
22
+	 */
23 23
 class False_class extends SimpleXMLElement implements ArrayAccess {
24 24
 	/**
25 25
 	 * Use this method to obtain correct instance
Please login to merge, or discard this patch.
core/classes/Language/Prefix.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@
 block discarded – undo
9 9
 use
10 10
 	cs\Language;
11 11
 /**
12
- * Class for simplified work with translations, when using common prefix
13
- */
12
+	 * Class for simplified work with translations, when using common prefix
13
+	 */
14 14
 class Prefix {
15 15
 	/**
16 16
 	 * @var string
Please login to merge, or discard this patch.
install/Installer.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 	"public_key"		: "@public_key"
44 44
 }
45 45
 
46
-CONFIG;
46
+config;
47 47
 	/**
48 48
 	 * @param string $source
49 49
 	 * @param string $target
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -154,10 +154,10 @@  discard block
 block discarded – undo
154 154
 				 * Try to load classes from different places. If not found in one place - try in another.
155 155
 				 */
156 156
 				if (
157
-					strlen($file = @$file_index_map[str_replace('//', '/', "core/classes/$namespace/$class_name.php")]) ||    //Core classes
157
+					strlen($file = @$file_index_map[str_replace('//', '/', "core/classes/$namespace/$class_name.php")]) || //Core classes
158 158
 					strlen($file = @$file_index_map[str_replace('//', '/', "core/thirdparty/$namespace/$class_name.php")]) || //Third party classes
159
-					strlen($file = @$file_index_map[str_replace('//', '/', "core/traits/$namespace/$class_name.php")]) ||     //Core traits
160
-					strlen($file = @$file_index_map[str_replace('//', '/', "core/drivers/$namespace/$class_name.php")]) ||    //Core drivers
159
+					strlen($file = @$file_index_map[str_replace('//', '/', "core/traits/$namespace/$class_name.php")]) || //Core traits
160
+					strlen($file = @$file_index_map[str_replace('//', '/', "core/drivers/$namespace/$class_name.php")]) || //Core drivers
161 161
 					strlen($file = @$file_index_map[str_replace('//', '/', "$namespace/$class_name.php")])                    //Classes in modules
162 162
 				) {
163 163
 					require_once "$source/fs/$file";
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 	 * @throws RuntimeException
264 264
 	 */
265 265
 	protected static function initialize_system_config ($cdb, $source, $site_name, $url, $admin_email, $language, $domain, $timezone, $mode) {
266
-		$config     = [
266
+		$config = [
267 267
 			'site_name'         => $site_name,
268 268
 			'url'               => [$url],
269 269
 			'admin_email'       => $admin_email,
Please login to merge, or discard this patch.
install/cli.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
   php $argv[0] -i
178 178
   php $argv[0] -sn Web-site -i
179 179
 
180
-HELP;
180
+help;
181 181
 	return;
182 182
 }
183 183
 
@@ -217,4 +217,4 @@  discard block
 block discarded – undo
217 217
 Login: $admin_login
218 218
 Password: $options[admin_password]
219 219
 
220
-SUCCESS;
220
+success;
Please login to merge, or discard this patch.
install/web.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
 	if (isset($_POST['site_url'])) {
121 121
 		$url = $_POST['site_url'];
122 122
 	} else {
123
-		$https  = @$_SERVER['HTTPS'] ? $_SERVER['HTTPS'] !== 'off' : (
123
+		$https = @$_SERVER['HTTPS'] ? $_SERVER['HTTPS'] !== 'off' : (
124 124
 			@$_SERVER['REQUEST_SCHEME'] === 'https' ||
125 125
 			@$_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https'
126 126
 		);
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 					'in'      => [h::span('Regular user'), h::span('Expert')],
40 40
 					'onclick' => <<<JS
41 41
 var items = document.querySelectorAll('.expert'), i; for (i = 0; i < items.length; i++) items[i].style.display = this.value == '0' ? 'table-row' : '';
42
-JS
42
+js
43 43
 				]
44 44
 			)
45 45
 		).
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 	<p style="color: red">$warning</p>
186 186
 	<button onclick="location.href = '/';">Go to website</button>
187 187
 </table>
188
-HTML;
188
+html;
189 189
 }
190 190
 
191 191
 if (count(explode('/', $_SERVER['REQUEST_URI'])) > 3) {
Please login to merge, or discard this patch.
ci/upload_build.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 		}
54 54
 	)
55 55
 );
56
-$themes  = array_values(
56
+$themes = array_values(
57 57
 	array_filter(
58 58
 		get_files_list(ROOT.'/themes', false, 'd'),
59 59
 		function ($theme) {
Please login to merge, or discard this patch.