Skip to content

Commit 598331e

Browse files
authored
Merge pull request #7820 from kenjis/style-update-cs
style: update cs
2 parents 513f9fc + 68d21eb commit 598331e

File tree

7 files changed

+14
-6
lines changed

7 files changed

+14
-6
lines changed

system/Common.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -470,10 +470,8 @@ function esc($data, string $context = 'html', ?string $encoding = null)
470470
*
471471
* @see https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security
472472
*
473-
* @param int $duration How long should the SSL header be set for? (in seconds)
474-
* Defaults to 1 year.
475-
* @param RequestInterface $request
476-
* @param ResponseInterface $response
473+
* @param int $duration How long should the SSL header be set for? (in seconds)
474+
* Defaults to 1 year.
477475
*
478476
* @throws HTTPException
479477
*/

system/Database/OCI8/Forge.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,19 +218,24 @@ protected function _attributeType(array &$attributes)
218218
switch (strtoupper($attributes['TYPE'])) {
219219
case 'TINYINT':
220220
$attributes['CONSTRAINT'] ??= 3;
221+
221222
// no break
222223
case 'SMALLINT':
223224
$attributes['CONSTRAINT'] ??= 5;
225+
224226
// no break
225227
case 'MEDIUMINT':
226228
$attributes['CONSTRAINT'] ??= 7;
229+
227230
// no break
228231
case 'INT':
229232
case 'INTEGER':
230233
$attributes['CONSTRAINT'] ??= 11;
234+
231235
// no break
232236
case 'BIGINT':
233237
$attributes['CONSTRAINT'] ??= 19;
238+
234239
// no break
235240
case 'NUMERIC':
236241
$attributes['TYPE'] = 'NUMBER';
@@ -261,6 +266,7 @@ protected function _attributeType(array &$attributes)
261266
case 'ENUM':
262267
case 'VARCHAR':
263268
$attributes['CONSTRAINT'] ??= 255;
269+
264270
// no break
265271
case 'TEXT':
266272
case 'MEDIUMTEXT':

system/HTTP/IncomingRequest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,7 @@ public function getPostGet($index = null, $filter = null, $flags = null)
800800
if ($index === null) {
801801
return array_merge($this->getGet($index, $filter, $flags), $this->getPost($index, $filter, $flags));
802802
}
803+
803804
// Use $_POST directly here, since filter_has_var only
804805
// checks the initial POST data, not anything that might
805806
// have been added since.
@@ -822,6 +823,7 @@ public function getGetPost($index = null, $filter = null, $flags = null)
822823
if ($index === null) {
823824
return array_merge($this->getPost($index, $filter, $flags), $this->getGet($index, $filter, $flags));
824825
}
826+
825827
// Use $_GET directly here, since filter_has_var only
826828
// checks the initial GET data, not anything that might
827829
// have been added since.

system/Helpers/number_helper.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
/**
1616
* Formats a numbers as bytes, based on size, and adds the appropriate suffix
1717
*
18-
* @param int|string $num Will be cast as int
19-
* @param string $locale
18+
* @param int|string $num Will be cast as int
2019
*
2120
* @return bool|string
2221
*/

system/Helpers/text_helper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ function random_string(string $type = 'alnum', int $len = 8): string
584584

585585
return bin2hex(random_bytes($len / 2));
586586
}
587+
587588
// 'basic' type treated as default
588589
return (string) mt_rand();
589590
}

system/Test/TestResponse.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public function isOK(): bool
134134
if ($status >= 400 || $status < 200) {
135135
return false;
136136
}
137+
137138
// Empty bodies are not considered valid, unless in redirects
138139
return ! ($status < 300 && empty($this->response->getBody()));
139140
}

user_guide_src/source/outgoing/response/003.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
];
77

88
return $this->response->setJSON($data);
9+
910
// or
1011
return $this->response->setXML($data);

0 commit comments

Comments
 (0)