Completed
Push — master ( de9719...2f353a )
by Nazar
04:32
created
index.php 2 patches
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -1,35 +1,35 @@
 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
- * Requirements:
10
- * * Apache2
11
- *  Apache2 modules MUST be enabled:
12
- *  * rewrite
13
- *  * headers
14
- *  Optional Apache2 modules:
15
- *  * expires
16
- * * or Nginx
17
- * * PHP 5.5+
18
- *  PHP libraries MUST be present:
19
- *  * cURL
20
- *  Optional PHP libraries:
21
- *  * APCu, Memcached
22
- * * or HHVM 3.3.2+ LTS or HHVM 3.4.1+
23
- * * MySQL 5.5+
24
- * * or MariaDB 5.5+
25
- */
9
+	 * Requirements:
10
+	 * * Apache2
11
+	 *  Apache2 modules MUST be enabled:
12
+	 *  * rewrite
13
+	 *  * headers
14
+	 *  Optional Apache2 modules:
15
+	 *  * expires
16
+	 * * or Nginx
17
+	 * * PHP 5.5+
18
+	 *  PHP libraries MUST be present:
19
+	 *  * cURL
20
+	 *  Optional PHP libraries:
21
+	 *  * APCu, Memcached
22
+	 * * or HHVM 3.3.2+ LTS or HHVM 3.4.1+
23
+	 * * MySQL 5.5+
24
+	 * * or MariaDB 5.5+
25
+	 */
26 26
 if (version_compare(PHP_VERSION, '5.5', '<')) {
27 27
 	echo 'CleverStyle CMS require PHP 5.5 or higher';
28 28
 	return;
29 29
 }
30 30
 /**
31
- * Time of start of execution, is used as current time
32
- */
31
+	 * Time of start of execution, is used as current time
32
+	 */
33 33
 define('MICROTIME', microtime(true)); //Time in seconds (float)
34 34
 define('TIME', floor(MICROTIME));     //Time in seconds (integer)
35 35
 define('DIR', __DIR__);               //Root directory
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
  * Time of start of execution, is used as current time
32 32
  */
33 33
 define('MICROTIME', microtime(true)); //Time in seconds (float)
34
-define('TIME', floor(MICROTIME));     //Time in seconds (integer)
35
-define('DIR', __DIR__);               //Root directory
34
+define('TIME', floor(MICROTIME)); //Time in seconds (integer)
35
+define('DIR', __DIR__); //Root directory
36 36
 chdir(DIR);
37
-require_once DIR.'/core/loader.php';  //Loader starting
37
+require_once DIR.'/core/loader.php'; //Loader starting
Please login to merge, or discard this patch.
install.php 2 patches
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-2015, 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-2015, Nazar Mokrynskyi
7
+	 * @license        MIT License, see license.txt
8
+	 */
9 9
 if (version_compare(PHP_VERSION, '5.5', '<')) {
10 10
 	echo 'CleverStyle CMS require PHP 5.5 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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 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
 require DIR.'/fs/'.$fs['core/thirdparty/upf.php'];
26 26
 require DIR.'/fs/'.$fs['core/functions.php'];
Please login to merge, or discard this patch.
install/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    CleverStyle CMS
4
- * @subpackage Installer
5
- * @author     Nazar Mokrynskyi <[email protected]>
6
- * @copyright  Copyright (c) 2011-2015, 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-2015, Nazar Mokrynskyi
7
+	 * @license    MIT License, see license.txt
8
+	 */
9 9
 function install_form () {
10 10
 	$timezones = get_timezones_list();
11 11
 	return h::{'form[method=post]'}(
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
 		$url = $_POST['site_url'];
145 145
 	} else {
146 146
 		$url = "$_SERVER->protocol://$_SERVER->host$_SERVER->request_uri";
147
-		$url = implode('/', array_slice(explode('/', $url), 0, -2));    //Remove 2 last items
147
+		$url = implode('/', array_slice(explode('/', $url), 0, -2)); //Remove 2 last items
148 148
 	}
149 149
 	preg_match('#//([^/]+)#', $url, $domain);
150 150
 	$domain = $domain[1];
Please login to merge, or discard this patch.
service_scripts/make_css_shadow_dom_ready.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 Service scripts
5
- * @author     Nazar Mokrynskyi <[email protected]>
6
- * @copyright  Copyright (c) 2014-2015, Nazar Mokrynskyi
7
- * @license    MIT License, see license.txt
8
- */
3
+	 * @package    CleverStyle CMS
4
+	 * @subpackage Service scripts
5
+	 * @author     Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright  Copyright (c) 2014-2015, Nazar Mokrynskyi
7
+	 * @license    MIT License, see license.txt
8
+	 */
9 9
 if ($argc < 2) {
10 10
 	echo 'Converts any CSS file into CSS that works inside Shadow DOM (native support of polyfill needed after conversion).\nUsage: php make_css_shadow_dom_ready.php source.css[ destination.css]';
11 11
 	return;
Please login to merge, or discard this patch.
themes/CleverStyle/prepare.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,5 +11,5 @@
 block discarded – undo
11 11
  * @var _SERVER $_SERVER
12 12
  */
13 13
 if (preg_match('/msie|trident/i', $_SERVER->user_agent)) {
14
-	Page::instance()->Head	.= '<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">';
14
+	Page::instance()->Head .= '<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">';
15 15
 }
Please login to merge, or discard this patch.
themes/DarkEnergy/prepare.php 2 patches
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
- * @subpackage	DarkEnergy theme
5
- * @author		Nazar Mokrynskyi <[email protected]>
6
- * @copyright	Copyright (c) 2014-2015, 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-2015, Nazar Mokrynskyi
7
+	 * @license		MIT License, see license.txt
8
+	 */
9 9
 namespace	cs;
10 10
 $Page	= Page::instance();
11 11
 /**
12
- * @var _SERVER $_SERVER
13
- */
12
+	 * @var _SERVER $_SERVER
13
+	 */
14 14
 if (preg_match('/msie|trident/i', $_SERVER->user_agent)) {
15 15
 	Page::instance()->Head	.= '<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">';
16 16
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,11 +7,11 @@
 block discarded – undo
7 7
  * @license		MIT License, see license.txt
8 8
  */
9 9
 namespace	cs;
10
-$Page	= Page::instance();
10
+$Page = Page::instance();
11 11
 /**
12 12
  * @var _SERVER $_SERVER
13 13
  */
14 14
 if (preg_match('/msie|trident/i', $_SERVER->user_agent)) {
15
-	Page::instance()->Head	.= '<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">';
15
+	Page::instance()->Head .= '<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">';
16 16
 }
17
-$Page->Head	.= '<meta name="viewport" content="width=device-width">';
17
+$Page->Head .= '<meta name="viewport" content="width=device-width">';
Please login to merge, or discard this patch.
upload_build.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package    CleverStyle CMS
4
- * @subpackage Builder
5
- * @author     Nazar Mokrynskyi <[email protected]>
6
- * @copyright  Copyright (c) 2011-2015, Nazar Mokrynskyi
7
- * @license    MIT License, see license.txt
8
- */
3
+	 * @package    CleverStyle CMS
4
+	 * @subpackage Builder
5
+	 * @author     Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright  Copyright (c) 2011-2015, Nazar Mokrynskyi
7
+	 * @license    MIT License, see license.txt
8
+	 */
9 9
 if (substr(PHP_VERSION, 0, 3) !== '5.6') {
10 10
 	echo "Distributive is uploaded only under PHP 5.6\n";
11 11
 	return;
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
 	]
24 24
 );
25 25
 /**
26
- * Check whether commit is tagged - if so - we are dealing with release
27
- */
26
+	 * Check whether commit is tagged - if so - we are dealing with release
27
+	 */
28 28
 $tag = exec('git describe --tags --exact-match HEAD 2>/dev/null');
29 29
 if (!$on_master && !$tag) {
30 30
 	echo "Distributive is uploaded only when on master branch or releases\n";
Please login to merge, or discard this patch.
components/modules/Blockchain_payment/admin/general.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   Blockchain payment
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   Blockchain payment
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\Blockchain_payment;
10 10
 use
11 11
 	h,
Please login to merge, or discard this patch.
components/modules/Blockchain_payment/api/index.get.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   Blockchain payment
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   Blockchain payment
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\Blockchain_payment;
10 10
 use
11 11
 	h,
Please login to merge, or discard this patch.