Completed
Push — master ( 984b71...4d704e )
by Nazar
04:12
created
core/traits/Request/Query.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) 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) 2016, Nazar Mokrynskyi
6
+	 * @license   MIT License, see license.txt
7
+	 */
8 8
 namespace cs\DB;
9 9
 class SQLite extends _Abstract {
10 10
 	/**
Please login to merge, or discard this patch.
core/traits/Request/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) 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) 2016, Nazar Mokrynskyi
6
+	 * @license   MIT License, see license.txt
7
+	 */
8 8
 namespace cs\DB;
9 9
 class SQLite extends _Abstract {
10 10
 	/**
Please login to merge, or discard this patch.
core/classes/Response.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) 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) 2016, Nazar Mokrynskyi
6
+	 * @license   MIT License, see license.txt
7
+	 */
8 8
 namespace cs\DB;
9 9
 class SQLite extends _Abstract {
10 10
 	/**
Please login to merge, or discard this patch.
components/modules/Service_worker_cache/events.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   Service worker cache
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   Service worker cache
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;
10 10
 Event::instance()->on(
11 11
 	'System/Page/display/before',
Please login to merge, or discard this patch.
install.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 	define('DIR', __DIR__);
21 21
 }
22 22
 mb_internal_encoding('utf-8');
23
-define('ROOT', getcwd());    //Path to site root
23
+define('ROOT', getcwd()); //Path to site root
24 24
 $fs = json_decode(file_get_contents(DIR.'/fs.json'), true);
25 25
 /**
26 26
  * Special autoloader for installer
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
 		 * Try to load classes from different places. If not found in one place - try in another.
39 39
 		 */
40 40
 		if (
41
-			strlen($file = @$fs[str_replace('//', '/', "core/classes/$namespace/$class_name.php")]) ||    //Core classes
41
+			strlen($file = @$fs[str_replace('//', '/', "core/classes/$namespace/$class_name.php")]) || //Core classes
42 42
 			strlen($file = @$fs[str_replace('//', '/', "core/thirdparty/$namespace/$class_name.php")]) || //Third party classes
43
-			strlen($file = @$fs[str_replace('//', '/', "core/traits/$namespace/$class_name.php")]) ||     //Core traits
44
-			strlen($file = @$fs[str_replace('//', '/', "core/engines/$namespace/$class_name.php")]) ||    //Core engines
43
+			strlen($file = @$fs[str_replace('//', '/', "core/traits/$namespace/$class_name.php")]) || //Core traits
44
+			strlen($file = @$fs[str_replace('//', '/', "core/engines/$namespace/$class_name.php")]) || //Core engines
45 45
 			strlen($file = @$fs[str_replace('//', '/', "components/$namespace/$class_name.php")])         //Classes in modules and plugins
46 46
 		) {
47 47
 			require_once DIR."/fs/$file";
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 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
- * @subpackage Installer
5
- * @author     Nazar Mokrynskyi <[email protected]>
6
- * @copyright  Copyright (c) 2011-2016, Nazar Mokrynskyi
7
- * @license    MIT License, see license.txt
8
- */
3
+	 * @package    CleverStyle CMS
4
+	 * @subpackage Installer
5
+	 * @author     Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright  Copyright (c) 2011-2016, Nazar Mokrynskyi
7
+	 * @license    MIT License, see license.txt
8
+	 */
9 9
 if (version_compare(PHP_VERSION, '5.6', '<')) {
10 10
 	echo 'CleverStyle CMS require PHP 5.6 or higher';
11 11
 	return;
12 12
 }
13 13
 $cli = PHP_SAPI == 'cli';
14 14
 /**
15
- * Path to installer dir
16
- */
15
+	 * Path to installer dir
16
+	 */
17 17
 if ($cli) {
18 18
 	define('DIR', 'phar://cleverstyle_cms.phar');
19 19
 } else {
Please login to merge, or discard this patch.
themes/DarkEnergy/prepare.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    CleverStyle CMS
4
- * @subpackage DarkEnergy theme
5
- * @author     Nazar Mokrynskyi <[email protected]>
6
- * @copyright  Copyright (c) 2014-2016, Nazar Mokrynskyi
7
- * @license    MIT License, see license.txt
8
- */
3
+	 * @package    CleverStyle CMS
4
+	 * @subpackage DarkEnergy theme
5
+	 * @author     Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright  Copyright (c) 2014-2016, Nazar Mokrynskyi
7
+	 * @license    MIT License, see license.txt
8
+	 */
9 9
 namespace cs;
10 10
 $Page = Page::instance();
11 11
 if (preg_match('/msie|trident/i', Request::instance()->user_agent)) {
Please login to merge, or discard this patch.
core/classes/Menu.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-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) 2014-2016, 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/Core.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/traits/Request/Route.php 3 patches
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-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
 use
10 10
 	ArrayAccess,
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
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 			 * If match was not found - mirror is not allowed!
109 109
 			 */
110 110
 			if ($this->mirror_index === -1) {
111
-				throw new ExitException("Mirror $this->host not allowed", 400);
111
+				throw new ExitException("mirror $this->host not allowed", 400);
112 112
 			}
113 113
 			$results = $this->analyze_route_path($this->path);
114 114
 			$this->handle_redirect($Config, $results['path_normalized']);
Please login to merge, or discard this patch.