Completed
Push — master ( 69cdb4...c2609a )
by Nazar
03:54
created
components/modules/System/api/Controller/admin/permissions.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
 				'value',
112 112
 				'id'
113 113
 			);
114
-			$data['users']  = array_column(
114
+			$data['users'] = array_column(
115 115
 				$User->db()->qfa(
116 116
 					[
117 117
 						"SELECT
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package    CleverStyle CMS
4
- * @subpackage System module
5
- * @category   modules
6
- * @author     Nazar Mokrynskyi <[email protected]>
7
- * @copyright  Copyright (c) 2015-2016, Nazar Mokrynskyi
8
- * @license    MIT License, see license.txt
9
- */
3
+	 * @package    CleverStyle CMS
4
+	 * @subpackage System module
5
+	 * @category   modules
6
+	 * @author     Nazar Mokrynskyi <[email protected]>
7
+	 * @copyright  Copyright (c) 2015-2016, Nazar Mokrynskyi
8
+	 * @license    MIT License, see license.txt
9
+	 */
10 10
 namespace cs;
11 11
 
12 12
 $Config = Config::instance();
Please login to merge, or discard this patch.
components/modules/WebSockets/Server.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
 		// Disable all versions except RFC6455, which is supported by all modern browsers
141 141
 		$ws_server->disableVersion(0);
142 142
 		$ws_server->disableVersion(6);
143
-		$this->io_server        = IoServer::factory(
143
+		$this->io_server = IoServer::factory(
144 144
 			new HttpServer($ws_server),
145 145
 			$this->listen_port,
146 146
 			$this->listen_locally
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   WebSockets
4
- * @category  modules
5
- * @author    Nazar Mokrynskyi <[email protected]>
6
- * @copyright Copyright (c) 2015-2016, Nazar Mokrynskyi
7
- * @license   MIT License, see license.txt
8
- */
3
+	 * @package   WebSockets
4
+	 * @category  modules
5
+	 * @author    Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright Copyright (c) 2015-2016, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs\modules\WebSockets;
10 10
 use
11 11
 	cs\_SERVER,
Please login to merge, or discard this patch.
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.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
  * @license   MIT License, see license.txt
7 7
  */
8 8
 namespace cs;
9
-require __DIR__.'/loader_base.php';      //Inclusion of loader base
9
+require __DIR__.'/loader_base.php'; //Inclusion of loader base
10 10
 require __DIR__.'/functions_global.php'; //Inclusion of functions that work with global state
11 11
 /**
12 12
  * Wrapper around default `$_SERVER` superglobal
Please login to merge, or discard this patch.
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@
 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
 require __DIR__.'/loader_base.php';      //Inclusion of loader base
10 10
 require __DIR__.'/functions_global.php'; //Inclusion of functions that work with global state
11 11
 /**
12
- * Wrapper around default `$_SERVER` superglobal
13
- */
12
+	 * Wrapper around default `$_SERVER` superglobal
13
+	 */
14 14
 $_SERVER = new _SERVER($_SERVER);
15 15
 /**
16
- * Including of custom files
17
- */
16
+	 * Including of custom files
17
+	 */
18 18
 foreach (glob(CUSTOM.'/*.php') ?: [] as $custom) {
19 19
 	include $custom;
20 20
 }
Please login to merge, or discard this patch.