Passed
Push — master ( c5be4a...39e959 )
by Anton
02:44
created
www/engine/System/Includes/Tables.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -2,15 +2,15 @@
 block discarded – undo
2 2
 
3 3
 # Database tables
4 4
 
5
-define('TABLE_PAGES',                               'pages');
6
-define('TABLE_PAGES_RELATIONS',                     'pages_relations');
5
+define('TABLE_PAGES', 'pages');
6
+define('TABLE_PAGES_RELATIONS', 'pages_relations');
7 7
 
8
-define('TABLE_MENU',                                'menu');
9
-define('TABLE_MENU_RELATIONS',                      'menu_relations');
8
+define('TABLE_MENU', 'menu');
9
+define('TABLE_MENU_RELATIONS', 'menu_relations');
10 10
 
11
-define('TABLE_VARIABLES',                           'variables');
12
-define('TABLE_WIDGETS',                             'widgets');
11
+define('TABLE_VARIABLES', 'variables');
12
+define('TABLE_WIDGETS', 'widgets');
13 13
 
14
-define('TABLE_USERS',                               'users');
15
-define('TABLE_USERS_SECRETS',                       'users_secrets');
16
-define('TABLE_USERS_SESSIONS',                      'users_sessions');
14
+define('TABLE_USERS', 'users');
15
+define('TABLE_USERS_SECRETS', 'users_secrets');
16
+define('TABLE_USERS_SESSIONS', 'users_sessions');
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Utils/Definition/Item/Index.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
 			return ((null !== $this->type) ? ($this->type . " ") : "") .
34 34
 
35
-			       ("KEY `" . $this->name . "` (`" . $this->name . "`)");
35
+				   ("KEY `" . $this->name . "` (`" . $this->name . "`)");
36 36
 		}
37 37
 	}
38 38
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,9 +45,9 @@
 block discarded – undo
45 45
 
46 46
 		public function getStatement() : string {
47 47
 
48
-			return ((null !== $this->type) ? ($this->type . " ") : "") .
48
+			return ((null !== $this->type) ? ($this->type." ") : "").
49 49
 
50
-			       ("KEY `" . $this->name . "` (`" . $this->name . "`)");
50
+			       ("KEY `".$this->name."` (`".$this->name."`)");
51 51
 		}
52 52
 	}
53 53
 }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,9 @@
 block discarded – undo
36 36
 
37 37
 			$this->name = $name;
38 38
 
39
-			if (null !== $type) $this->type = $this->validateType($type);
39
+			if (null !== $type) {
40
+				$this->type = $this->validateType($type);
41
+			}
40 42
 		}
41 43
 
42 44
 		/**
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Utils/Definition.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
30 30
 
31 31
 			$query = ("CREATE TABLE IF NOT EXISTS `" . static::$table . "` (") .
32 32
 
33
-			         implode(", ", $this->getStatements()) .
33
+					 implode(", ", $this->getStatements()) .
34 34
 
35
-			         (") ENGINE=InnoDB DEFAULT CHARSET=utf8");
35
+					 (") ENGINE=InnoDB DEFAULT CHARSET=utf8");
36 36
 
37 37
 			# ------------------------
38 38
 
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -41,9 +41,9 @@  discard block
 block discarded – undo
41 41
 
42 42
 		private function createMainTable() : bool {
43 43
 
44
-			$query = ("CREATE TABLE IF NOT EXISTS `" . static::$table . "` (") .
44
+			$query = ("CREATE TABLE IF NOT EXISTS `".static::$table."` (").
45 45
 
46
-			         implode(", ", $this->getStatements()) .
46
+			         implode(", ", $this->getStatements()).
47 47
 
48 48
 			         (") ENGINE=InnoDB DEFAULT CHARSET=utf8");
49 49
 
@@ -60,17 +60,17 @@  discard block
 block discarded – undo
60 60
 
61 61
 		private function createRelationsTable() : bool {
62 62
 
63
-			$query = ("CREATE TABLE IF NOT EXISTS `" . static::$table_relations . "` (") .
63
+			$query = ("CREATE TABLE IF NOT EXISTS `".static::$table_relations."` (").
64 64
 
65
-					 ("`ancestor` int(10) UNSIGNED NOT NULL, `descendant` int(10) UNSIGNED NOT NULL, ") .
65
+					 ("`ancestor` int(10) UNSIGNED NOT NULL, `descendant` int(10) UNSIGNED NOT NULL, ").
66 66
 
67
-					 ("`depth` int(10) UNSIGNED NOT NULL, ") .
67
+					 ("`depth` int(10) UNSIGNED NOT NULL, ").
68 68
 
69
-					 ("PRIMARY KEY (`ancestor`, `descendant`), KEY (`ancestor`), KEY (`descendant`), KEY (`depth`), ") .
69
+					 ("PRIMARY KEY (`ancestor`, `descendant`), KEY (`ancestor`), KEY (`descendant`), KEY (`depth`), ").
70 70
 
71
-					 ("FOREIGN KEY (`ancestor`) REFERENCES `" . static::$table . "` (`id`) ON DELETE CASCADE, ") .
71
+					 ("FOREIGN KEY (`ancestor`) REFERENCES `".static::$table."` (`id`) ON DELETE CASCADE, ").
72 72
 
73
-					 ("FOREIGN KEY (`descendant`) REFERENCES `" . static::$table . "` (`id`) ON DELETE CASCADE ") .
73
+					 ("FOREIGN KEY (`descendant`) REFERENCES `".static::$table."` (`id`) ON DELETE CASCADE ").
74 74
 
75 75
 					 (") ENGINE=InnoDB DEFAULT CHARSET=utf8");
76 76
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
 		private function removeMainTable() : bool {
89 89
 
90
-			$query = ("DROP TABLE IF EXISTS `" . static::$table  . "`");
90
+			$query = ("DROP TABLE IF EXISTS `".static::$table."`");
91 91
 
92 92
 			return (DB::send($query) && DB::getLast()->status);
93 93
 		}
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
 		private function removeRelationsTable() : bool {
102 102
 
103
-			$query = ("DROP TABLE IF EXISTS `" . static::$table_relations  . "`");
103
+			$query = ("DROP TABLE IF EXISTS `".static::$table_relations."`");
104 104
 
105 105
 			return (DB::send($query) && DB::getLast()->status);
106 106
 		}
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,9 @@
 block discarded – undo
25 25
 
26 26
 			foreach ([$this->params, $this->indexes, $this->foreigns] as $group) {
27 27
 
28
-				foreach ($group->getList() as $item) $statements[] = $item->getStatement();
28
+				foreach ($group->getList() as $item) {
29
+					$statements[] = $item->getStatement();
30
+				}
29 31
 			}
30 32
 
31 33
 			# ------------------------
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Utils/Lister.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,9 +65,9 @@
 block discarded – undo
65 65
 
66 66
 		private function getPaginationBlock() {
67 67
 
68
-			$query = (static::$nesting ? ('?parent_id=' . $this->parent->id) : '');
68
+			$query = (static::$nesting ? ('?parent_id='.$this->parent->id) : '');
69 69
 
70
-			$url = new Url(INSTALL_PATH . static::$link . $query);
70
+			$url = new Url(INSTALL_PATH.static::$link.$query);
71 71
 
72 72
 			# ------------------------
73 73
 
Please login to merge, or discard this patch.
Braces   +36 added lines, -16 removed lines patch added patch discarded remove patch
@@ -29,15 +29,15 @@  discard block
 block discarded – undo
29 29
 
30 30
 			# Set create button
31 31
 
32
-			if (count($this->path) < CONFIG_ENTITIZER_MAX_DEPTH) $parent->getBlock('create')->id = $this->parent->id;
33
-
34
-			else { $parent->getBlock('create')->disable(); $parent->getBlock('create_disabled')->enable(); }
32
+			if (count($this->path) < CONFIG_ENTITIZER_MAX_DEPTH) {
33
+				$parent->getBlock('create')->id = $this->parent->id;
34
+			} else { $parent->getBlock('create')->disable(); $parent->getBlock('create_disabled')->enable(); }
35 35
 
36 36
 			# Set edit button
37 37
 
38
-			if (0 !== $this->parent->id) $parent->getBlock('edit')->id = $this->parent->id;
39
-
40
-			else { $parent->getBlock('edit')->disable(); $parent->getBlock('edit_disabled')->enable(); }
38
+			if (0 !== $this->parent->id) {
39
+				$parent->getBlock('edit')->id = $this->parent->id;
40
+			} else { $parent->getBlock('edit')->disable(); $parent->getBlock('edit_disabled')->enable(); }
41 41
 
42 42
 			# Add parent additional data
43 43
 
@@ -52,7 +52,9 @@  discard block
 block discarded – undo
52 52
 
53 53
 			foreach ($this->items['list'] as $item) {
54 54
 
55
-				if ((null !== $this->entity) && ($item['dataset']->id === $this->entity->id)) continue;
55
+				if ((null !== $this->entity) && ($item['dataset']->id === $this->entity->id)) {
56
+					continue;
57
+				}
56 58
 
57 59
 				$items->addItem($view = View::get(!$ajax ? static::$view_item : static::$view_ajax_item));
58 60
 
@@ -121,11 +123,15 @@  discard block
 block discarded – undo
121 123
 
122 124
 			# Set path
123 125
 
124
-			if (static::$nesting) $contents->path = $this->path;
126
+			if (static::$nesting) {
127
+				$contents->path = $this->path;
128
+			}
125 129
 
126 130
 			# Process parent block
127 131
 
128
-			if (static::$nesting && !$ajax) $this->processParent($contents->getBlock('parent'));
132
+			if (static::$nesting && !$ajax) {
133
+				$this->processParent($contents->getBlock('parent'));
134
+			}
129 135
 
130 136
 			# Process items block
131 137
 
@@ -133,7 +139,9 @@  discard block
 block discarded – undo
133 139
 
134 140
 			# Set pagination
135 141
 
136
-			if (!$ajax) $contents->pagination = $this->getPaginationBlock();
142
+			if (!$ajax) {
143
+				$contents->pagination = $this->getPaginationBlock();
144
+			}
137 145
 
138 146
 			# ------------------------
139 147
 
@@ -160,15 +168,21 @@  discard block
 block discarded – undo
160 168
 
161 169
 			# Get path and depth
162 170
 
163
-			if (false !== ($path = $this->parent->getPath())) $this->path = $path;
171
+			if (false !== ($path = $this->parent->getPath())) {
172
+				$this->path = $path;
173
+			}
164 174
 
165
-			if ((0 !== $this->entity->id) && (false !== ($depth = $this->entity->getSubtreeDepth()))) $this->depth = $depth;
175
+			if ((0 !== $this->entity->id) && (false !== ($depth = $this->entity->getSubtreeDepth()))) {
176
+				$this->depth = $depth;
177
+			}
166 178
 
167 179
 			# Get items list
168 180
 
169 181
 			$lister = (static::$nesting ? 'getChildren' : 'getItems');
170 182
 
171
-			if (false !== ($items = $this->parent->$lister())) $this->items = $items;
183
+			if (false !== ($items = $this->parent->$lister())) {
184
+				$this->items = $items;
185
+			}
172 186
 
173 187
 			# ------------------------
174 188
 
@@ -183,7 +197,9 @@  discard block
 block discarded – undo
183 197
 
184 198
 		protected function handle(bool $ajax = false) {
185 199
 
186
-			if ($ajax) return $this->handleAjax();
200
+			if ($ajax) {
201
+				return $this->handleAjax();
202
+			}
187 203
 
188 204
 			# Create parent entity
189 205
 
@@ -193,7 +209,9 @@  discard block
 block discarded – undo
193 209
 
194 210
 			# Get path
195 211
 
196
-			if (false !== ($path = $this->parent->getPath())) $this->path = $path;
212
+			if (false !== ($path = $this->parent->getPath())) {
213
+				$this->path = $path;
214
+			}
197 215
 
198 216
 			# Get index
199 217
 
@@ -203,7 +221,9 @@  discard block
 block discarded – undo
203 221
 
204 222
 			$lister = (static::$nesting ? 'getChildren' : 'getItems'); $display = Settings::get('admin_display_entities');
205 223
 
206
-			if (false !== ($items = $this->parent->$lister([], [], $this->index, $display))) $this->items = $items;
224
+			if (false !== ($items = $this->parent->$lister([], [], $this->index, $display))) {
225
+				$this->items = $items;
226
+			}
207 227
 
208 228
 			# ------------------------
209 229
 
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Controller/Page.php 2 patches
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,11 +44,15 @@
 block discarded – undo
44 44
 			$data['contents']           = $contents;
45 45
 			$data['time_modified']      = REQUEST_TIME;
46 46
 
47
-			if (0 === $this->page->id) $data['time_created'] = REQUEST_TIME;
47
+			if (0 === $this->page->id) {
48
+				$data['time_created'] = REQUEST_TIME;
49
+			}
48 50
 
49 51
 			$modifier = ((0 === $this->page->id) ? 'create' : 'edit');
50 52
 
51
-			if (!$this->page->$modifier($data)) return 'PAGE_ERROR_MODIFY';
53
+			if (!$this->page->$modifier($data)) {
54
+				return 'PAGE_ERROR_MODIFY';
55
+			}
52 56
 
53 57
 			# ------------------------
54 58
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 		/**
28 28
 		 * Invoker
29 29
 		 *
30
-		 * @return true|string : true on success or an error code on failure
30
+		 * @return string|boolean : true on success or an error code on failure
31 31
 		 */
32 32
 
33 33
 		public function __invoke(array $post) {
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Controller/User.php 1 patch
Braces   +27 added lines, -9 removed lines patch added patch discarded remove patch
@@ -31,30 +31,46 @@  discard block
 block discarded – undo
31 31
 
32 32
 			# Validate name & email
33 33
 
34
-			if (false === ($name = Validate::userName($name))) return ['name', 'USER_ERROR_NAME_INVALID'];
34
+			if (false === ($name = Validate::userName($name))) {
35
+				return ['name', 'USER_ERROR_NAME_INVALID'];
36
+			}
35 37
 
36
-			if (false === ($email = Validate::userEmail($email))) return ['email', 'USER_ERROR_EMAIL_INVALID'];
38
+			if (false === ($email = Validate::userEmail($email))) {
39
+				return ['email', 'USER_ERROR_EMAIL_INVALID'];
40
+			}
37 41
 
38 42
 			# Validate password
39 43
 
40 44
 			if ((0 === $this->user->id) || ('' !== $password)) {
41 45
 
42
-				if (false === ($password = Validate::userPassword($password))) return ['password', 'USER_ERROR_PASSWORD_INVALID'];
46
+				if (false === ($password = Validate::userPassword($password))) {
47
+					return ['password', 'USER_ERROR_PASSWORD_INVALID'];
48
+				}
43 49
 
44
-				if (0 !== strcmp($password, $password_retype)) return ['password_retype', 'USER_ERROR_PASSWORD_MISMATCH'];
50
+				if (0 !== strcmp($password, $password_retype)) {
51
+					return ['password_retype', 'USER_ERROR_PASSWORD_MISMATCH'];
52
+				}
45 53
 			}
46 54
 
47 55
 			# Check name exists
48 56
 
49
-			if (false === ($check_name = $this->user->check($name, 'name'))) return 'USER_ERROR_MODIFY';
57
+			if (false === ($check_name = $this->user->check($name, 'name'))) {
58
+				return 'USER_ERROR_MODIFY';
59
+			}
50 60
 
51
-			if ($check_name === 1) return ['name', 'USER_ERROR_NAME_DUPLICATE'];
61
+			if ($check_name === 1) {
62
+				return ['name', 'USER_ERROR_NAME_DUPLICATE'];
63
+			}
52 64
 
53 65
 			# Check email exists
54 66
 
55
-			if (false === ($check_email = $this->user->check($email, 'email'))) return 'USER_ERROR_MODIFY';
67
+			if (false === ($check_email = $this->user->check($email, 'email'))) {
68
+				return 'USER_ERROR_MODIFY';
69
+			}
56 70
 
57
-			if ($check_email === 1) return ['email', 'USER_ERROR_EMAIL_DUPLICATE'];
71
+			if ($check_email === 1) {
72
+				return ['email', 'USER_ERROR_EMAIL_DUPLICATE'];
73
+			}
58 74
 
59 75
 			# Modify user
60 76
 
@@ -84,7 +100,9 @@  discard block
 block discarded – undo
84 100
 
85 101
 			$modifier = ((0 === $this->user->id) ? 'create' : 'edit');
86 102
 
87
-			if (!$this->user->$modifier($data)) return 'USER_ERROR_MODIFY';
103
+			if (!$this->user->$modifier($data)) {
104
+				return 'USER_ERROR_MODIFY';
105
+			}
88 106
 
89 107
 			# ------------------------
90 108
 
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Utils/Factory.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,9 +12,13 @@
 block discarded – undo
12 12
 
13 13
 		public static function get(string $table) {
14 14
 
15
-			if (!isset(static::$classes[$table])) throw new Exception\General(static::$error_message);
15
+			if (!isset(static::$classes[$table])) {
16
+				throw new Exception\General(static::$error_message);
17
+			}
16 18
 
17
-			if (!isset(static::$cache[$table])) static::$cache[$table] = new static::$classes[$table];
19
+			if (!isset(static::$cache[$table])) {
20
+				static::$cache[$table] = new static::$classes[$table];
21
+			}
18 22
 
19 23
 			# ------------------------
20 24
 
Please login to merge, or discard this patch.
www/engine/Framework/Includes/Constants.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -2,23 +2,23 @@
 block discarded – undo
2 2
 
3 3
 # Date formats
4 4
 
5
-define('DATE_FORMAT_STANDART',                      'd.m.Y');
6
-define('DATE_FORMAT_MYSQL',                         'Y-m-d');
7
-define('DATE_FORMAT_DATETIME',                      'd.m.Y, H:i');
8
-define('DATE_FORMAT_W3C',                           'Y-m-d\TH:i:sP');
5
+define('DATE_FORMAT_STANDART', 'd.m.Y');
6
+define('DATE_FORMAT_MYSQL', 'Y-m-d');
7
+define('DATE_FORMAT_DATETIME', 'd.m.Y, H:i');
8
+define('DATE_FORMAT_W3C', 'Y-m-d\TH:i:sP');
9 9
 
10 10
 # Form fields
11 11
 
12
-define('FORM_FIELD_HIDDEN',                         'hidden');
13
-define('FORM_FIELD_PASSWORD',                       'password');
14
-define('FORM_FIELD_CAPTCHA',                        'captcha');
15
-define('FORM_FIELD_TEXT',                           'text');
16
-define('FORM_FIELD_TEXTAREA',                       'textarea');
12
+define('FORM_FIELD_HIDDEN', 'hidden');
13
+define('FORM_FIELD_PASSWORD', 'password');
14
+define('FORM_FIELD_CAPTCHA', 'captcha');
15
+define('FORM_FIELD_TEXT', 'text');
16
+define('FORM_FIELD_TEXTAREA', 'textarea');
17 17
 
18 18
 # String pools
19 19
 
20
-define('STR_POOL_DEFAULT',                          'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789');
21
-define('STR_POOL_LATIN',                            'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ');
22
-define('STR_POOL_LATIN_LOWER',                      'abcdefghijklmnopqrstuvwxyz');
23
-define('STR_POOL_LATIN_UPPER',                      'ABCDEFGHIJKLMNOPQRSTUVWXYZ');
24
-define('STR_POOL_NUMERIC',                          '0123456789');
20
+define('STR_POOL_DEFAULT', 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789');
21
+define('STR_POOL_LATIN', 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ');
22
+define('STR_POOL_LATIN_LOWER', 'abcdefghijklmnopqrstuvwxyz');
23
+define('STR_POOL_LATIN_UPPER', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ');
24
+define('STR_POOL_NUMERIC', '0123456789');
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.