Completed
Push — master ( 312807...b11528 )
by Nazar
04:22
created
build/Builder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -262,7 +262,7 @@
 block discarded – undo
262 262
 			"$this->root/license.txt",
263 263
 			"$this->root/Storage.php"
264 264
 		];
265
-		$files            = [];
265
+		$files = [];
266 266
 		foreach ($files_to_include as $s) {
267 267
 			if (is_file($s)) {
268 268
 				$files[] = $s;
Please login to merge, or discard this patch.
core/classes/Group.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 		'title'       => 'html',
38 38
 		'description' => 'html'
39 39
 	];
40
-	protected $table      = '[prefix]groups';
40
+	protected $table = '[prefix]groups';
41 41
 	/**
42 42
 	 * @var Prefix
43 43
 	 */
Please login to merge, or discard this patch.
core/classes/Session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 		'ip'          => 'text',
75 75
 		'data'        => 'json'
76 76
 	];
77
-	protected $table      = '[prefix]sessions';
77
+	protected $table = '[prefix]sessions';
78 78
 	protected function construct () {
79 79
 		$this->cache       = new Prefix('sessions');
80 80
 		$this->users_cache = new Prefix('users');
Please login to merge, or discard this patch.
core/traits/CRUD.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 				)",
59 59
 			$prepared_arguments
60 60
 		);
61
-		$id      = $insert_id !== false ? $insert_id : $this->db_prime()->id();
61
+		$id = $insert_id !== false ? $insert_id : $this->db_prime()->id();
62 62
 		/**
63 63
 		 * Id might be 0 if insertion failed or if we insert duplicate entry (which is fine since we use 'INSERT IGNORE'
64 64
 		 */
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 			}
156 156
 			return $id;
157 157
 		}
158
-		$columns      = array_filter(
158
+		$columns = array_filter(
159 159
 			$data_model,
160 160
 			function ($column) {
161 161
 				return !is_array($column) || !isset($column['data_model']);
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 				$id
224 224
 			]
225 225
 		) ?: [];
226
-		$language_field           = isset($model['language_field']) ? $model['language_field'] : null;
226
+		$language_field = isset($model['language_field']) ? $model['language_field'] : null;
227 227
 		/**
228 228
 		 * If no rows found for current language - find another language that should contain some rows
229 229
 		 */
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
 			$data_before = $this->read_internal($table, $data_model, $id);
295 295
 		}
296 296
 		list($prepared_arguments, $joined_tables) = self::crud_arguments_preparation(array_slice($data_model, 1), $prepared_arguments, $id);
297
-		$columns              = implode(
297
+		$columns = implode(
298 298
 			',',
299 299
 			array_map(
300 300
 				function ($column) {
Please login to merge, or discard this patch.
core/traits/User/Data.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -439,7 +439,7 @@
 block discarded – undo
439 439
 		if (!$user || !$item || $user == User::GUEST_ID) {
440 440
 			return false;
441 441
 		}
442
-		$item   = implode(
442
+		$item = implode(
443 443
 			',',
444 444
 			$this->db_prime()->s((array)$item)
445 445
 		);
Please login to merge, or discard this patch.
core/traits/User/Management.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -269,7 +269,7 @@
 block discarded – undo
269 269
 	 * Checks for unconfirmed registrations and deletes expired
270 270
 	 */
271 271
 	protected function delete_unconfirmed_users () {
272
-		$reg_date = time() - Config::instance()->core['registration_confirmation_time'] * 86400;    //1 day = 86400 seconds
272
+		$reg_date = time() - Config::instance()->core['registration_confirmation_time'] * 86400; //1 day = 86400 seconds
273 273
 		$ids      = $this->db_prime()->qfas(
274 274
 			[
275 275
 				"SELECT `id`
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.
install/Installer.php 1 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/web.php 1 patch
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.