Completed
Push — master ( a3818d...56ee3f )
by Nazar
04:14
created
core/loader_base.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@
 block discarded – undo
5 5
  * @copyright Copyright (c) 2011-2015, Nazar Mokrynskyi
6 6
  * @license   MIT License, see license.txt
7 7
  */
8
-require DIR.'/core/thirdparty/upf.php';           //Inclusion of Useful PHP Functions
8
+require DIR.'/core/thirdparty/upf.php'; //Inclusion of Useful PHP Functions
9 9
 _require_once(DIR.'/vendor/autoload.php', false); //Inclusion of composer's autoloader.php with user's dependencies
10
-require DIR.'/core/functions.php';                //Inclusion of general system functions and system autoloader
10
+require DIR.'/core/functions.php'; //Inclusion of general system functions and system autoloader
11 11
 
12 12
 error_reporting(E_ALL);
13 13
 
Please login to merge, or discard this patch.
core/traits/CRUD.php 2 patches
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.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 		$columns      = "`".implode("`,`", array_keys($columns))."`";
165 165
 		$first_column = array_keys($data_model)[0];
166 166
 		$data         = $this->db()->qf(
167
-			"SELECT $columns
167
+			"select $columns
168 168
 			FROM `$table`
169 169
 			WHERE `$first_column` = '%s'
170 170
 			LIMIT 1",
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 			: '';
213 213
 		$fields                   = '`'.implode('`,`', array_keys($model['data_model'])).'`';
214 214
 		$rows                     = $this->db_prime()->qfa(
215
-			"SELECT $fields
215
+			"select $fields
216 216
 			FROM `{$this->table}_$table`
217 217
 			WHERE
218 218
 					`$id_field`	= '%s'
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.
index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
  * Time of start of execution, is used as current time
32 32
  */
33 33
 define('MICROTIME', microtime(true)); //Time in seconds (float)
34
-define('TIME', floor(MICROTIME));     //Time in seconds (integer)
35
-define('DIR', __DIR__);               //Root directory
34
+define('TIME', floor(MICROTIME)); //Time in seconds (integer)
35
+define('DIR', __DIR__); //Root directory
36 36
 chdir(DIR);
37
-require_once DIR.'/core/loader.php';  //Loader starting
37
+require_once DIR.'/core/loader.php'; //Loader starting
Please login to merge, or discard this patch.
components/modules/Polls/Options.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 	use
21 21
 		CRUD,
22 22
 		Singleton;
23
-	protected $data_model          = [
23
+	protected $data_model = [
24 24
 		'id'     => 'int',
25 25
 		'title'  => 'ml:text',
26 26
 		'path'   => 'ml:text',
Please login to merge, or discard this patch.
components/modules/Polls/Polls.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 	use
21 21
 		CRUD,
22 22
 		Singleton;
23
-	protected $data_model          = [
23
+	protected $data_model = [
24 24
 		'id'     => 'int',
25 25
 		'title'  => 'ml:text',
26 26
 		'path'   => 'ml:text',
Please login to merge, or discard this patch.
components/modules/Shop/Attributes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 	use
21 21
 		CRUD,
22 22
 		Singleton;
23
-	protected $data_model          = [
23
+	protected $data_model = [
24 24
 		'id'     => 'int',
25 25
 		'title'  => 'ml:text',
26 26
 		'path'   => 'ml:text',
Please login to merge, or discard this patch.
components/modules/Shop/Order_statuses.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 	use
21 21
 		CRUD,
22 22
 		Singleton;
23
-	protected $data_model          = [
23
+	protected $data_model = [
24 24
 		'id'     => 'int',
25 25
 		'title'  => 'ml:text',
26 26
 		'path'   => 'ml:text',
Please login to merge, or discard this patch.