Completed
Push — master ( 222de5...11cfe7 )
by Anton
03:45
created
www/engine/Framework/Classes/Template/Asset/Loop.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,9 @@
 block discarded – undo
37 37
 
38 38
 				$group->add($block = clone($this->block));
39 39
 
40
-				if (is_array($item)) foreach ($item as $name => $value) if (is_scalar($value)) $block->set($name, $value);
40
+				if (is_array($item)) {
41
+					foreach ($item as $name => $value) if (is_scalar($value)) $block->set($name, $value);
42
+				}
41 43
 			}
42 44
 
43 45
 			# ------------------------
Please login to merge, or discard this patch.
www/engine/Framework/Classes/Template/Asset/Group.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,9 @@
 block discarded – undo
23 23
 
24 24
 			$contents = '';
25 25
 
26
-			foreach ($this->items as $block) $contents .= $block->contents();
26
+			foreach ($this->items as $block) {
27
+				$contents .= $block->contents();
28
+			}
27 29
 
28 30
 			# ------------------------
29 31
 
Please login to merge, or discard this patch.
www/engine/Framework/Classes/Session/Session.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,9 @@  discard block
 block discarded – undo
8 8
 
9 9
 		public static function start(string $name, int $lifetime) {
10 10
 
11
-			if (session_id()) return true;
11
+			if (session_id()) {
12
+				return true;
13
+			}
12 14
 
13 15
 			ini_set('session.gc_maxlifetime', $lifetime);
14 16
 
@@ -46,14 +48,18 @@  discard block
 block discarded – undo
46 48
 
47 49
 		public static function set(string $name, $value) {
48 50
 
49
-			if (session_id()) $_SESSION[$name] = $value;
51
+			if (session_id()) {
52
+				$_SESSION[$name] = $value;
53
+			}
50 54
 		}
51 55
 
52 56
 		# Delete variable
53 57
 
54 58
 		public static function delete(string $name) {
55 59
 
56
-			if (session_id() && isset($_SESSION[$name])) unset($_SESSION[$name]);
60
+			if (session_id() && isset($_SESSION[$name])) {
61
+				unset($_SESSION[$name]);
62
+			}
57 63
 		}
58 64
 	}
59 65
 }
Please login to merge, or discard this patch.
www/engine/Framework/Classes/Cookie/Cookie.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,9 @@
 block discarded – undo
31 31
 
32 32
 		public static function delete(string $name) {
33 33
 
34
-			if (isset($_COOKIE[$name])) unset($_COOKIE[$name]);
34
+			if (isset($_COOKIE[$name])) {
35
+				unset($_COOKIE[$name]);
36
+			}
35 37
 		}
36 38
 	}
37 39
 }
Please login to merge, or discard this patch.
www/engine/Framework/Classes/Arr/Arr.php 1 patch
Braces   +20 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,7 +10,12 @@  discard block
 block discarded – undo
10 10
 
11 11
 			$value = false;
12 12
 
13
-			foreach ($path as $item) if (isset($array[$item])) $value = ($array = $array[$item]); else return false;
13
+			foreach ($path as $item) {
14
+				if (isset($array[$item])) $value = ($array = $array[$item]);
15
+			}
16
+			else {
17
+				return false;
18
+			}
14 19
 
15 20
 			# ------------------------
16 21
 
@@ -23,7 +28,9 @@  discard block
 block discarded – undo
23 28
 
24 29
 			$result = [];
25 30
 
26
-			foreach ($keys as $key) if (is_scalar($key)) $result[$key] = (isset($array[$key]) ? $array[$key] : false);
31
+			foreach ($keys as $key) {
32
+				if (is_scalar($key)) $result[$key] = (isset($array[$key]) ? $array[$key] : false);
33
+			}
27 34
 
28 35
 			# ------------------------
29 36
 
@@ -36,7 +43,9 @@  discard block
 block discarded – undo
36 43
 
37 44
 			$result = [];
38 45
 
39
-			foreach ($array as $key => $value) $result[] = [$key_name => $key, $value_name => $value];
46
+			foreach ($array as $key => $value) {
47
+				$result[] = [$key_name => $key, $value_name => $value];
48
+			}
40 49
 
41 50
 			# ------------------------
42 51
 
@@ -54,9 +63,15 @@  discard block
 block discarded – undo
54 63
 
55 64
 			$column = array_map($select_key, $array);
56 65
 
57
-			if (!$descending) asort($column); else arsort($column);
66
+			if (!$descending) {
67
+				asort($column);
68
+			} else {
69
+				arsort($column);
70
+			}
58 71
 
59
-			$result = []; foreach (array_keys($column) as $key) $result[$key] = $array[$key];
72
+			$result = []; foreach (array_keys($column) as $key) {
73
+				$result[$key] = $array[$key];
74
+			}
60 75
 
61 76
 			# ------------------------
62 77
 
Please login to merge, or discard this patch.
www/engine/Framework/Classes/Lister/Lister.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,9 @@
 block discarded – undo
10 10
 
11 11
 		protected static function init(string $file_name) {
12 12
 
13
-			if (is_array($list = Explorer::php($file_name))) static::$list = $list;
13
+			if (is_array($list = Explorer::php($file_name))) {
14
+				static::$list = $list;
15
+			}
14 16
 		}
15 17
 
16 18
 		# Check if item exists
Please login to merge, or discard this patch.
www/engine/Framework/Classes/Mime/Mime.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,9 @@
 block discarded – undo
10 10
 
11 11
 		private static function checkType(string $extension, string $type) {
12 12
 
13
-			if (false === ($mime = self::get($extension))) return false;
13
+			if (false === ($mime = self::get($extension))) {
14
+				return false;
15
+			}
14 16
 
15 17
 			return (preg_match('/^' . $type . '\//', $mime) ? true : false);
16 18
 		}
Please login to merge, or discard this patch.
www/engine/Framework/Classes/Image/Image.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,9 @@
 block discarded – undo
8 8
 
9 9
 		private static function output($image, string $mime, callable $outputter, array $params = []) {
10 10
 
11
-			if (!is_resource($image)) return false;
11
+			if (!is_resource($image)) {
12
+				return false;
13
+			}
12 14
 
13 15
 			Headers::nocache(); Headers::content($mime);
14 16
 
Please login to merge, or discard this patch.
www/engine/Framework/Includes/Headers/Status.php 1 patch
Spacing   +53 added lines, -53 removed lines patch added patch discarded remove patch
@@ -2,60 +2,60 @@
 block discarded – undo
2 2
 
3 3
 # Status codes
4 4
 
5
-define('STATUS_CODE_100',       '100');
6
-define('STATUS_CODE_101',       '101');
7
-define('STATUS_CODE_102',       '102');
5
+define('STATUS_CODE_100', '100');
6
+define('STATUS_CODE_101', '101');
7
+define('STATUS_CODE_102', '102');
8 8
 
9
-define('STATUS_CODE_200',       '200');
10
-define('STATUS_CODE_201',       '201');
11
-define('STATUS_CODE_202',       '202');
12
-define('STATUS_CODE_203',       '203');
13
-define('STATUS_CODE_204',       '204');
14
-define('STATUS_CODE_205',       '205');
15
-define('STATUS_CODE_206',       '206');
16
-define('STATUS_CODE_207',       '207');
17
-define('STATUS_CODE_226',       '226');
9
+define('STATUS_CODE_200', '200');
10
+define('STATUS_CODE_201', '201');
11
+define('STATUS_CODE_202', '202');
12
+define('STATUS_CODE_203', '203');
13
+define('STATUS_CODE_204', '204');
14
+define('STATUS_CODE_205', '205');
15
+define('STATUS_CODE_206', '206');
16
+define('STATUS_CODE_207', '207');
17
+define('STATUS_CODE_226', '226');
18 18
 
19
-define('STATUS_CODE_300',       '300');
20
-define('STATUS_CODE_301',       '301');
21
-define('STATUS_CODE_302',       '302');
22
-define('STATUS_CODE_303',       '303');
23
-define('STATUS_CODE_304',       '304');
24
-define('STATUS_CODE_305',       '305');
25
-define('STATUS_CODE_307',       '307');
19
+define('STATUS_CODE_300', '300');
20
+define('STATUS_CODE_301', '301');
21
+define('STATUS_CODE_302', '302');
22
+define('STATUS_CODE_303', '303');
23
+define('STATUS_CODE_304', '304');
24
+define('STATUS_CODE_305', '305');
25
+define('STATUS_CODE_307', '307');
26 26
 
27
-define('STATUS_CODE_400',       '400');
28
-define('STATUS_CODE_401',       '401');
29
-define('STATUS_CODE_402',       '402');
30
-define('STATUS_CODE_403',       '403');
31
-define('STATUS_CODE_404',       '404');
32
-define('STATUS_CODE_405',       '405');
33
-define('STATUS_CODE_406',       '406');
34
-define('STATUS_CODE_407',       '407');
35
-define('STATUS_CODE_408',       '408');
36
-define('STATUS_CODE_409',       '409');
37
-define('STATUS_CODE_410',       '410');
38
-define('STATUS_CODE_411',       '411');
39
-define('STATUS_CODE_412',       '412');
40
-define('STATUS_CODE_413',       '413');
41
-define('STATUS_CODE_414',       '414');
42
-define('STATUS_CODE_415',       '415');
43
-define('STATUS_CODE_416',       '416');
44
-define('STATUS_CODE_417',       '417');
45
-define('STATUS_CODE_422',       '422');
46
-define('STATUS_CODE_423',       '423');
47
-define('STATUS_CODE_424',       '424');
48
-define('STATUS_CODE_425',       '425');
49
-define('STATUS_CODE_426',       '426');
50
-define('STATUS_CODE_449',       '449');
27
+define('STATUS_CODE_400', '400');
28
+define('STATUS_CODE_401', '401');
29
+define('STATUS_CODE_402', '402');
30
+define('STATUS_CODE_403', '403');
31
+define('STATUS_CODE_404', '404');
32
+define('STATUS_CODE_405', '405');
33
+define('STATUS_CODE_406', '406');
34
+define('STATUS_CODE_407', '407');
35
+define('STATUS_CODE_408', '408');
36
+define('STATUS_CODE_409', '409');
37
+define('STATUS_CODE_410', '410');
38
+define('STATUS_CODE_411', '411');
39
+define('STATUS_CODE_412', '412');
40
+define('STATUS_CODE_413', '413');
41
+define('STATUS_CODE_414', '414');
42
+define('STATUS_CODE_415', '415');
43
+define('STATUS_CODE_416', '416');
44
+define('STATUS_CODE_417', '417');
45
+define('STATUS_CODE_422', '422');
46
+define('STATUS_CODE_423', '423');
47
+define('STATUS_CODE_424', '424');
48
+define('STATUS_CODE_425', '425');
49
+define('STATUS_CODE_426', '426');
50
+define('STATUS_CODE_449', '449');
51 51
 
52
-define('STATUS_CODE_500',       '500');
53
-define('STATUS_CODE_501',       '501');
54
-define('STATUS_CODE_502',       '502');
55
-define('STATUS_CODE_503',       '503');
56
-define('STATUS_CODE_504',       '504');
57
-define('STATUS_CODE_505',       '505');
58
-define('STATUS_CODE_506',       '506');
59
-define('STATUS_CODE_507',       '507');
60
-define('STATUS_CODE_509',       '509');
61
-define('STATUS_CODE_510',       '510');
52
+define('STATUS_CODE_500', '500');
53
+define('STATUS_CODE_501', '501');
54
+define('STATUS_CODE_502', '502');
55
+define('STATUS_CODE_503', '503');
56
+define('STATUS_CODE_504', '504');
57
+define('STATUS_CODE_505', '505');
58
+define('STATUS_CODE_506', '506');
59
+define('STATUS_CODE_507', '507');
60
+define('STATUS_CODE_509', '509');
61
+define('STATUS_CODE_510', '510');
Please login to merge, or discard this patch.