Completed
Push — master ( 8e013f...5c10bd )
by Anton
03:39
created
www/engine/Framework/Engine.php 1 patch
Braces   +23 added lines, -9 removed lines patch added patch discarded remove patch
@@ -8,17 +8,29 @@  discard block
 block discarded – undo
8 8
 
9 9
 		public static function ip() {
10 10
 
11
-			if (!empty(getenv('HTTP_CLIENT_IP')))           return getenv('HTTP_CLIENT_IP');
11
+			if (!empty(getenv('HTTP_CLIENT_IP'))) {
12
+				return getenv('HTTP_CLIENT_IP');
13
+			}
12 14
 
13
-			if (!empty(getenv('HTTP_X_FORWARDED_FOR')))     return getenv('HTTP_X_FORWARDED_FOR');
15
+			if (!empty(getenv('HTTP_X_FORWARDED_FOR'))) {
16
+				return getenv('HTTP_X_FORWARDED_FOR');
17
+			}
14 18
 
15
-			if (!empty(getenv('HTTP_X_FORWARDED')))         return getenv('HTTP_X_FORWARDED');
19
+			if (!empty(getenv('HTTP_X_FORWARDED'))) {
20
+				return getenv('HTTP_X_FORWARDED');
21
+			}
16 22
 
17
-			if (!empty(getenv('HTTP_FORWARDED_FOR')))       return getenv('HTTP_FORWARDED_FOR');
23
+			if (!empty(getenv('HTTP_FORWARDED_FOR'))) {
24
+				return getenv('HTTP_FORWARDED_FOR');
25
+			}
18 26
 
19
-			if (!empty(getenv('HTTP_FORWARDED')))           return getenv('HTTP_FORWARDED');
27
+			if (!empty(getenv('HTTP_FORWARDED'))) {
28
+				return getenv('HTTP_FORWARDED');
29
+			}
20 30
 
21
-			if (!empty(getenv('REMOTE_ADDR')))              return getenv('REMOTE_ADDR');
31
+			if (!empty(getenv('REMOTE_ADDR'))) {
32
+				return getenv('REMOTE_ADDR');
33
+			}
22 34
 
23 35
 			# ------------------------
24 36
 
@@ -50,9 +62,11 @@  discard block
 block discarded – undo
50 62
 
51 63
 			$file_name = (DIR_TEMPLATES . 'Exception.tpl');
52 64
 
53
-			if (false === ($contents = @file_get_contents($file_name))) $output = nl2br($exc);
54
-
55
-			else $output = $parse_contents($contents);
65
+			if (false === ($contents = @file_get_contents($file_name))) {
66
+				$output = nl2br($exc);
67
+			} else {
68
+				$output = $parse_contents($contents);
69
+			}
56 70
 
57 71
 			# Set headers
58 72
 
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Form/Menuitem.php 1 patch
Unused Use Statements   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace System\Modules\Entitizer\Form {
4 4
 
5
-	use System\Modules\Entitizer, System\Utils\Form, System\Utils\Lister;
5
+	use System\Modules\Entitizer;
6
+	use System\Utils\Form;
7
+	use System\Utils\Lister;
6 8
 
7 9
 	class Page extends Form {
8 10
 
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Form/Variable.php 1 patch
Unused Use Statements   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace System\Modules\Entitizer\Form {
4 4
 
5
-	use System\Modules\Entitizer, System\Utils\Form;
5
+	use System\Modules\Entitizer;
6
+	use System\Utils\Form;
6 7
 
7 8
 	class Widget extends Form {
8 9
 
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Listview/Menuitems.php 2 patches
Unused Use Statements   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace System\Modules\Entitizer\Listview {
4 4
 
5
-	use System\Modules\Entitizer, Template;
5
+	use System\Modules\Entitizer;
6
+	use Template;
6 7
 
7 8
 	class Variables extends Entitizer\Utils\Listview {
8 9
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,9 @@
 block discarded – undo
34 34
 
35 35
 				$contents->block('parent')->block('browse')->disable();
36 36
 
37
-			} else $contents->block('parent')->block('browse')->link = $this->parent->link;
37
+			} else {
38
+				$contents->block('parent')->block('browse')->link = $this->parent->link;
39
+			}
38 40
 		}
39 41
 
40 42
 		# Add item additional data
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Definition.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,9 @@
 block discarded – undo
29 29
 
30 30
 		public static function get(string $type, int $id = 0) {
31 31
 
32
-			if (!isset(self::$classes[$type])) throw new Exception\General(self::$error_message);
32
+			if (!isset(self::$classes[$type])) {
33
+				throw new Exception\General(self::$error_message);
34
+			}
33 35
 
34 36
 			$cached = isset(self::$cache[$type][$id]);
35 37
 
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Definition/User/Secret.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@
 block discarded – undo
14 14
 
15 15
 			# Add params
16 16
 
17
-			$this->addTextual       ('code',            true, 40, true, true, true);
18
-			$this->addTextual       ('ip',              true, 255, false, true, false);
19
-			$this->addInteger       ('time',            false, 10, 0, true, false);
17
+			$this->addTextual('code', true, 40, true, true, true);
18
+			$this->addTextual('ip', true, 255, false, true, false);
19
+			$this->addInteger('time', false, 10, 0, true, false);
20 20
 		}
21 21
 	}
22 22
 }
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Handler/Menuitem.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,9 @@
 block discarded – undo
34 34
 
35 35
 				$contents->block('parent')->block('browse')->disable();
36 36
 
37
-			} else $contents->block('parent')->block('browse')->link = $this->parent->link;
37
+			} else {
38
+				$contents->block('parent')->block('browse')->link = $this->parent->link;
39
+			}
38 40
 		}
39 41
 
40 42
 		# Add item additional data
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Handler/Page.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,9 @@
 block discarded – undo
34 34
 
35 35
 				$contents->block('parent')->block('browse')->disable();
36 36
 
37
-			} else $contents->block('parent')->block('browse')->link = $this->parent->link;
37
+			} else {
38
+				$contents->block('parent')->block('browse')->link = $this->parent->link;
39
+			}
38 40
 		}
39 41
 
40 42
 		# Add item additional data
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Utils/Param/Type/Boolean.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,9 @@
 block discarded – undo
16 16
 
17 17
 			# Set field configuration
18 18
 
19
-			foreach (get_defined_vars() as $name => $value) $this->$name = $value;
19
+			foreach (get_defined_vars() as $name => $value) {
20
+				$this->$name = $value;
21
+			}
20 22
 		}
21 23
 
22 24
 		# Get field statement
Please login to merge, or discard this patch.