Completed
Push — master ( 78e2d5...d1a1bd )
by Nazar
04:12
created
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.
core/classes/h.php 1 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
- * @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
- * Class for HTML code rendering in accordance with the standards of HTML5, and with useful syntax extensions for simpler usage
10
- */
9
+	 * Class for HTML code rendering in accordance with the standards of HTML5, and with useful syntax extensions for simpler usage
10
+	 */
11 11
 use	cs\h\Base;
12 12
 class h extends Base {}
Please login to merge, or discard this patch.
core/classes/h/Base.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  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
 namespace cs\h;
9 9
 use
10 10
 	nazarpc\BananaHTML,
@@ -13,8 +13,8 @@  discard block
 block discarded – undo
13 13
 	cs\Page,
14 14
 	cs\Session;
15 15
 /**
16
- * Class for HTML code rendering in accordance with the standards of HTML5, and with useful syntax extensions for simpler usage
17
- */
16
+	 * Class for HTML code rendering in accordance with the standards of HTML5, and with useful syntax extensions for simpler usage
17
+	 */
18 18
 abstract class Base extends BananaHTML {
19 19
 	/**
20 20
 	 * Special processing for URLs with hash
Please login to merge, or discard this patch.
core/engines/Cache/BlackHole.php 1 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-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\Cache;
9 9
 /**
10
- * It works like black hole - i.e. does nothing. May be suitable for debugging purposes, when cache saving should be disabled, but debug mode is disabled too
11
- */
10
+	 * It works like black hole - i.e. does nothing. May be suitable for debugging purposes, when cache saving should be disabled, but debug mode is disabled too
11
+	 */
12 12
 class BlackHole extends _Abstract {
13 13
 	/**
14 14
 	 * @inheritdoc
Please login to merge, or discard this patch.
core/engines/Cache/FileSystem.php 2 patches
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-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\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.
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.
core/engines/Cache/Memcached.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 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\Cache;
9 9
 use            cs\Core;
10 10
 /**
11
- * Provides cache functionality based on Memcached.
12
- * Support optionally base configuration option Core::instance()->memcached_host and Core::instance()->memcached_port
13
- */
11
+	 * Provides cache functionality based on Memcached.
12
+	 * Support optionally base configuration option Core::instance()->memcached_host and Core::instance()->memcached_port
13
+	 */
14 14
 class Memcached extends _Abstract {
15 15
 	/**
16 16
 	 * @var \Memcached
Please login to merge, or discard this patch.