Passed
Pull Request — master (#16)
by Anton
03:08
created
www/engine/System/Classes/Modules/Filemanager/Utils/Container.php 2 patches
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,9 @@  discard block
 block discarded – undo
16 16
 
17 17
 			$path = implode('/', $scheme); $path_full = (DIR_UPLOADS . (('' !== $path) ? ($path . '/') : ''));
18 18
 
19
-			if (!Explorer::isDir($path_full)) return;
19
+			if (!Explorer::isDir($path_full)) {
20
+				return;
21
+			}
20 22
 
21 23
 			$this->scheme = $scheme; $this->path = $path; $this->path_full = $path_full;
22 24
 		}
@@ -27,9 +29,12 @@  discard block
 block discarded – undo
27 29
 
28 30
 			$scheme = []; $breadcrumbs = [];
29 31
 
30
-			if ([] !== $this->scheme) foreach ($this->scheme as $name) {
32
+			if ([] !== $this->scheme) {
33
+				foreach ($this->scheme as $name) {
31 34
 
32
-				$scheme[] = $name; $breadcrumbs[] = ['path' => implode('/', $scheme), 'name' => $name];
35
+				$scheme[] = $name;
36
+			}
37
+			$breadcrumbs[] = ['path' => implode('/', $scheme), 'name' => $name];
33 38
 			}
34 39
 
35 40
 			# ------------------------
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 
15 15
 			$scheme = array_diff(preg_split('/[\/\\\\]+/', $path, -1, PREG_SPLIT_NO_EMPTY), ['.', '..']);
16 16
 
17
-			$path = implode('/', $scheme); $path_full = (DIR_UPLOADS . (('' !== $path) ? ($path . '/') : ''));
17
+			$path = implode('/', $scheme); $path_full = (DIR_UPLOADS.(('' !== $path) ? ($path.'/') : ''));
18 18
 
19 19
 			if (!Explorer::isDir($path_full)) return;
20 20
 
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Filemanager/Utils/Entity.php 2 patches
Braces   +36 added lines, -12 removed lines patch added patch discarded remove patch
@@ -12,7 +12,9 @@  discard block
 block discarded – undo
12 12
 
13 13
 		private function getPrototype(string $name) {
14 14
 
15
-			if (preg_match('/[\/\\\\]/', $name)) return false;
15
+			if (preg_match('/[\/\\\\]/', $name)) {
16
+				return false;
17
+			}
16 18
 
17 19
 			$path = (($this->parent->path() ? ($this->parent->path() . '/') : '') . $name);
18 20
 
@@ -34,11 +36,17 @@  discard block
 block discarded – undo
34 36
 
35 37
 		public function init(string $name) {
36 38
 
37
-			if (false === ($prototype = $this->getPrototype($name))) return false;
39
+			if (false === ($prototype = $this->getPrototype($name))) {
40
+				return false;
41
+			}
38 42
 
39
-			if (!Explorer::{static::$checker}($prototype['path_full'])) return false;
43
+			if (!Explorer::{static::$checker}($prototype['path_full'])) {
44
+				return false;
45
+			}
40 46
 
41
-			foreach ($prototype as $var => $value) $this->$var = $value;
47
+			foreach ($prototype as $var => $value) {
48
+				$this->$var = $value;
49
+			}
42 50
 
43 51
 			# ------------------------
44 52
 
@@ -49,11 +57,17 @@  discard block
 block discarded – undo
49 57
 
50 58
 		public function create(string $name) {
51 59
 
52
-			if (('' !== $this->name) || (false === ($prototype = $this->getPrototype($name)))) return false;
60
+			if (('' !== $this->name) || (false === ($prototype = $this->getPrototype($name)))) {
61
+				return false;
62
+			}
53 63
 
54
-			if (!Explorer::{static::$creator}($prototype['path_full'])) return false;
64
+			if (!Explorer::{static::$creator}($prototype['path_full'])) {
65
+				return false;
66
+			}
55 67
 
56
-			foreach ($prototype as $var => $value) $this->$var = $value;
68
+			foreach ($prototype as $var => $value) {
69
+				$this->$var = $value;
70
+			}
57 71
 
58 72
 			# ------------------------
59 73
 
@@ -64,11 +78,17 @@  discard block
 block discarded – undo
64 78
 
65 79
 		public function rename(string $name) {
66 80
 
67
-			if (('' === $this->name) || (false === ($prototype = $this->getPrototype($name)))) return false;
81
+			if (('' === $this->name) || (false === ($prototype = $this->getPrototype($name)))) {
82
+				return false;
83
+			}
68 84
 
69
-			if (!@rename($this->path_full, $prototype['path_full'])) return false;
85
+			if (!@rename($this->path_full, $prototype['path_full'])) {
86
+				return false;
87
+			}
70 88
 
71
-			foreach ($prototype as $var => $value) $this->$var = $value;
89
+			foreach ($prototype as $var => $value) {
90
+				$this->$var = $value;
91
+			}
72 92
 
73 93
 			# ------------------------
74 94
 
@@ -79,9 +99,13 @@  discard block
 block discarded – undo
79 99
 
80 100
 		public function remove() {
81 101
 
82
-			if ('' === $this->name) return false;
102
+			if ('' === $this->name) {
103
+				return false;
104
+			}
83 105
 
84
-			if (!Explorer::{static::$remover}($this->path_full, true)) return false;
106
+			if (!Explorer::{static::$remover}($this->path_full, true)) {
107
+				return false;
108
+			}
85 109
 
86 110
 			$this->name = ''; $this->path = ''; $this->path_full = '';
87 111
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@
 block discarded – undo
14 14
 
15 15
 			if (preg_match('/[\/\\\\]/', $name)) return false;
16 16
 
17
-			$path = (($this->parent->path() ? ($this->parent->path() . '/') : '') . $name);
17
+			$path = (($this->parent->path() ? ($this->parent->path().'/') : '').$name);
18 18
 
19
-			$path_full = ($this->parent->pathFull() . $name);
19
+			$path_full = ($this->parent->pathFull().$name);
20 20
 
21 21
 			# ------------------------
22 22
 
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Controller/Menuitem.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,9 @@
 block discarded – undo
39 39
 
40 40
 			$modifier = ((0 === $this->menuitem->id) ? 'create' : 'edit');
41 41
 
42
-			if (!$this->menuitem->$modifier($data)) return 'MENUITEM_ERROR_MODIFY';
42
+			if (!$this->menuitem->$modifier($data)) {
43
+				return 'MENUITEM_ERROR_MODIFY';
44
+			}
43 45
 
44 46
 			# ------------------------
45 47
 
Please login to merge, or discard this patch.
www/engine/System/Languages/uk-UA/Phrases/Install.php 2 patches
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -58,43 +58,43 @@
 block discarded – undo
58 58
 	'INSTALL_PAGE_INDEX_TITLE'                  => 'Головна',
59 59
 
60 60
 	'INSTALL_PAGE_INDEX_CONTENTS'               => '<h2>Ласкаво просимо!</h2>' .
61
-	                                               '<p>Це демонстраційний сайт, що працює на <strong>Cadmium CMS</strong>.</p>' .
62
-	                                               '<p>Ви можете увійти в панель керування, перейшовши за <a href="$install_path$/admin">цим посиланням</a>.</p>' .
63
-	                                               '<h2>Дивіться також</h2>' .
64
-	                                               '<ul><li><a href="http://cadmium-cms.com" target="_blank">Офіційний сайт</a></li>' .
65
-	                                               '<li><a href="https://github.com/cadmium-org/cadmium-cms" target="_blank">Сторінка проекту на GitHub</a></li></ul>',
61
+												   '<p>Це демонстраційний сайт, що працює на <strong>Cadmium CMS</strong>.</p>' .
62
+												   '<p>Ви можете увійти в панель керування, перейшовши за <a href="$install_path$/admin">цим посиланням</a>.</p>' .
63
+												   '<h2>Дивіться також</h2>' .
64
+												   '<ul><li><a href="http://cadmium-cms.com" target="_blank">Офіційний сайт</a></li>' .
65
+												   '<li><a href="https://github.com/cadmium-org/cadmium-cms" target="_blank">Сторінка проекту на GitHub</a></li></ul>',
66 66
 
67 67
 	'INSTALL_PAGE_DEMO_TITLE'                   => 'Сторінка',
68 68
 
69 69
 	'INSTALL_PAGE_DEMO_CONTENTS'                => '<h2>Lorem ipsum</h2>' .
70 70
 
71
-	                                               '<p>Lorem ipsum dolor sit amet, ex etiam facilis vim. ' .
72
-	                                               'Qui etiam soluta nostro no, te praesent consulatu eos. ' .
73
-	                                               'His at modus diceret referrentur, exerci viderer aperiri et sed. ' .
74
-	                                               'Ne errem appareat apeirian has, ut has eligendi comprehensam. ' .
75
-	                                               'His ea adipisci eloquentiam, nec id temporibus appellantur. ' .
76
-	                                               'Pri ut inermis persequeris contentiones, vel vidit ponderum cu.</p>' .
71
+												   '<p>Lorem ipsum dolor sit amet, ex etiam facilis vim. ' .
72
+												   'Qui etiam soluta nostro no, te praesent consulatu eos. ' .
73
+												   'His at modus diceret referrentur, exerci viderer aperiri et sed. ' .
74
+												   'Ne errem appareat apeirian has, ut has eligendi comprehensam. ' .
75
+												   'His ea adipisci eloquentiam, nec id temporibus appellantur. ' .
76
+												   'Pri ut inermis persequeris contentiones, vel vidit ponderum cu.</p>' .
77 77
 
78
-	                                               '<h3>Vix no suas populo</h3>' .
78
+												   '<h3>Vix no suas populo</h3>' .
79 79
 
80
-	                                               '<p>Vix no suas populo. Mea inani utinam ex. Duo vocibus noluisse partiendo ei. ' .
81
-	                                               'Impedit voluptatibus pro ut, ea probatus reformidans pri. ' .
82
-	                                               'An vix repudiandae complectitur, ex soluta numquam splendide nam.</p>' .
80
+												   '<p>Vix no suas populo. Mea inani utinam ex. Duo vocibus noluisse partiendo ei. ' .
81
+												   'Impedit voluptatibus pro ut, ea probatus reformidans pri. ' .
82
+												   'An vix repudiandae complectitur, ex soluta numquam splendide nam.</p>' .
83 83
 
84
-	                                               '<p>Mea ex novum contentiones, eleifend ocurreret voluptaria et usu. ' .
85
-	                                               'No mel illum nonumy maiorum, pro saperet disputando in. Cum ei tritani accusam incorrupte. ' .
86
-	                                               'Per animal saperet suavitate id, vim ex quod delicatissimi.</p>' .
84
+												   '<p>Mea ex novum contentiones, eleifend ocurreret voluptaria et usu. ' .
85
+												   'No mel illum nonumy maiorum, pro saperet disputando in. Cum ei tritani accusam incorrupte. ' .
86
+												   'Per animal saperet suavitate id, vim ex quod delicatissimi.</p>' .
87 87
 
88
-	                                               '<h3>Ea mea tantas delenit</h3>' .
88
+												   '<h3>Ea mea tantas delenit</h3>' .
89 89
 
90
-	                                               '<p>Ea mea tantas delenit, ut usu alii commune. ' .
91
-	                                               'Te vix decore dolore scribentur. Ad pri malis invidunt ullamcorper, ' .
92
-	                                               'qui eu laboramus vulputate scriptorem, id veri audiam integre pro. ' .
93
-	                                               'Saperet luptatum recusabo quo cu, ' .'vix facer dolores persecuti no. ' .
94
-	                                               'Eos id omnes affert possim. Vix id commune urbanitas.</p>' .
90
+												   '<p>Ea mea tantas delenit, ut usu alii commune. ' .
91
+												   'Te vix decore dolore scribentur. Ad pri malis invidunt ullamcorper, ' .
92
+												   'qui eu laboramus vulputate scriptorem, id veri audiam integre pro. ' .
93
+												   'Saperet luptatum recusabo quo cu, ' .'vix facer dolores persecuti no. ' .
94
+												   'Eos id omnes affert possim. Vix id commune urbanitas.</p>' .
95 95
 
96
-	                                               '<p>Cu eum quod prodesset, vix sale democritum delicatissimi et, ' .
97
-	                                               'putant viderer inimicus pro ut. Sea ut tamquam hendrerit definitionem, ' .
98
-	                                               'an quo illud persecuti, debet affert vis te. Mei ea omnes saepe nostrum. ' .
99
-	                                               'In sed denique iudicabit. Id eos equidem scribentur.</p>'
96
+												   '<p>Cu eum quod prodesset, vix sale democritum delicatissimi et, ' .
97
+												   'putant viderer inimicus pro ut. Sea ut tamquam hendrerit definitionem, ' .
98
+												   'an quo illud persecuti, debet affert vis te. Mei ea omnes saepe nostrum. ' .
99
+												   'In sed denique iudicabit. Id eos equidem scribentur.</p>'
100 100
 ];
Please login to merge, or discard this patch.
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -60,44 +60,44 @@
 block discarded – undo
60 60
 
61 61
 	'INSTALL_PAGE_INDEX_TITLE'                  => 'Головна',
62 62
 
63
-	'INSTALL_PAGE_INDEX_CONTENTS'               => '<h2>Ласкаво просимо!</h2>' .
64
-	                                               '<p>Це демонстраційний сайт, що працює на <strong>Cadmium CMS</strong>.</p>' .
65
-	                                               '<p>Ви можете увійти в панель керування, перейшовши за <a href="$install_path$/admin">цим посиланням</a>.</p>' .
66
-	                                               '<h2>Дивіться також</h2>' .
67
-	                                               '<ul><li><a href="http://cadmium-cms.com" target="_blank">Офіційний сайт</a></li>' .
63
+	'INSTALL_PAGE_INDEX_CONTENTS'               => '<h2>Ласкаво просимо!</h2>'.
64
+	                                               '<p>Це демонстраційний сайт, що працює на <strong>Cadmium CMS</strong>.</p>'.
65
+	                                               '<p>Ви можете увійти в панель керування, перейшовши за <a href="$install_path$/admin">цим посиланням</a>.</p>'.
66
+	                                               '<h2>Дивіться також</h2>'.
67
+	                                               '<ul><li><a href="http://cadmium-cms.com" target="_blank">Офіційний сайт</a></li>'.
68 68
 	                                               '<li><a href="https://github.com/cadmium-org/cadmium-cms" target="_blank">Сторінка проекту на GitHub</a></li></ul>',
69 69
 
70 70
 	'INSTALL_PAGE_DEMO_TITLE'                   => 'Сторінка',
71 71
 
72
-	'INSTALL_PAGE_DEMO_CONTENTS'                => '<h2>Lorem ipsum</h2>' .
72
+	'INSTALL_PAGE_DEMO_CONTENTS'                => '<h2>Lorem ipsum</h2>'.
73 73
 
74
-	                                               '<p>Lorem ipsum dolor sit amet, ex etiam facilis vim. ' .
75
-	                                               'Qui etiam soluta nostro no, te praesent consulatu eos. ' .
76
-	                                               'His at modus diceret referrentur, exerci viderer aperiri et sed. ' .
77
-	                                               'Ne errem appareat apeirian has, ut has eligendi comprehensam. ' .
78
-	                                               'His ea adipisci eloquentiam, nec id temporibus appellantur. ' .
79
-	                                               'Pri ut inermis persequeris contentiones, vel vidit ponderum cu.</p>' .
74
+	                                               '<p>Lorem ipsum dolor sit amet, ex etiam facilis vim. '.
75
+	                                               'Qui etiam soluta nostro no, te praesent consulatu eos. '.
76
+	                                               'His at modus diceret referrentur, exerci viderer aperiri et sed. '.
77
+	                                               'Ne errem appareat apeirian has, ut has eligendi comprehensam. '.
78
+	                                               'His ea adipisci eloquentiam, nec id temporibus appellantur. '.
79
+	                                               'Pri ut inermis persequeris contentiones, vel vidit ponderum cu.</p>'.
80 80
 
81
-	                                               '<h3>Vix no suas populo</h3>' .
81
+	                                               '<h3>Vix no suas populo</h3>'.
82 82
 
83
-	                                               '<p>Vix no suas populo. Mea inani utinam ex. Duo vocibus noluisse partiendo ei. ' .
84
-	                                               'Impedit voluptatibus pro ut, ea probatus reformidans pri. ' .
85
-	                                               'An vix repudiandae complectitur, ex soluta numquam splendide nam.</p>' .
83
+	                                               '<p>Vix no suas populo. Mea inani utinam ex. Duo vocibus noluisse partiendo ei. '.
84
+	                                               'Impedit voluptatibus pro ut, ea probatus reformidans pri. '.
85
+	                                               'An vix repudiandae complectitur, ex soluta numquam splendide nam.</p>'.
86 86
 
87
-	                                               '<p>Mea ex novum contentiones, eleifend ocurreret voluptaria et usu. ' .
88
-	                                               'No mel illum nonumy maiorum, pro saperet disputando in. Cum ei tritani accusam incorrupte. ' .
89
-	                                               'Per animal saperet suavitate id, vim ex quod delicatissimi.</p>' .
87
+	                                               '<p>Mea ex novum contentiones, eleifend ocurreret voluptaria et usu. '.
88
+	                                               'No mel illum nonumy maiorum, pro saperet disputando in. Cum ei tritani accusam incorrupte. '.
89
+	                                               'Per animal saperet suavitate id, vim ex quod delicatissimi.</p>'.
90 90
 
91
-	                                               '<h3>Ea mea tantas delenit</h3>' .
91
+	                                               '<h3>Ea mea tantas delenit</h3>'.
92 92
 
93
-	                                               '<p>Ea mea tantas delenit, ut usu alii commune. ' .
94
-	                                               'Te vix decore dolore scribentur. Ad pri malis invidunt ullamcorper, ' .
95
-	                                               'qui eu laboramus vulputate scriptorem, id veri audiam integre pro. ' .
96
-	                                               'Saperet luptatum recusabo quo cu, ' .'vix facer dolores persecuti no. ' .
97
-	                                               'Eos id omnes affert possim. Vix id commune urbanitas.</p>' .
93
+	                                               '<p>Ea mea tantas delenit, ut usu alii commune. '.
94
+	                                               'Te vix decore dolore scribentur. Ad pri malis invidunt ullamcorper, '.
95
+	                                               'qui eu laboramus vulputate scriptorem, id veri audiam integre pro. '.
96
+	                                               'Saperet luptatum recusabo quo cu, '.'vix facer dolores persecuti no. '.
97
+	                                               'Eos id omnes affert possim. Vix id commune urbanitas.</p>'.
98 98
 
99
-	                                               '<p>Cu eum quod prodesset, vix sale democritum delicatissimi et, ' .
100
-	                                               'putant viderer inimicus pro ut. Sea ut tamquam hendrerit definitionem, ' .
101
-	                                               'an quo illud persecuti, debet affert vis te. Mei ea omnes saepe nostrum. ' .
99
+	                                               '<p>Cu eum quod prodesset, vix sale democritum delicatissimi et, '.
100
+	                                               'putant viderer inimicus pro ut. Sea ut tamquam hendrerit definitionem, '.
101
+	                                               'an quo illud persecuti, debet affert vis te. Mei ea omnes saepe nostrum. '.
102 102
 	                                               'In sed denique iudicabit. Id eos equidem scribentur.</p>'
103 103
 ];
Please login to merge, or discard this patch.
www/engine/System/Languages/ru-RU/Phrases/Install.php 2 patches
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -58,43 +58,43 @@
 block discarded – undo
58 58
 	'INSTALL_PAGE_INDEX_TITLE'                  => 'Главная',
59 59
 
60 60
 	'INSTALL_PAGE_INDEX_CONTENTS'               => '<h2>Добро пожаловать!</h2>' .
61
-	                                               '<p>Это демонстрационный сайт, работающий на <strong>Cadmium CMS</strong>.</p>' .
62
-	                                               '<p>Вы можете войти в панель управления, перейдя по <a href="$install_path$/admin">этой ссылке</a>.</p>' .
63
-	                                               '<h2>Смотрите также</h2>' .
64
-	                                               '<ul><li><a href="http://cadmium-cms.com" target="_blank">Официальный сайт</a></li>' .
65
-	                                               '<li><a href="https://github.com/cadmium-org/cadmium-cms" target="_blank">Страница проекта на GitHub</a></li></ul>',
61
+												   '<p>Это демонстрационный сайт, работающий на <strong>Cadmium CMS</strong>.</p>' .
62
+												   '<p>Вы можете войти в панель управления, перейдя по <a href="$install_path$/admin">этой ссылке</a>.</p>' .
63
+												   '<h2>Смотрите также</h2>' .
64
+												   '<ul><li><a href="http://cadmium-cms.com" target="_blank">Официальный сайт</a></li>' .
65
+												   '<li><a href="https://github.com/cadmium-org/cadmium-cms" target="_blank">Страница проекта на GitHub</a></li></ul>',
66 66
 
67 67
 	'INSTALL_PAGE_DEMO_TITLE'                   => 'Страница',
68 68
 
69 69
 	'INSTALL_PAGE_DEMO_CONTENTS'                => '<h2>Lorem ipsum</h2>' .
70 70
 
71
-	                                               '<p>Lorem ipsum dolor sit amet, ex etiam facilis vim. ' .
72
-	                                               'Qui etiam soluta nostro no, te praesent consulatu eos. ' .
73
-	                                               'His at modus diceret referrentur, exerci viderer aperiri et sed. ' .
74
-	                                               'Ne errem appareat apeirian has, ut has eligendi comprehensam. ' .
75
-	                                               'His ea adipisci eloquentiam, nec id temporibus appellantur. ' .
76
-	                                               'Pri ut inermis persequeris contentiones, vel vidit ponderum cu.</p>' .
71
+												   '<p>Lorem ipsum dolor sit amet, ex etiam facilis vim. ' .
72
+												   'Qui etiam soluta nostro no, te praesent consulatu eos. ' .
73
+												   'His at modus diceret referrentur, exerci viderer aperiri et sed. ' .
74
+												   'Ne errem appareat apeirian has, ut has eligendi comprehensam. ' .
75
+												   'His ea adipisci eloquentiam, nec id temporibus appellantur. ' .
76
+												   'Pri ut inermis persequeris contentiones, vel vidit ponderum cu.</p>' .
77 77
 
78
-	                                               '<h3>Vix no suas populo</h3>' .
78
+												   '<h3>Vix no suas populo</h3>' .
79 79
 
80
-	                                               '<p>Vix no suas populo. Mea inani utinam ex. Duo vocibus noluisse partiendo ei. ' .
81
-	                                               'Impedit voluptatibus pro ut, ea probatus reformidans pri. ' .
82
-	                                               'An vix repudiandae complectitur, ex soluta numquam splendide nam.</p>' .
80
+												   '<p>Vix no suas populo. Mea inani utinam ex. Duo vocibus noluisse partiendo ei. ' .
81
+												   'Impedit voluptatibus pro ut, ea probatus reformidans pri. ' .
82
+												   'An vix repudiandae complectitur, ex soluta numquam splendide nam.</p>' .
83 83
 
84
-	                                               '<p>Mea ex novum contentiones, eleifend ocurreret voluptaria et usu. ' .
85
-	                                               'No mel illum nonumy maiorum, pro saperet disputando in. Cum ei tritani accusam incorrupte. ' .
86
-	                                               'Per animal saperet suavitate id, vim ex quod delicatissimi.</p>' .
84
+												   '<p>Mea ex novum contentiones, eleifend ocurreret voluptaria et usu. ' .
85
+												   'No mel illum nonumy maiorum, pro saperet disputando in. Cum ei tritani accusam incorrupte. ' .
86
+												   'Per animal saperet suavitate id, vim ex quod delicatissimi.</p>' .
87 87
 
88
-	                                               '<h3>Ea mea tantas delenit</h3>' .
88
+												   '<h3>Ea mea tantas delenit</h3>' .
89 89
 
90
-	                                               '<p>Ea mea tantas delenit, ut usu alii commune. ' .
91
-	                                               'Te vix decore dolore scribentur. Ad pri malis invidunt ullamcorper, ' .
92
-	                                               'qui eu laboramus vulputate scriptorem, id veri audiam integre pro. ' .
93
-	                                               'Saperet luptatum recusabo quo cu, ' .'vix facer dolores persecuti no. ' .
94
-	                                               'Eos id omnes affert possim. Vix id commune urbanitas.</p>' .
90
+												   '<p>Ea mea tantas delenit, ut usu alii commune. ' .
91
+												   'Te vix decore dolore scribentur. Ad pri malis invidunt ullamcorper, ' .
92
+												   'qui eu laboramus vulputate scriptorem, id veri audiam integre pro. ' .
93
+												   'Saperet luptatum recusabo quo cu, ' .'vix facer dolores persecuti no. ' .
94
+												   'Eos id omnes affert possim. Vix id commune urbanitas.</p>' .
95 95
 
96
-	                                               '<p>Cu eum quod prodesset, vix sale democritum delicatissimi et, ' .
97
-	                                               'putant viderer inimicus pro ut. Sea ut tamquam hendrerit definitionem, ' .
98
-	                                               'an quo illud persecuti, debet affert vis te. Mei ea omnes saepe nostrum. ' .
99
-	                                               'In sed denique iudicabit. Id eos equidem scribentur.</p>'
96
+												   '<p>Cu eum quod prodesset, vix sale democritum delicatissimi et, ' .
97
+												   'putant viderer inimicus pro ut. Sea ut tamquam hendrerit definitionem, ' .
98
+												   'an quo illud persecuti, debet affert vis te. Mei ea omnes saepe nostrum. ' .
99
+												   'In sed denique iudicabit. Id eos equidem scribentur.</p>'
100 100
 ];
Please login to merge, or discard this patch.
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -60,44 +60,44 @@
 block discarded – undo
60 60
 
61 61
 	'INSTALL_PAGE_INDEX_TITLE'                  => 'Главная',
62 62
 
63
-	'INSTALL_PAGE_INDEX_CONTENTS'               => '<h2>Добро пожаловать!</h2>' .
64
-	                                               '<p>Это демонстрационный сайт, работающий на <strong>Cadmium CMS</strong>.</p>' .
65
-	                                               '<p>Вы можете войти в панель управления, перейдя по <a href="$install_path$/admin">этой ссылке</a>.</p>' .
66
-	                                               '<h2>Смотрите также</h2>' .
67
-	                                               '<ul><li><a href="http://cadmium-cms.com" target="_blank">Официальный сайт</a></li>' .
63
+	'INSTALL_PAGE_INDEX_CONTENTS'               => '<h2>Добро пожаловать!</h2>'.
64
+	                                               '<p>Это демонстрационный сайт, работающий на <strong>Cadmium CMS</strong>.</p>'.
65
+	                                               '<p>Вы можете войти в панель управления, перейдя по <a href="$install_path$/admin">этой ссылке</a>.</p>'.
66
+	                                               '<h2>Смотрите также</h2>'.
67
+	                                               '<ul><li><a href="http://cadmium-cms.com" target="_blank">Официальный сайт</a></li>'.
68 68
 	                                               '<li><a href="https://github.com/cadmium-org/cadmium-cms" target="_blank">Страница проекта на GitHub</a></li></ul>',
69 69
 
70 70
 	'INSTALL_PAGE_DEMO_TITLE'                   => 'Страница',
71 71
 
72
-	'INSTALL_PAGE_DEMO_CONTENTS'                => '<h2>Lorem ipsum</h2>' .
72
+	'INSTALL_PAGE_DEMO_CONTENTS'                => '<h2>Lorem ipsum</h2>'.
73 73
 
74
-	                                               '<p>Lorem ipsum dolor sit amet, ex etiam facilis vim. ' .
75
-	                                               'Qui etiam soluta nostro no, te praesent consulatu eos. ' .
76
-	                                               'His at modus diceret referrentur, exerci viderer aperiri et sed. ' .
77
-	                                               'Ne errem appareat apeirian has, ut has eligendi comprehensam. ' .
78
-	                                               'His ea adipisci eloquentiam, nec id temporibus appellantur. ' .
79
-	                                               'Pri ut inermis persequeris contentiones, vel vidit ponderum cu.</p>' .
74
+	                                               '<p>Lorem ipsum dolor sit amet, ex etiam facilis vim. '.
75
+	                                               'Qui etiam soluta nostro no, te praesent consulatu eos. '.
76
+	                                               'His at modus diceret referrentur, exerci viderer aperiri et sed. '.
77
+	                                               'Ne errem appareat apeirian has, ut has eligendi comprehensam. '.
78
+	                                               'His ea adipisci eloquentiam, nec id temporibus appellantur. '.
79
+	                                               'Pri ut inermis persequeris contentiones, vel vidit ponderum cu.</p>'.
80 80
 
81
-	                                               '<h3>Vix no suas populo</h3>' .
81
+	                                               '<h3>Vix no suas populo</h3>'.
82 82
 
83
-	                                               '<p>Vix no suas populo. Mea inani utinam ex. Duo vocibus noluisse partiendo ei. ' .
84
-	                                               'Impedit voluptatibus pro ut, ea probatus reformidans pri. ' .
85
-	                                               'An vix repudiandae complectitur, ex soluta numquam splendide nam.</p>' .
83
+	                                               '<p>Vix no suas populo. Mea inani utinam ex. Duo vocibus noluisse partiendo ei. '.
84
+	                                               'Impedit voluptatibus pro ut, ea probatus reformidans pri. '.
85
+	                                               'An vix repudiandae complectitur, ex soluta numquam splendide nam.</p>'.
86 86
 
87
-	                                               '<p>Mea ex novum contentiones, eleifend ocurreret voluptaria et usu. ' .
88
-	                                               'No mel illum nonumy maiorum, pro saperet disputando in. Cum ei tritani accusam incorrupte. ' .
89
-	                                               'Per animal saperet suavitate id, vim ex quod delicatissimi.</p>' .
87
+	                                               '<p>Mea ex novum contentiones, eleifend ocurreret voluptaria et usu. '.
88
+	                                               'No mel illum nonumy maiorum, pro saperet disputando in. Cum ei tritani accusam incorrupte. '.
89
+	                                               'Per animal saperet suavitate id, vim ex quod delicatissimi.</p>'.
90 90
 
91
-	                                               '<h3>Ea mea tantas delenit</h3>' .
91
+	                                               '<h3>Ea mea tantas delenit</h3>'.
92 92
 
93
-	                                               '<p>Ea mea tantas delenit, ut usu alii commune. ' .
94
-	                                               'Te vix decore dolore scribentur. Ad pri malis invidunt ullamcorper, ' .
95
-	                                               'qui eu laboramus vulputate scriptorem, id veri audiam integre pro. ' .
96
-	                                               'Saperet luptatum recusabo quo cu, ' .'vix facer dolores persecuti no. ' .
97
-	                                               'Eos id omnes affert possim. Vix id commune urbanitas.</p>' .
93
+	                                               '<p>Ea mea tantas delenit, ut usu alii commune. '.
94
+	                                               'Te vix decore dolore scribentur. Ad pri malis invidunt ullamcorper, '.
95
+	                                               'qui eu laboramus vulputate scriptorem, id veri audiam integre pro. '.
96
+	                                               'Saperet luptatum recusabo quo cu, '.'vix facer dolores persecuti no. '.
97
+	                                               'Eos id omnes affert possim. Vix id commune urbanitas.</p>'.
98 98
 
99
-	                                               '<p>Cu eum quod prodesset, vix sale democritum delicatissimi et, ' .
100
-	                                               'putant viderer inimicus pro ut. Sea ut tamquam hendrerit definitionem, ' .
101
-	                                               'an quo illud persecuti, debet affert vis te. Mei ea omnes saepe nostrum. ' .
99
+	                                               '<p>Cu eum quod prodesset, vix sale democritum delicatissimi et, '.
100
+	                                               'putant viderer inimicus pro ut. Sea ut tamquam hendrerit definitionem, '.
101
+	                                               'an quo illud persecuti, debet affert vis te. Mei ea omnes saepe nostrum. '.
102 102
 	                                               'In sed denique iudicabit. Id eos equidem scribentur.</p>'
103 103
 ];
Please login to merge, or discard this patch.
www/engine/Framework/Main.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,9 @@
 block discarded – undo
23 23
 
24 24
 # Set defaults
25 25
 
26
-if (function_exists('mb_internal_encoding')) mb_internal_encoding('UTF-8');
26
+if (function_exists('mb_internal_encoding')) {
27
+	mb_internal_encoding('UTF-8');
28
+}
27 29
 
28 30
 date_default_timezone_set('UTC');
29 31
 
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -9,26 +9,26 @@  discard block
 block discarded – undo
9 9
 
10 10
 # Define directories
11 11
 
12
-define('DIR_FRAMEWORK',     (dirname(__FILE__) . '/'));
12
+define('DIR_FRAMEWORK', (dirname(__FILE__).'/'));
13 13
 
14
-define('DIR_CLASSES',       (DIR_FRAMEWORK . 'Classes/'));
15
-define('DIR_DATA',          (DIR_FRAMEWORK . 'Data/'));
16
-define('DIR_INCLUDES',      (DIR_FRAMEWORK . 'Includes/'));
17
-define('DIR_TEMPLATES',     (DIR_FRAMEWORK . 'Templates/'));
14
+define('DIR_CLASSES', (DIR_FRAMEWORK.'Classes/'));
15
+define('DIR_DATA', (DIR_FRAMEWORK.'Data/'));
16
+define('DIR_INCLUDES', (DIR_FRAMEWORK.'Includes/'));
17
+define('DIR_TEMPLATES', (DIR_FRAMEWORK.'Templates/'));
18 18
 
19 19
 # Require classes
20 20
 
21
-require_once (DIR_FRAMEWORK . 'Engine.php');
22
-require_once (DIR_FRAMEWORK . 'Exception.php');
23
-require_once (DIR_FRAMEWORK . 'Type.php');
21
+require_once (DIR_FRAMEWORK.'Engine.php');
22
+require_once (DIR_FRAMEWORK.'Exception.php');
23
+require_once (DIR_FRAMEWORK.'Type.php');
24 24
 
25 25
 # Require configuration
26 26
 
27
-require_once (DIR_INCLUDES . 'Constants.php');
28
-require_once (DIR_INCLUDES . 'Functions.php');
29
-require_once (DIR_INCLUDES . 'Regex.php');
30
-require_once (DIR_INCLUDES . 'Headers/Mime.php');
31
-require_once (DIR_INCLUDES . 'Headers/Status.php');
27
+require_once (DIR_INCLUDES.'Constants.php');
28
+require_once (DIR_INCLUDES.'Functions.php');
29
+require_once (DIR_INCLUDES.'Regex.php');
30
+require_once (DIR_INCLUDES.'Headers/Mime.php');
31
+require_once (DIR_INCLUDES.'Headers/Status.php');
32 32
 
33 33
 # Set defaults
34 34
 
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
 
39 39
 # Set request constants
40 40
 
41
-define('REQUEST_CLIENT_IP',     Engine::getIP());
41
+define('REQUEST_CLIENT_IP', Engine::getIP());
42 42
 
43
-define('REQUEST_TIME',          $_SERVER['REQUEST_TIME']);
44
-define('REQUEST_TIME_FLOAT',    $_SERVER['REQUEST_TIME_FLOAT']);
43
+define('REQUEST_TIME', $_SERVER['REQUEST_TIME']);
44
+define('REQUEST_TIME_FLOAT', $_SERVER['REQUEST_TIME_FLOAT']);
45 45
 
46 46
 # Set exception handler
47 47
 
Please login to merge, or discard this patch.
www/engine/Framework/Classes/Form/Field/Select.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
 		public function __construct(Form $form, string $key, string $value = '',
46 46
 
47
-		    array $options = [], string $default = null, array $config = []) {
47
+			array $options = [], string $default = null, array $config = []) {
48 48
 
49 49
 			# Init field
50 50
 
Please login to merge, or discard this patch.
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -77,9 +77,13 @@  discard block
 block discarded – undo
77 77
 
78 78
 			# Set appearance
79 79
 
80
-			if ($this->search) $tag->setAttribute('data-search', 'search');
80
+			if ($this->search) {
81
+				$tag->setAttribute('data-search', 'search');
82
+			}
81 83
 
82
-			if ($this->auto) $tag->setAttribute('data-auto', 'auto');
84
+			if ($this->auto) {
85
+				$tag->setAttribute('data-auto', 'auto');
86
+			}
83 87
 
84 88
 			# Set options
85 89
 
@@ -87,7 +91,9 @@  discard block
 block discarded – undo
87 91
 
88 92
 				$option = (new Tag('option', [], $text))->setAttribute('value', $value);
89 93
 
90
-				if ($this->value === $value) $option->setAttribute('selected', '');
94
+				if ($this->value === $value) {
95
+					$option->setAttribute('selected', '');
96
+				}
91 97
 
92 98
 				$options->addItem($option->getBlock());
93 99
 			}
Please login to merge, or discard this patch.
www/engine/Framework/Classes/Form/Field/Text.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
 
106 106
 		public function __construct(Form $form, string $key, string $value = '',
107 107
 
108
-		    string $type = FORM_FIELD_TEXT, int $maxlength = 0, array $config = []) {
108
+			string $type = FORM_FIELD_TEXT, int $maxlength = 0, array $config = []) {
109 109
 
110 110
 			# Init field
111 111
 
Please login to merge, or discard this patch.
Braces   +45 added lines, -23 removed lines patch added patch discarded remove patch
@@ -82,9 +82,13 @@  discard block
 block discarded – undo
82 82
 
83 83
 			$tag = $this->getTag('textarea', [], $this->value);
84 84
 
85
-			if ($this->rows > 0) $tag->setAttribute('rows', $this->rows);
85
+			if ($this->rows > 0) {
86
+				$tag->setAttribute('rows', $this->rows);
87
+			}
86 88
 
87
-			if ($this->cols > 0) $tag->setAttribute('cols', $this->cols);
89
+			if ($this->cols > 0) {
90
+				$tag->setAttribute('cols', $this->cols);
91
+			}
88 92
 
89 93
 			# ------------------------
90 94
 
@@ -97,9 +101,11 @@  discard block
 block discarded – undo
97 101
 
98 102
 		private function processSpaces() {
99 103
 
100
-			if ($this->spaces === 'strip') $this->value = Str::stripSpaces($this->value);
101
-
102
-			else if ($this->spaces === 'single') $this->value = Str::singleSpaces($this->value);
104
+			if ($this->spaces === 'strip') {
105
+				$this->value = Str::stripSpaces($this->value);
106
+			} else if ($this->spaces === 'single') {
107
+				$this->value = Str::singleSpaces($this->value);
108
+			}
103 109
 		}
104 110
 
105 111
 		/**
@@ -108,9 +114,11 @@  discard block
 block discarded – undo
108 114
 
109 115
 		private function processConvert() {
110 116
 
111
-			if ($this->convert === 'url') $this->value = Str::toUrl($this->value, $this->maxlength);
112
-
113
-			else if ($this->convert === 'var') $this->value = Str::toVar($this->value, $this->maxlength);
117
+			if ($this->convert === 'url') {
118
+				$this->value = Str::toUrl($this->value, $this->maxlength);
119
+			} else if ($this->convert === 'var') {
120
+				$this->value = Str::toVar($this->value, $this->maxlength);
121
+			}
114 122
 		}
115 123
 
116 124
 		/**
@@ -119,9 +127,11 @@  discard block
 block discarded – undo
119 127
 
120 128
 		private function processTransform() {
121 129
 
122
-			if ($this->transform === 'lower') $this->value = Str::toLower($this->value);
123
-
124
-			else if ($this->transform === 'upper') $this->value = Str::toUpper($this->value);
130
+			if ($this->transform === 'lower') {
131
+				$this->value = Str::toLower($this->value);
132
+			} else if ($this->transform === 'upper') {
133
+				$this->value = Str::toUpper($this->value);
134
+			}
125 135
 		}
126 136
 
127 137
 		/**
@@ -183,27 +193,39 @@  discard block
 block discarded – undo
183 193
 
184 194
 			# Process hidden field
185 195
 
186
-			if ($this->type === FORM_FIELD_HIDDEN) return $this->getHidden()->getBlock();
196
+			if ($this->type === FORM_FIELD_HIDDEN) {
197
+				return $this->getHidden()->getBlock();
198
+			}
187 199
 
188 200
 			# Process visible field
189 201
 
190
-			else if ($this->type === FORM_FIELD_PASSWORD) $tag = $this->getPassword();
191
-
192
-			else if ($this->type === FORM_FIELD_CAPTCHA) $tag = $this->getCaptcha();
193
-
194
-			else if ($this->type === FORM_FIELD_TEXTAREA) $tag = $this->getTextarea();
195
-
196
-			else $tag = $this->getText();
202
+			else if ($this->type === FORM_FIELD_PASSWORD) {
203
+				$tag = $this->getPassword();
204
+			} else if ($this->type === FORM_FIELD_CAPTCHA) {
205
+				$tag = $this->getCaptcha();
206
+			} else if ($this->type === FORM_FIELD_TEXTAREA) {
207
+				$tag = $this->getTextarea();
208
+			} else {
209
+				$tag = $this->getText();
210
+			}
197 211
 
198 212
 			# Set appearance
199 213
 
200
-			if ($this->maxlength > 0) $tag->setAttribute('maxlength', $this->maxlength);
214
+			if ($this->maxlength > 0) {
215
+				$tag->setAttribute('maxlength', $this->maxlength);
216
+			}
201 217
 
202
-			if ('' !== $this->placeholder) $tag->setAttribute('placeholder', $this->placeholder);
218
+			if ('' !== $this->placeholder) {
219
+				$tag->setAttribute('placeholder', $this->placeholder);
220
+			}
203 221
 
204
-			if ($this->readonly) $tag->setAttribute('readonly', 'readonly');
222
+			if ($this->readonly) {
223
+				$tag->setAttribute('readonly', 'readonly');
224
+			}
205 225
 
206
-			if ($this->autofocus) $tag->setAttribute('autofocus', 'autofocus');
226
+			if ($this->autofocus) {
227
+				$tag->setAttribute('autofocus', 'autofocus');
228
+			}
207 229
 
208 230
 			# ------------------------
209 231
 
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.