Completed
Push — master ( a1de95...cffe77 )
by Nazar
04:19
created
components/modules/Blogs/Tags.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   Blogs
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   Blogs
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\Blogs;
10 10
 use
11 11
 	cs\Cache\Prefix,
@@ -13,10 +13,10 @@  discard block
 block discarded – undo
13 13
 	cs\plugins\Tags\Tags as Tags_trait,
14 14
 	cs\Singleton;
15 15
 /**
16
- * Tags trait
17
- *
18
- * Provides methods for working with tags for faster development
19
- */
16
+	 * Tags trait
17
+	 *
18
+	 * Provides methods for working with tags for faster development
19
+	 */
20 20
 class Tags {
21 21
 	use
22 22
 		Tags_trait,
Please login to merge, or discard this patch.
components/modules/Disqus/Disqus.php 2 patches
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   Disqus
4
- * @category  modules
5
- * @author    Nazar Mokrynskyi <[email protected]>
6
- * @copyright Copyright (c) 2013-2016, Nazar Mokrynskyi
7
- * @license   MIT License, see license.txt
8
- */
3
+	 * @package   Disqus
4
+	 * @category  modules
5
+	 * @author    Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright Copyright (c) 2013-2016, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs\modules\Disqus;
10 10
 use
11 11
 	h,
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
 	protected	$shortname;
28 28
 
29 29
 	protected function construct () {
30
-		$this->module		= Request::instance()->current_module;
31
-		$this->shortname	= Config::instance()->module('Disqus')->shortname;
30
+		$this->module = Request::instance()->current_module;
31
+		$this->shortname = Config::instance()->module('Disqus')->shortname;
32 32
 	}
33 33
 	/**
34 34
 	 * Set module (current module assumed by default)
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 	 * @param string	$module	Module name
37 37
 	 */
38 38
 	function set_module ($module) {
39
-		$this->module	= $module;
39
+		$this->module = $module;
40 40
 	}
41 41
 	/**
42 42
 	 * Count of comments for specified item
@@ -73,11 +73,11 @@  discard block
 block discarded – undo
73 73
 		return '<div id="disqus_thread"></div>';
74 74
 	}
75 75
 	protected function count_js () {
76
-		static	$added	= false;
76
+		static	$added = false;
77 77
 		if ($added) {
78 78
 			return;
79 79
 		}
80
-		$added		= true;
80
+		$added = true;
81 81
 		Page::instance()->js(
82 82
 			"var disqus_shortname = '$this->shortname';
83 83
 if (!window.disqus_count_items) { window.disqus_count_items = []; }",
@@ -85,11 +85,11 @@  discard block
 block discarded – undo
85 85
 		);
86 86
 	}
87 87
 	protected function block_js ($item) {
88
-		static	$added	= false;
88
+		static	$added = false;
89 89
 		if ($added) {
90 90
 			return;
91 91
 		}
92
-		$added		= true;
92
+		$added = true;
93 93
 		Page::instance()->js(
94 94
 			"var disqus_shortname = '$this->shortname', disqus_identifier = '".str_replace("'", "\'", "$this->module/$item")."';",
95 95
 			'code'
Please login to merge, or discard this patch.
components/modules/HybridAuth/Social_integration.php 1 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   HybridAuth
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   HybridAuth
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\HybridAuth;
10 10
 use
11 11
 	cs\Cache,
Please login to merge, or discard this patch.
components/modules/OAuth2/OAuth2.php 1 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   OAuth2
4
- * @category  modules
5
- * @author    Nazar Mokrynskyi <[email protected]>
6
- * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi
7
- * @license   MIT License, see license.txt
8
- */
3
+	 * @package   OAuth2
4
+	 * @category  modules
5
+	 * @author    Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs;
10 10
 
11 11
 Event::instance()
Please login to merge, or discard this patch.
components/modules/WebSockets/Pool.php 1 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
- * @subpackage CleverStyle CMS We
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
+	 * @subpackage CleverStyle CMS We
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\Config,
Please login to merge, or discard this patch.
core/classes/Event.php 1 patch
Indentation   +9 added lines, -9 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) 2015-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) 2015-2016, Nazar Mokrynskyi
6
+	 * @license   MIT License, see license.txt
7
+	 */
8 8
 namespace cs;
9 9
 /**
10
- * Event class
11
- *
12
- * Provides events subscribing and dispatching
13
- */
10
+	 * Event class
11
+	 *
12
+	 * Provides events subscribing and dispatching
13
+	 */
14 14
 class Event {
15 15
 	use Singleton;
16 16
 	/**
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-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.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -1,43 +1,43 @@
 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
 /**
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,
Please login to merge, or discard this patch.
components/modules/Http_server/custom_loader.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   Http server
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   Http server
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
 /**
10
- * This is custom loader that includes basic files and defines constants,
11
- * but do not call any class to leave that all for Http server
12
- */
10
+	 * This is custom loader that includes basic files and defines constants,
11
+	 * but do not call any class to leave that all for Http server
12
+	 */
13 13
 namespace cs\modules\Http_server;
14 14
 use
15 15
 	cs\Core;
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@
 block discarded – undo
14 14
 use
15 15
 	cs\Core;
16 16
 
17
-require DIR.'/core/loader_base.php';             //Inclusion of loader base
17
+require DIR.'/core/loader_base.php'; //Inclusion of loader base
18 18
 @ini_set('error_log', LOGS.'/Http_server.log');
19
-require __DIR__.'/functions.php';                //Inclusion of functions needed for http server
19
+require __DIR__.'/functions.php'; //Inclusion of functions needed for http server
20 20
 \cs\Singleton\clean_classes_cache();
21
-require __DIR__.'/Request.php';                  //Inclusion of Request class, used for http server requests processing
22
-require __DIR__.'/Singleton.php';                //Inclusion of `Singleton` trait, specific for http server
23
-require __DIR__.'/User.php';                     //Inclusion of `cs\custom\User` class, which is used instead original `cs\User` for http server
21
+require __DIR__.'/Request.php'; //Inclusion of Request class, used for http server requests processing
22
+require __DIR__.'/Singleton.php'; //Inclusion of `Singleton` trait, specific for http server
23
+require __DIR__.'/User.php'; //Inclusion of `cs\custom\User` class, which is used instead original `cs\User` for http server
24 24
 /**
25 25
  * Including of custom files
26 26
  */
Please login to merge, or discard this patch.