Completed
Push — master ( 12e933...84e3c1 )
by Nazar
04:35
created
components/modules/Disqus/events/enabled.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,18 +1,18 @@
 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-2015, 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-2015, Nazar Mokrynskyi
7
+	 * @license		MIT License, see license.txt
8
+	 */
9 9
 /**
10
- * Supports next events:
11
- *  Comments/instance
12
- *  [
13
- *   'Comments'		=> <i>&$Comments</i>
14
- *  ]
15
- */
10
+	 * Supports next events:
11
+	 *  Comments/instance
12
+	 *  [
13
+	 *   'Comments'		=> <i>&$Comments</i>
14
+	 *  ]
15
+	 */
16 16
 namespace	cs\modules\Disqus;
17 17
 use
18 18
 	cs\Event;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 Event::instance()->on(
20 20
 	'Comments/instance',
21 21
 	function ($data) {
22
-		$data['Comments']	= Disqus::instance();
22
+		$data['Comments'] = Disqus::instance();
23 23
 		return false;
24 24
 	}
25 25
 );
Please login to merge, or discard this patch.
components/modules/Feedback/index.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		Feedback
4
- * @category	modules
5
- * @author		Nazar Mokrynskyi <[email protected]>
6
- * @copyright	Copyright (c) 2011-2015, Nazar Mokrynskyi
7
- * @license		MIT License, see license.txt
8
- */
3
+	 * @package		Feedback
4
+	 * @category	modules
5
+	 * @author		Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright	Copyright (c) 2011-2015, Nazar Mokrynskyi
7
+	 * @license		MIT License, see license.txt
8
+	 */
9 9
 namespace	cs;
10 10
 use			h;
11 11
 $Index			= Index::instance();
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@
 block discarded – undo
8 8
  */
9 9
 namespace	cs;
10 10
 use			h;
11
-$Index			= Index::instance();
12
-$Index->form	= true;
13
-$Index->buttons	= false;
14
-$Config			= Config::instance();
15
-$L				= Language::instance();
11
+$Index = Index::instance();
12
+$Index->form = true;
13
+$Index->buttons = false;
14
+$Config = Config::instance();
15
+$L = Language::instance();
16 16
 $Page			= Page::instance();
17 17
 $User			= User::instance();
18 18
 $Page->css('components/modules/Feedback/includes/css/general.css');
Please login to merge, or discard this patch.
components/modules/Http_server/Config.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,18 +1,18 @@
 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, 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, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs\custom;
10 10
 use
11 11
 	cs\Config as Config_original,
12 12
 	cs\Event;
13 13
 /**
14
- * @inheritdoc
15
- */
14
+	 * @inheritdoc
15
+	 */
16 16
 class Config extends Config_original {
17 17
 	function reinit () {
18 18
 		Event::instance()->fire('System/Config/init/before');
Please login to merge, or discard this patch.
components/modules/Http_server/Request.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   Http server
4
- * @category  modules
5
- * @author    Nazar Mokrynskyi <[email protected]>
6
- * @copyright Copyright (c) 2015, 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, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs\modules\Http_server;
10 10
 use
11 11
 	cs\_SERVER,
Please login to merge, or discard this patch.
components/modules/Http_server/Singleton.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@
 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, 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, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs;
10 10
 use
11 11
 	cs\Singleton\Base;
12 12
 /**
13
- * @inheritdoc
14
- */
13
+	 * @inheritdoc
14
+	 */
15 15
 trait Singleton {
16 16
 	use Base;
17 17
 	/**
Please login to merge, or discard this patch.
components/modules/Http_server/Superglobals_wrapper.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   Http server
4
- * @category  modules
5
- * @author    Nazar Mokrynskyi <[email protected]>
6
- * @copyright Copyright (c) 2015, 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, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs\modules\Http_server;
10 10
 use
11 11
 	ArrayAccess,
Please login to merge, or discard this patch.
components/modules/Http_server/User.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@
 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, 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, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs\custom;
10 10
 use
11 11
 	cs\User as User_original;
12 12
 /**
13
- * @inheritdoc
14
- */
13
+	 * @inheritdoc
14
+	 */
15 15
 class User extends User_original {
16 16
 	function construct () {
17 17
 		$this->memory_cache = false;
Please login to merge, or discard this patch.
components/modules/Http_server/custom_loader.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@  discard block
 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, 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, 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
 require DIR.'/core/loader_base.php';             //Inclusion of loader base
15 15
 @ini_set('error_log', LOGS.'/Http_server.log');
@@ -20,8 +20,8 @@  discard block
 block discarded – undo
20 20
 require __DIR__.'/Config.php';                   //Inclusion of `cs\custom\Config` class, which is used instead original `cs\Config` for http server
21 21
 require __DIR__.'/User.php';                     //Inclusion of `cs\custom\User` class, which is used instead original `cs\User` for http server
22 22
 /**
23
- * Including of custom files
24
- */
23
+	 * Including of custom files
24
+	 */
25 25
 foreach (glob(CUSTOM.'/*.php') ?: [] as $custom) {
26 26
 	include $custom;
27 27
 }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,14 +11,14 @@
 block discarded – undo
11 11
  * but do not call any class to leave that all for Http server
12 12
  */
13 13
 namespace cs\modules\Http_server;
14
-require DIR.'/core/loader_base.php';             //Inclusion of loader base
14
+require DIR.'/core/loader_base.php'; //Inclusion of loader base
15 15
 @ini_set('error_log', LOGS.'/Http_server.log');
16
-require __DIR__.'/functions.php';                //Inclusion of functions needed for http server
16
+require __DIR__.'/functions.php'; //Inclusion of functions needed for http server
17 17
 \cs\Singleton\clean_classes_cache();
18
-require __DIR__.'/Request.php';                  //Inclusion of Request class, used for http server requests processing
19
-require __DIR__.'/Singleton.php';                //Inclusion of `Singleton` trait, specific for http server
20
-require __DIR__.'/Config.php';                   //Inclusion of `cs\custom\Config` class, which is used instead original `cs\Config` for http server
21
-require __DIR__.'/User.php';                     //Inclusion of `cs\custom\User` class, which is used instead original `cs\User` for http server
18
+require __DIR__.'/Request.php'; //Inclusion of Request class, used for http server requests processing
19
+require __DIR__.'/Singleton.php'; //Inclusion of `Singleton` trait, specific for http server
20
+require __DIR__.'/Config.php'; //Inclusion of `cs\custom\Config` class, which is used instead original `cs\Config` for http server
21
+require __DIR__.'/User.php'; //Inclusion of `cs\custom\User` class, which is used instead original `cs\User` for http server
22 22
 /**
23 23
  * Including of custom files
24 24
  */
Please login to merge, or discard this patch.
components/modules/Http_server/functions.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   Http server
4
- * @category  modules
5
- * @author    Nazar Mokrynskyi <[email protected]>
6
- * @copyright Copyright (c) 2015, 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, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace {
10 10
 	use
11 11
 		cs\Config,
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 	 *
43 43
 	 * @return object[]
44 44
 	 */
45
-	function &objects_pool ($request_id, $update_objects_pool = null) {
45
+	function &objects_pool($request_id, $update_objects_pool = null) {
46 46
 		static $objects_pool = [];
47 47
 		if (!isset($objects_pool[$request_id])) {
48 48
 			$objects_pool[$request_id] = [];
@@ -327,10 +327,10 @@  discard block
 block discarded – undo
327 327
 			 * Try to load classes from different places. If not found in one place - try in another.
328 328
 			 */
329 329
 			if (
330
-				_require_once($file = DIR."/core/classes/$namespace/$class_name.php", false) ||    //Core classes
330
+				_require_once($file = DIR."/core/classes/$namespace/$class_name.php", false) || //Core classes
331 331
 				_require_once($file = DIR."/core/thirdparty/$namespace/$class_name.php", false) || //Third party classes
332
-				_require_once($file = DIR."/core/traits/$namespace/$class_name.php", false) ||     //Core traits
333
-				_require_once($file = ENGINES."/$namespace/$class_name.php", false) ||             //Core engines
332
+				_require_once($file = DIR."/core/traits/$namespace/$class_name.php", false) || //Core traits
333
+				_require_once($file = ENGINES."/$namespace/$class_name.php", false) || //Core engines
334 334
 				_require_once($file = MODULES."/../$namespace/$class_name.php", false)             //Classes in modules and plugins
335 335
 			) {
336 336
 				$cache[$class] = realpath($file);
Please login to merge, or discard this patch.