Completed
Push — master ( 5d29b3...11effe )
by Nazar
04:11
created
components/plugins/SimpleImage/SimpleImage.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@
 block discarded – undo
10 10
 namespace	cs\plugins\SimpleImage;
11 11
 require_once __DIR__.'/abeautifulsite/SimpleImage.php';
12 12
 /**
13
- * Class SimpleImage
14
- * This class makes image manipulation in PHP as simple as possible.
15
- * @package SimpleImage
16
- */
13
+	 * Class SimpleImage
14
+	 * This class makes image manipulation in PHP as simple as possible.
15
+	 * @package SimpleImage
16
+	 */
17 17
 class SimpleImage extends \abeautifulsite\SimpleImage {}
Please login to merge, or discard this patch.
config/main.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,5 +5,5 @@
 block discarded – undo
5 5
  * @copyright	Copyright (c) 2011-2015, Nazar Mokrynskyi
6 6
  * @license		MIT License, see license.txt
7 7
  */
8
-define('DEBUG',				false);
9
-define('XHTML_TAGS_STYLE',	false);
8
+define('DEBUG', false);
9
+define('XHTML_TAGS_STYLE', false);
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package		CleverStyle CMS
4
- * @author		Nazar Mokrynskyi <[email protected]>
5
- * @copyright	Copyright (c) 2011-2016, Nazar Mokrynskyi
6
- * @license		MIT License, see license.txt
7
- */
3
+	 * @package		CleverStyle CMS
4
+	 * @author		Nazar Mokrynskyi <[email protected]>
5
+	 * @copyright	Copyright (c) 2011-2016, Nazar Mokrynskyi
6
+	 * @license		MIT License, see license.txt
7
+	 */
8 8
 namespace	cs;
9 9
 use
10 10
 	h,
Please login to merge, or discard this patch.
core/classes/Group.php 2 patches
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.
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   CleverStyle CMS
4
- * @author    Nazar Mokrynskyi <[email protected]>
5
- * @copyright Copyright (c) 2013-2016, Nazar Mokrynskyi
6
- * @license   MIT License, see license.txt
7
- */
3
+	 * @package   CleverStyle CMS
4
+	 * @author    Nazar Mokrynskyi <[email protected]>
5
+	 * @copyright Copyright (c) 2013-2016, Nazar Mokrynskyi
6
+	 * @license   MIT License, see license.txt
7
+	 */
8 8
 /**
9
- * Provides next events:<br>
10
- *
11
- *  System/User/Group/add
12
- *  ['id' => <i>group_id</i>]
13
- *
14
- *  System/User/Group/del/before
15
- *  ['id' => <i>group_id</i>]
16
- *
17
- *  System/User/Group/del/after
18
- *  ['id' => <i>group_id</i>]
19
- *
20
- */
9
+	 * Provides next events:<br>
10
+	 *
11
+	 *  System/User/Group/add
12
+	 *  ['id' => <i>group_id</i>]
13
+	 *
14
+	 *  System/User/Group/del/before
15
+	 *  ['id' => <i>group_id</i>]
16
+	 *
17
+	 *  System/User/Group/del/after
18
+	 *  ['id' => <i>group_id</i>]
19
+	 *
20
+	 */
21 21
 namespace cs;
22 22
 use
23 23
 	cs\Cache\Prefix,
Please login to merge, or discard this patch.
core/classes/Session.php 2 patches
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.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   CleverStyle CMS
4
- * @author    Nazar Mokrynskyi <[email protected]>
5
- * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi
6
- * @license   MIT License, see license.txt
7
- */
3
+	 * @package   CleverStyle CMS
4
+	 * @author    Nazar Mokrynskyi <[email protected]>
5
+	 * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi
6
+	 * @license   MIT License, see license.txt
7
+	 */
8 8
 namespace cs\User;
9 9
 use
10 10
 	cs\Config,
Please login to merge, or discard this patch.
core/classes/User/Properties.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 	 * @param int $user
38 38
 	 */
39 39
 	function __construct ($user) {
40
-		$this->id	= $user;
40
+		$this->id = $user;
41 41
 	}
42 42
 	/**
43 43
 	 * Get data item of user
Please login to merge, or discard this patch.
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -1,31 +1,31 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package		CleverStyle CMS
4
- * @author		Nazar Mokrynskyi <[email protected]>
5
- * @copyright	Copyright (c) 2011-2016, Nazar Mokrynskyi
6
- * @license		MIT License, see license.txt
7
- */
3
+	 * @package		CleverStyle CMS
4
+	 * @author		Nazar Mokrynskyi <[email protected]>
5
+	 * @copyright	Copyright (c) 2011-2016, Nazar Mokrynskyi
6
+	 * @license		MIT License, see license.txt
7
+	 */
8 8
 namespace	cs\User;
9 9
 use			cs\User;
10 10
 /**
11
- * Class for getting of user information
12
- *
13
- * @property int    $id
14
- * @property string $login
15
- * @property string $login_hash    sha224 hash
16
- * @property string $username
17
- * @property string $password_hash sha512 hash
18
- * @property string $email
19
- * @property string $email_hash    sha224 hash
20
- * @property string $language
21
- * @property string $timezone
22
- * @property int    $reg_date      unix timestamp
23
- * @property string $reg_ip        hex value, obtained by function ip2hex()
24
- * @property string $reg_key       random md5 hash, generated during registration
25
- * @property int    $status        '-1' - not activated (for example after registration), 0 - inactive, 1 - active
26
- * @property int    $block_until   unix timestamp
27
- * @property string $avatar
28
- */
11
+	 * Class for getting of user information
12
+	 *
13
+	 * @property int    $id
14
+	 * @property string $login
15
+	 * @property string $login_hash    sha224 hash
16
+	 * @property string $username
17
+	 * @property string $password_hash sha512 hash
18
+	 * @property string $email
19
+	 * @property string $email_hash    sha224 hash
20
+	 * @property string $language
21
+	 * @property string $timezone
22
+	 * @property int    $reg_date      unix timestamp
23
+	 * @property string $reg_ip        hex value, obtained by function ip2hex()
24
+	 * @property string $reg_key       random md5 hash, generated during registration
25
+	 * @property int    $status        '-1' - not activated (for example after registration), 0 - inactive, 1 - active
26
+	 * @property int    $block_until   unix timestamp
27
+	 * @property string $avatar
28
+	 */
29 29
 class Properties {
30 30
 	/**
31 31
 	 * @var int
Please login to merge, or discard this patch.
core/engines/Cache/FileSystem.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
 		if (!file_exists($path_in_filesystem) || is_writable($path_in_filesystem)) {
72 72
 			return file_put_contents($path_in_filesystem, $data, LOCK_EX | FILE_BINARY);
73 73
 		}
74
-		trigger_error("File $path_in_filesystem not available for writing", E_USER_WARNING);
74
+		trigger_error("file $path_in_filesystem not available for writing", E_USER_WARNING);
75 75
 		return false;
76 76
 	}
77 77
 	/**
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   CleverStyle CMS
4
- * @author    Nazar Mokrynskyi <[email protected]>
5
- * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi
6
- * @license   MIT License, see license.txt
7
- */
3
+	 * @package   CleverStyle CMS
4
+	 * @author    Nazar Mokrynskyi <[email protected]>
5
+	 * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi
6
+	 * @license   MIT License, see license.txt
7
+	 */
8 8
 namespace cs\Cache;
9 9
 /**
10
- * Provides cache functionality based on file system structure.
11
- */
10
+	 * Provides cache functionality based on file system structure.
11
+	 */
12 12
 class FileSystem extends _Abstract {
13 13
 	/**
14 14
 	 * Like realpath() but works even if files does not exists
Please login to merge, or discard this patch.
core/loader_base.php 2 patches
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.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   CleverStyle CMS
4
- * @author    Nazar Mokrynskyi <[email protected]>
5
- * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi
6
- * @license   MIT License, see license.txt
7
- */
3
+	 * @package   CleverStyle CMS
4
+	 * @author    Nazar Mokrynskyi <[email protected]>
5
+	 * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi
6
+	 * @license   MIT License, see license.txt
7
+	 */
8 8
 namespace cs\User;
9 9
 use
10 10
 	cs\Config,
Please login to merge, or discard this patch.
core/traits/CRUD.php 3 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.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   CleverStyle CMS
4
- * @author    Nazar Mokrynskyi <[email protected]>
5
- * @copyright Copyright (c) 2013-2016, Nazar Mokrynskyi
6
- * @license   MIT License, see license.txt
7
- */
3
+	 * @package   CleverStyle CMS
4
+	 * @author    Nazar Mokrynskyi <[email protected]>
5
+	 * @copyright Copyright (c) 2013-2016, Nazar Mokrynskyi
6
+	 * @license   MIT License, see license.txt
7
+	 */
8 8
 namespace cs\CRUD;
9 9
 use
10 10
 	cs\Event,
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 2 patches
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.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   CleverStyle CMS
4
- * @author    Nazar Mokrynskyi <[email protected]>
5
- * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi
6
- * @license   MIT License, see license.txt
7
- */
3
+	 * @package   CleverStyle CMS
4
+	 * @author    Nazar Mokrynskyi <[email protected]>
5
+	 * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi
6
+	 * @license   MIT License, see license.txt
7
+	 */
8 8
 namespace cs\User;
9 9
 use
10 10
 	cs\Config,
Please login to merge, or discard this patch.