Completed
Push — master ( d70e6c...215c97 )
by Nazar
04:09
created
core/classes/Request.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
54 54
 	 *
55 55
 	 * @throws ExitException
56 56
 	 */
57
-	function init ($server, $query, $data, $files, $data_stream, $cookie, $request_started) {
58
-		++static::$id;
57
+	function init ($server, $query, $data, $files, $data_stream, $cookie, $request_started) {++static::$id;
59 58
 		$this->init_server($server);
60 59
 		$this->init_query($query);
61 60
 		$this->init_data_and_files($data, $files, $data_stream);
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/Permission.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 		'group' => 'text',
25 25
 		'label' => 'text'
26 26
 	];
27
-	protected $table      = '[prefix]permissions';
27
+	protected $table = '[prefix]permissions';
28 28
 	/**
29 29
 	 * Array of all permissions for quick selecting
30 30
 	 * @var array
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.
core/traits/Singleton/Base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
 					'alias'    => "cs\\custom\\$_custom_class",
102 102
 					'path'     => $custom_class
103 103
 				];
104
-				$next_alias      = "cs\\custom\\$custom_class";
104
+				$next_alias = "cs\\custom\\$custom_class";
105 105
 			}
106 106
 			$modified_classes[$class] = [
107 107
 				'aliases'     => $aliases,
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/engines/$namespace/$class_name.php")]) ||    //Core engines
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/engines/$namespace/$class_name.php")]) || //Core engines
161 161
 					strlen($file = @$file_index_map[str_replace('//', '/', "components/$namespace/$class_name.php")])         //Classes in modules and plugins
162 162
 				) {
163 163
 					/** @noinspection UntrustedInclusionInspection */
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 	 * @throws Exception
280 280
 	 */
281 281
 	protected static function initialize_system_config ($cdb, $source, $site_name, $url, $admin_email, $language, $domain, $timezone, $mode) {
282
-		$config     = [
282
+		$config = [
283 283
 			'name'                              => $site_name,
284 284
 			'url'                               => [$url],
285 285
 			'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   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
 	<p style="color: red"><?=$warning?></p>
169 169
 	<button onclick="location.href = '/';">Go to website</button>
170 170
 </table>
171
-HTML;
171
+html;
172 172
 }
173 173
 
174 174
 if (count(explode('/', $_SERVER['REQUEST_URI'])) > 3) {
Please login to merge, or discard this patch.