Skip to content

Commit 0bbff2f

Browse files
committed
cs fix
1 parent 5fff035 commit 0bbff2f

File tree

32 files changed

+49
-118
lines changed

32 files changed

+49
-118
lines changed

app/Config/Routes.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22

33
use CodeIgniter\Router\RouteCollection;
44

5-
/**
6-
* @var RouteCollection $routes
7-
*/
5+
/** @var RouteCollection $routes */
86
$routes->get('/', 'Home::index');

app/Config/View.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class View extends BaseView
4545
* any callable. Can be single or tag pair.
4646
*
4747
* @var array<string, callable|list<string>|string>
48-
* @phpstan-var array<string, list<parser_callable_string>|parser_callable_string|parser_callable>
48+
* @phpstan-var array<string, list<parser_callable_string>|parser_callable|parser_callable_string>
4949
*/
5050
public $plugins = [];
5151

system/Autoloader/Autoloader.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,9 +480,7 @@ protected function discoverComposerNamespaces()
480480
return;
481481
}
482482

483-
/**
484-
* @var ClassLoader $composer
485-
*/
483+
/** @var ClassLoader $composer */
486484
$composer = include $this->composerPath;
487485
$paths = $composer->getPrefixesPsr4();
488486
$classes = $composer->getClassMap();

system/CLI/GeneratorTrait.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,7 @@ private function normalizeInputClassName(): string
303303

304304
$component = singular($this->component);
305305

306-
/**
307-
* @see https://regex101.com/r/a5KNCR/2
308-
*/
306+
/** @see https://regex101.com/r/a5KNCR/2 */
309307
$pattern = sprintf('/([a-z][a-z0-9_\/\\\\]+)(%s)$/i', $component);
310308

311309
if (preg_match($pattern, $class, $matches) === 1) {

system/Cache/Handlers/PredisHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function get(string $key): mixed
9595
'array', 'object' => unserialize($data['__ci_value']),
9696
// Yes, 'double' is returned and NOT 'float'
9797
'boolean', 'integer', 'double', 'string', 'NULL' => settype($data['__ci_value'], $data['__ci_type']) ? $data['__ci_value'] : null,
98-
default => null,
98+
default => null,
9999
};
100100
}
101101

system/Cache/Handlers/RedisHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function get(string $key): mixed
111111
'array', 'object' => unserialize($data['__ci_value']),
112112
// Yes, 'double' is returned and NOT 'float'
113113
'boolean', 'integer', 'double', 'string', 'NULL' => settype($data['__ci_value'], $data['__ci_type']) ? $data['__ci_value'] : null,
114-
default => null,
114+
default => null,
115115
};
116116
}
117117

system/Commands/Translation/LocalizationSync.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,7 @@ private function process(string $originalLocale, string $targetLocale): int
131131
),
132132
);
133133

134-
/**
135-
* @var array<non-empty-string, SplFileInfo> $files
136-
*/
134+
/** @var array<non-empty-string, SplFileInfo> $files */
137135
$files = iterator_to_array($iterator, true);
138136
ksort($files);
139137

system/Config/View.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class View extends BaseConfig
5454
* @psalm-suppress UndefinedDocblockClass
5555
*
5656
* @var array<string, callable|list<string>|string>
57-
* @phpstan-var array<string, list<parser_callable_string>|parser_callable_string|parser_callable>
57+
* @phpstan-var array<string, list<parser_callable_string>|parser_callable|parser_callable_string>
5858
*/
5959
public $plugins = [];
6060

@@ -96,7 +96,7 @@ class View extends BaseConfig
9696
* @psalm-suppress UndefinedDocblockClass
9797
*
9898
* @var array<string, callable|list<string>|string>
99-
* @phpstan-var array<string, array<parser_callable_string>|parser_callable_string|parser_callable>
99+
* @phpstan-var array<string, list<parser_callable_string>|parser_callable|parser_callable_string>
100100
*/
101101
protected $corePlugins = [
102102
'csp_script_nonce' => '\CodeIgniter\View\Plugins::cspScriptNonce',

system/Cookie/CookieStore.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ class CookieStore implements Countable, IteratorAggregate
4545
*/
4646
public static function fromCookieHeaders(array $headers, bool $raw = false)
4747
{
48-
/**
49-
* @var list<Cookie> $cookies
50-
*/
48+
/** @var list<Cookie> $cookies */
5149
$cookies = array_filter(array_map(static function (string $header) use ($raw) {
5250
try {
5351
return Cookie::fromHeaderString($header, $raw);

system/DataCaster/Cast/DatetimeCast.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ public static function get(
4040
throw new InvalidArgumentException($message);
4141
}
4242

43-
/**
44-
* @see https://www.php.net/manual/en/datetimeimmutable.createfromformat.php#datetimeimmutable.createfromformat.parameters
45-
*/
43+
/** @see https://www.php.net/manual/en/datetimeimmutable.createfromformat.php#datetimeimmutable.createfromformat.parameters */
4644
$format = self::getDateTimeFormat($params, $helper);
4745

4846
return Time::createFromFormat($format, $value);

0 commit comments

Comments
 (0)