Completed
Push — master ( 79143a...6b0cd2 )
by Nazar
04:32
created
core/classes/Page/Includes_processing.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
 			'/url\((.*?)\)|@import[\s\t\n\r]*[\'"](.*?)[\'"]/',
77 77
 			function ($match) use ($dir) {
78 78
 				$link = trim($match[1], '\'" ');
79
-				$link = explode('?', $link, 2)[0];;
79
+				$link = explode('?', $link, 2)[0]; ;
80 80
 				if (!static::is_relative_path_and_exists($link, $dir)) {
81 81
 					return $match[0];
82 82
 				}
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) 2014-2015, Nazar Mokrynskyi
6
- * @license   MIT License, see license.txt
7
- */
3
+	 * @package   CleverStyle CMS
4
+	 * @author    Nazar Mokrynskyi <[email protected]>
5
+	 * @copyright Copyright (c) 2014-2015, Nazar Mokrynskyi
6
+	 * @license   MIT License, see license.txt
7
+	 */
8 8
 namespace cs\Page;
9 9
 use
10 10
 	cs\Core,
Please login to merge, or discard this patch.
core/classes/Page/Meta.php 1 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) 2014-2015, Nazar Mokrynskyi
6
- * @license        MIT License, see license.txt
7
- */
3
+	 * @package        CleverStyle CMS
4
+	 * @author         Nazar Mokrynskyi <[email protected]>
5
+	 * @copyright      Copyright (c) 2014-2015, Nazar Mokrynskyi
6
+	 * @license        MIT License, see license.txt
7
+	 */
8 8
 namespace cs\Page;
9 9
 use
10 10
 	cs\Config,
Please login to merge, or discard this patch.
core/classes/Permission.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   CleverStyle CMS
4
- * @author    Nazar Mokrynskyi <[email protected]>
5
- * @copyright Copyright (c) 2013-2015, 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-2015, Nazar Mokrynskyi
6
+	 * @license   MIT License, see license.txt
7
+	 */
8 8
 namespace cs;
9 9
 use
10 10
 	cs\Cache\Prefix,
11 11
 	cs\DB\Accessor;
12 12
 /**
13
- * Class for permissions manipulating
14
- *
15
- * @method static Permission instance($check = false)
16
- */
13
+	 * Class for permissions manipulating
14
+	 *
15
+	 * @method static Permission instance($check = false)
16
+	 */
17 17
 class Permission {
18 18
 	use
19 19
 		Accessor,
Please login to merge, or discard this patch.
core/classes/Route.php 3 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   CleverStyle CMS
4
- * @author    Nazar Mokrynskyi <[email protected]>
5
- * @copyright Copyright (c) 2015, Nazar Mokrynskyi
6
- * @license   MIT License, see license.txt
7
- */
3
+	 * @package   CleverStyle CMS
4
+	 * @author    Nazar Mokrynskyi <[email protected]>
5
+	 * @copyright Copyright (c) 2015, Nazar Mokrynskyi
6
+	 * @license   MIT License, see license.txt
7
+	 */
8 8
 namespace cs;
9 9
 /**
10
- * Provides next events:
11
- *  System/Route/pre_routing_replace
12
- *  ['rc'    => &$rc] //Reference to string with current route, this string can be changed
13
- *
14
- *  System/Route/routing_replace
15
- *  ['rc'    => &$rc] //Reference to string with current route, this string can be changed
16
- *
17
- * @method static Route instance($check = false)
18
- */
10
+	 * Provides next events:
11
+	 *  System/Route/pre_routing_replace
12
+	 *  ['rc'    => &$rc] //Reference to string with current route, this string can be changed
13
+	 *
14
+	 *  System/Route/routing_replace
15
+	 *  ['rc'    => &$rc] //Reference to string with current route, this string can be changed
16
+	 *
17
+	 * @method static Route instance($check = false)
18
+	 */
19 19
 class Route {
20 20
 	use
21 21
 		Singleton;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -281,7 +281,7 @@
 block discarded – undo
281 281
 					$module_data['active'] == Config\Module_Properties::ENABLED;
282 282
 			}
283 283
 		);
284
-		$L       = Language::instance();
284
+		$L = Language::instance();
285 285
 		foreach ($modules as $module => &$localized_name) {
286 286
 			$localized_name = path($L->$module);
287 287
 		}
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
 		 * If match was not found - mirror is not allowed!
90 90
 		 */
91 91
 		if ($this->mirror_index === -1) {
92
-			trigger_error("Mirror $_SERVER->host not allowed", E_USER_ERROR);
92
+			trigger_error("mirror $_SERVER->host not allowed", E_USER_ERROR);
93 93
 			throw new ExitException(400);
94 94
 		}
95 95
 		/**
Please login to merge, or discard this patch.
core/classes/Session.php 2 patches
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -1,40 +1,40 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   CleverStyle CMS
4
- * @author    Nazar Mokrynskyi <[email protected]>
5
- * @copyright Copyright (c) 2011-2015, 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-2015, Nazar Mokrynskyi
6
+	 * @license   MIT License, see license.txt
7
+	 */
8 8
 /**
9
- * Provides next events:
10
- *
11
- *  System/Session/init/before
12
- *
13
- *  System/Session/init/after
14
- *
15
- *  System/Session/load
16
- *  ['session_data' => $session_data]
17
- *
18
- *  System/Session/add
19
- *  ['session_data' => $session_data]
20
- *
21
- *  System/Session/del/before
22
- *  ['id' => $session_id]
23
- *
24
- *  System/Session/del/after
25
- *  ['id' => $session_id]
26
- *
27
- *  System/Session/del_all
28
- *  ['id' => $user_id]
29
- */
9
+	 * Provides next events:
10
+	 *
11
+	 *  System/Session/init/before
12
+	 *
13
+	 *  System/Session/init/after
14
+	 *
15
+	 *  System/Session/load
16
+	 *  ['session_data' => $session_data]
17
+	 *
18
+	 *  System/Session/add
19
+	 *  ['session_data' => $session_data]
20
+	 *
21
+	 *  System/Session/del/before
22
+	 *  ['id' => $session_id]
23
+	 *
24
+	 *  System/Session/del/after
25
+	 *  ['id' => $session_id]
26
+	 *
27
+	 *  System/Session/del_all
28
+	 *  ['id' => $user_id]
29
+	 */
30 30
 namespace cs;
31 31
 use
32 32
 	cs\Cache\Prefix;
33 33
 /**
34
- * Class responsible for current user session
35
- *
36
- * @method static Session instance($check = false)
37
- */
34
+	 * Class responsible for current user session
35
+	 *
36
+	 * @method static Session instance($check = false)
37
+	 */
38 38
 class Session {
39 39
 	use
40 40
 		CRUD,
Please login to merge, or discard this 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/classes/Storage.php 1 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-2015, 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-2015, Nazar Mokrynskyi
6
+	 * @license        MIT License, see license.txt
7
+	 */
8 8
 namespace cs;
9 9
 
10 10
 /**
Please login to merge, or discard this patch.
core/classes/User.php 1 patch
Indentation   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -1,43 +1,43 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   CleverStyle CMS
4
- * @author    Nazar Mokrynskyi <[email protected]>
5
- * @copyright Copyright (c) 2011-2015, 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-2015, Nazar Mokrynskyi
6
+	 * @license   MIT License, see license.txt
7
+	 */
8 8
 /**
9
- * Provides next events:
10
- *  System/User/construct/before
11
- *
12
- *  System/User/construct/after
13
- *
14
- *  System/User/registration/before
15
- *  ['email' => <i>email</i>]
16
- *
17
- *  System/User/registration/after
18
- *  ['id' => <i>user_id</i>]
19
- *
20
- *  System/User/registration/confirmation/before
21
- *  ['reg_key' => <i>reg_key</i>]
22
- *
23
- *  System/User/registration/confirmation/after
24
- *  ['id' => <i>user_id</i>]
25
- *
26
- *  System/User/del/before
27
- *  ['id' => <i>user_id</i>]
28
- *
29
- *  System/User/del/after
30
- *  ['id' => <i>user_id</i>]
31
- *
32
- *  System/User/add_bot
33
- *  ['id' => <i>bot_id</i>]
34
- *
35
- *  System/User/get_contacts
36
- *  [
37
- *    'id'       => <i>user_id</i>,
38
- *    'contacts' => <i>&$contacts</i> //Array of user id
39
- *  ]
40
- */
9
+	 * Provides next events:
10
+	 *  System/User/construct/before
11
+	 *
12
+	 *  System/User/construct/after
13
+	 *
14
+	 *  System/User/registration/before
15
+	 *  ['email' => <i>email</i>]
16
+	 *
17
+	 *  System/User/registration/after
18
+	 *  ['id' => <i>user_id</i>]
19
+	 *
20
+	 *  System/User/registration/confirmation/before
21
+	 *  ['reg_key' => <i>reg_key</i>]
22
+	 *
23
+	 *  System/User/registration/confirmation/after
24
+	 *  ['id' => <i>user_id</i>]
25
+	 *
26
+	 *  System/User/del/before
27
+	 *  ['id' => <i>user_id</i>]
28
+	 *
29
+	 *  System/User/del/after
30
+	 *  ['id' => <i>user_id</i>]
31
+	 *
32
+	 *  System/User/add_bot
33
+	 *  ['id' => <i>bot_id</i>]
34
+	 *
35
+	 *  System/User/get_contacts
36
+	 *  [
37
+	 *    'id'       => <i>user_id</i>,
38
+	 *    'contacts' => <i>&$contacts</i> //Array of user id
39
+	 *  ]
40
+	 */
41 41
 namespace cs;
42 42
 use
43 43
 	cs\Cache\Prefix,
@@ -47,26 +47,26 @@  discard block
 block discarded – undo
47 47
 	cs\User\Management as User_management,
48 48
 	cs\User\Permission as User_permission;
49 49
 /**
50
- * Class for users manipulating
51
- *
52
- * @property int    $id
53
- * @property string $login
54
- * @property string $login_hash    sha224 hash
55
- * @property string $username
56
- * @property string $password_hash sha512 hash
57
- * @property string $email
58
- * @property string $email_hash    sha224 hash
59
- * @property string $language
60
- * @property string $timezone
61
- * @property int    $reg_date      unix timestamp
62
- * @property string $reg_ip        hex value, obtained by function ip2hex()
63
- * @property string $reg_key       random md5 hash, generated during registration
64
- * @property int    $status        '-1' - not activated (for example after registration), 0 - inactive, 1 - active
65
- * @property int    $block_until   unix timestamp
66
- * @property string $avatar
67
- *
68
- * @method static User instance($check = false)
69
- */
50
+	 * Class for users manipulating
51
+	 *
52
+	 * @property int    $id
53
+	 * @property string $login
54
+	 * @property string $login_hash    sha224 hash
55
+	 * @property string $username
56
+	 * @property string $password_hash sha512 hash
57
+	 * @property string $email
58
+	 * @property string $email_hash    sha224 hash
59
+	 * @property string $language
60
+	 * @property string $timezone
61
+	 * @property int    $reg_date      unix timestamp
62
+	 * @property string $reg_ip        hex value, obtained by function ip2hex()
63
+	 * @property string $reg_key       random md5 hash, generated during registration
64
+	 * @property int    $status        '-1' - not activated (for example after registration), 0 - inactive, 1 - active
65
+	 * @property int    $block_until   unix timestamp
66
+	 * @property string $avatar
67
+	 *
68
+	 * @method static User instance($check = false)
69
+	 */
70 70
 class User {
71 71
 	use
72 72
 		Accessor,
Please login to merge, or discard this patch.
core/classes/User/Properties.php 2 patches
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-2015, 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-2015, 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.
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.
core/classes/_SERVER.php 1 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) 2015, Nazar Mokrynskyi
6
- * @license   MIT License, see license.txt
7
- */
3
+	 * @package   CleverStyle CMS
4
+	 * @author    Nazar Mokrynskyi <[email protected]>
5
+	 * @copyright Copyright (c) 2015, Nazar Mokrynskyi
6
+	 * @license   MIT License, see license.txt
7
+	 */
8 8
 namespace cs;
9 9
 use
10 10
 	ArrayAccess,
Please login to merge, or discard this patch.