Passed
Push — master ( c7e98d...e0d6a2 )
by Anton
04:56 queued 01:50
created
www/engine/System/Classes/Installer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,14 +14,14 @@
 block discarded – undo
14 14
 
15 15
 			if (null !== ($data = Schema::get('System')->load())) {
16 16
 
17
-				Request::redirect(INSTALL_PATH . '/index.php');
17
+				Request::redirect(INSTALL_PATH.'/index.php');
18 18
 			}
19 19
 
20 20
 			# Determine handler class
21 21
 
22 22
 			$checked = (Install::status() && Validate::boolean(Request::get('checked')));
23 23
 
24
-			$class = ('Modules\Install\Handler\\' . (!$checked ? 'Check' : 'Database'));
24
+			$class = ('Modules\Install\Handler\\'.(!$checked ? 'Check' : 'Database'));
25 25
 
26 26
 			# ------------------------
27 27
 
Please login to merge, or discard this patch.
www/engine/System/Exception.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,42 +4,42 @@
 block discarded – undo
4 4
 
5 5
 	# Captcha generate exception
6 6
 
7
-	class Captcha extends Exception  {
7
+	class Captcha extends Exception {
8 8
 
9 9
 		protected $message = 'Error generating captcha';
10 10
 	}
11 11
 
12 12
 	# Sitemap generate exception
13 13
 
14
-	class Sitemap extends Exception  {
14
+	class Sitemap extends Exception {
15 15
 
16 16
 		protected $message = 'Error generating sitemap';
17 17
 	}
18 18
 
19 19
 	# Language not found exception
20 20
 
21
-	class Language extends Exception  {
21
+	class Language extends Exception {
22 22
 
23 23
 		protected $message = 'Languages not found';
24 24
 	}
25 25
 
26 26
 	# Template not found exception
27 27
 
28
-	class Template extends Exception  {
28
+	class Template extends Exception {
29 29
 
30 30
 		protected $message = 'Templates not found';
31 31
 	}
32 32
 
33 33
 	# View not initialized exception
34 34
 
35
-	class View extends Exception  {
35
+	class View extends Exception {
36 36
 
37 37
 		protected $message = 'View is not initialized';
38 38
 	}
39 39
 
40 40
 	# View file not found exception
41 41
 
42
-	class ViewFile extends Exception  {
42
+	class ViewFile extends Exception {
43 43
 
44 44
 		protected $message = 'View file \'$value$\' not found';
45 45
 	}
Please login to merge, or discard this patch.
www/engine/System/Languages/en-US/Phrases/Admin.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,9 +65,9 @@
 block discarded – undo
65 65
 	'DASHBOARD_GROUP_DATABASE'                  => 'Database',
66 66
 
67 67
 	'DASHBOARD_MESSAGE_INSTALL_FILE'            => 'Installation file <a href="$install_path$/install.php" target="_blank">install.php</a> ' .
68
-	                                               'still exists in the root of your site. It\'s necessary to remove it.',
68
+												   'still exists in the root of your site. It\'s necessary to remove it.',
69 69
 	'DASHBOARD_MESSAGE_SETTINGS_FILE'           => 'It seems you have not yet edited site settings. ' .
70
-	                                               'Go to <a href="$install_path$/admin/system/settings">settings page</a> to provide actual data.',
70
+												   'Go to <a href="$install_path$/admin/system/settings">settings page</a> to provide actual data.',
71 71
 
72 72
 	# Pages
73 73
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,9 +64,9 @@
 block discarded – undo
64 64
 	'DASHBOARD_GROUP_GENERAL'                   => 'General',
65 65
 	'DASHBOARD_GROUP_DATABASE'                  => 'Database',
66 66
 
67
-	'DASHBOARD_MESSAGE_INSTALL_FILE'            => 'Installation file <a href="$install_path$/install.php" target="_blank">install.php</a> ' .
67
+	'DASHBOARD_MESSAGE_INSTALL_FILE'            => 'Installation file <a href="$install_path$/install.php" target="_blank">install.php</a> '.
68 68
 	                                               'still exists in the root of your site. It\'s necessary to remove it.',
69
-	'DASHBOARD_MESSAGE_SETTINGS_FILE'           => 'It seems you have not yet edited site settings. ' .
69
+	'DASHBOARD_MESSAGE_SETTINGS_FILE'           => 'It seems you have not yet edited site settings. '.
70 70
 	                                               'Go to <a href="$install_path$/admin/system/settings">settings page</a> to provide actual data.',
71 71
 
72 72
 	# Pages
Please login to merge, or discard this patch.
www/engine/Framework/Classes/Dataset/Dataset.php 1 patch
Braces   +28 added lines, -18 removed lines patch added patch discarded remove patch
@@ -34,7 +34,9 @@  discard block
 block discarded – undo
34 34
 
35 35
 		public function addParam(string $name, $default, callable $validator = null) : Dataset {
36 36
 
37
-			if ('' === $name) return $this;
37
+			if ('' === $name) {
38
+				return $this;
39
+			}
38 40
 
39 41
 			$this->data[$name] = $default; $this->defaults[$name] = $default;
40 42
 
@@ -53,7 +55,9 @@  discard block
 block discarded – undo
53 55
 
54 56
 		public function addParams(array $data) : Dataset {
55 57
 
56
-			foreach ($data as $name => $value) if (is_scalar($name)) $this->addParam($name, $value);
58
+			foreach ($data as $name => $value) {
59
+				if (is_scalar($name)) $this->addParam($name, $value);
60
+			}
57 61
 
58 62
 			return $this;
59 63
 		}
@@ -66,16 +70,16 @@  discard block
 block discarded – undo
66 70
 
67 71
 		public function set(string $name, $value) {
68 72
 
69
-			if (!isset($this->validators[$name])) return null;
73
+			if (!isset($this->validators[$name])) {
74
+				return null;
75
+			}
70 76
 
71 77
 			try {
72 78
 
73
-				if (null === ($value = $this->validators[$name]($value))) return false;
74
-
75
-				else { $this->data[$name] = $value; return true; }
76
-			}
77
-
78
-			catch (TypeError $e) { return false; }
79
+				if (null === ($value = $this->validators[$name]($value))) {
80
+					return false;
81
+				} else { $this->data[$name] = $value; return true; }
82
+			} catch (TypeError $e) { return false; }
79 83
 		}
80 84
 
81 85
 		/**
@@ -90,7 +94,9 @@  discard block
 block discarded – undo
90 94
 
91 95
 			foreach ($data as $name => $value) {
92 96
 
93
-				if (null !== ($value = $this->set($name, $value))) $setted[$name] = $value;
97
+				if (null !== ($value = $this->set($name, $value))) {
98
+					$setted[$name] = $value;
99
+				}
94 100
 			}
95 101
 
96 102
 			# ------------------------
@@ -106,16 +112,18 @@  discard block
 block discarded – undo
106 112
 
107 113
 		public function cast(string $name, $value) {
108 114
 
109
-			if (!isset($this->validators[$name])) return null;
115
+			if (!isset($this->validators[$name])) {
116
+				return null;
117
+			}
110 118
 
111 119
 			try {
112 120
 
113
-				if (null !== ($value = $this->validators[$name]($value))) return $value;
114
-
115
-				else return $this->data[$name];
116
-			}
117
-
118
-			catch (TypeError $e) { return $this->data[$name]; }
121
+				if (null !== ($value = $this->validators[$name]($value))) {
122
+					return $value;
123
+				} else {
124
+					return $this->data[$name];
125
+				}
126
+			} catch (TypeError $e) { return $this->data[$name]; }
119 127
 		}
120 128
 
121 129
 		/**
@@ -130,7 +138,9 @@  discard block
 block discarded – undo
130 138
 
131 139
 			foreach ($data as $name => $value) {
132 140
 
133
-				if (null !== ($value = $this->cast($name, $value))) $casted[$name] = $value;
141
+				if (null !== ($value = $this->cast($name, $value))) {
142
+					$casted[$name] = $value;
143
+				}
134 144
 			}
135 145
 
136 146
 			# ------------------------
Please login to merge, or discard this patch.
www/engine/System/Classes/Frames/Admin/Area/Install.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,9 @@
 block discarded – undo
12 12
 
13 13
 			# Handle request
14 14
 
15
-			if (Template::isBlock($result = $this->handle())) return $this->displayPage($result, STATUS_CODE_200);
15
+			if (Template::isBlock($result = $this->handle())) {
16
+				return $this->displayPage($result, STATUS_CODE_200);
17
+			}
16 18
 
17 19
 			# ------------------------
18 20
 
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Auth/Handler/Reset.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
 		protected function handle() {
14 14
 
15
-			if (Auth::initial()) Request::redirect(INSTALL_PATH . '/admin/register');
15
+			if (Auth::initial()) Request::redirect(INSTALL_PATH.'/admin/register');
16 16
 
17 17
 			return (new Auth\Action\Login)->handle();
18 18
 		}
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,9 @@
 block discarded – undo
12 12
 
13 13
 		protected function handle() {
14 14
 
15
-			if (Auth::initial()) Request::redirect(INSTALL_PATH . '/admin/register');
15
+			if (Auth::initial()) {
16
+				Request::redirect(INSTALL_PATH . '/admin/register');
17
+			}
16 18
 
17 19
 			return (new Auth\Action\Login)->handle();
18 20
 		}
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Auth/Handler/Recover.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
 		protected function handle() {
14 14
 
15
-			if (Auth::initial()) Request::redirect(INSTALL_PATH . '/admin/register');
15
+			if (Auth::initial()) Request::redirect(INSTALL_PATH.'/admin/register');
16 16
 
17 17
 			return (new Auth\Action\Login)->handle();
18 18
 		}
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,9 @@
 block discarded – undo
12 12
 
13 13
 		protected function handle() {
14 14
 
15
-			if (Auth::initial()) Request::redirect(INSTALL_PATH . '/admin/register');
15
+			if (Auth::initial()) {
16
+				Request::redirect(INSTALL_PATH . '/admin/register');
17
+			}
16 18
 
17 19
 			return (new Auth\Action\Login)->handle();
18 20
 		}
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Collection/Menuitems.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
 		protected function init() {
14 14
 
15
-			$this->config->addParam('active', '', function (bool $active) {
15
+			$this->config->addParam('active', '', function(bool $active) {
16 16
 
17 17
 				return ($active ? "ent.active = 1" : '');
18 18
 			});
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Handler/Edit/Menuitem.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
30 30
 
31 31
 		protected function processEntityParent(Template\Block $parent) {
32 32
 
33
-			if (0 !== $this->parent->id) $parent->getBlock('browse')->link = $this->parent->link;
34
-
35
-			else { $parent->getBlock('browse')->disable(); $parent->getBlock('browse_disabled')->enable(); }
33
+			if (0 !== $this->parent->id) {
34
+				$parent->getBlock('browse')->link = $this->parent->link;
35
+			} else { $parent->getBlock('browse')->disable(); $parent->getBlock('browse_disabled')->enable(); }
36 36
 		}
37 37
 
38 38
 		# Add item additional data
Please login to merge, or discard this patch.