diff --git a/composer.json b/composer.json index 69bb26cd..6af757eb 100644 --- a/composer.json +++ b/composer.json @@ -22,10 +22,10 @@ "require-dev": { "phpunit/phpunit": "^9.6", "mockery/mockery": "^1.6", - "friendsofphp/php-cs-fixer": "^3.52", - "phpstan/phpstan": "^1.10", + "friendsofphp/php-cs-fixer": "^3.64", + "phpstan/phpstan": "^1.12", "symplify/monorepo-builder": "^11.2", - "rector/rector": "^1.0" + "rector/rector": "^1.2" }, "autoload": { "psr-4": { diff --git a/src/System/Database/MyModel/Model.php b/src/System/Database/MyModel/Model.php index f8879e9c..b2a11ee8 100644 --- a/src/System/Database/MyModel/Model.php +++ b/src/System/Database/MyModel/Model.php @@ -60,7 +60,7 @@ class Model implements \ArrayAccess, \IteratorAggregate */ public function __construct( MyPDO $pdo, - array $column + array $column, ) { $this->pdo = $pdo; $this->columns = $this->fresh = $column; @@ -91,7 +91,7 @@ public function setUp( Where $where, string $primery_key, array $stash, - array $resistant + array $resistant, ): self { $this->table_name = $table; $this->columns = $this->fresh = $column; diff --git a/src/System/Http/Request.php b/src/System/Http/Request.php index 3d0a516b..51642cf6 100644 --- a/src/System/Http/Request.php +++ b/src/System/Http/Request.php @@ -130,7 +130,7 @@ public function __construct( array $headers = [], string $method = 'GET', string $remoteAddress = '::1', - ?string $rawBody = null + ?string $rawBody = null, ) { $this->initialize($url, $query, $post, $attributes, $cookies, $files, $headers, $method, $remoteAddress, $rawBody); } @@ -157,7 +157,7 @@ public function initialize( array $headers = [], string $method = 'GET', string $remoteAddress = '::1', - ?string $rawBody = null + ?string $rawBody = null, ) { $this->url = $url; $this->query = new Collection($query); @@ -191,7 +191,7 @@ public function duplicate( ?array $attributes = null, ?array $cookies = null, ?array $files = null, - ?array $headers = null + ?array $headers = null, ) { $dupplicate = clone $this; diff --git a/src/System/Http/StreamedResponse.php b/src/System/Http/StreamedResponse.php index fbefb60a..cd1189c6 100644 --- a/src/System/Http/StreamedResponse.php +++ b/src/System/Http/StreamedResponse.php @@ -23,7 +23,7 @@ class StreamedResponse extends Response public function __construct( $callable_stream, int $respone_code = Response::HTTP_OK, - array $headers = [] + array $headers = [], ) { $this->setStream($callable_stream); $this->setResponeCode($respone_code); diff --git a/src/System/Integrate/Http/Exception/HttpException.php b/src/System/Integrate/Http/Exception/HttpException.php index 03cb8c9f..53f218ea 100644 --- a/src/System/Integrate/Http/Exception/HttpException.php +++ b/src/System/Integrate/Http/Exception/HttpException.php @@ -26,7 +26,7 @@ public function __construct( string $message, ?\Throwable $previous = null, array $headers = [], - int $code = 0 + int $code = 0, ) { $this->status_code = $status_code; $this->headers = $headers; diff --git a/src/System/Integrate/PackageManifest.php b/src/System/Integrate/PackageManifest.php index 97aabe20..6687d46f 100644 --- a/src/System/Integrate/PackageManifest.php +++ b/src/System/Integrate/PackageManifest.php @@ -16,7 +16,7 @@ final class PackageManifest public function __construct( private string $base_path, private string $application_cache_path, - private ?string $vendor_path = null + private ?string $vendor_path = null, ) { $this->vendor_path ??= DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'composer' . DIRECTORY_SEPARATOR; } diff --git a/src/System/Security/helper.php b/src/System/Security/helper.php index a7ef2404..0b6ce65f 100644 --- a/src/System/Security/helper.php +++ b/src/System/Security/helper.php @@ -8,7 +8,7 @@ function encrypt( string $plain_text, ?string $passphrase = null, - string $algo = Algo::AES_256_CBC + string $algo = Algo::AES_256_CBC, ): string { return (new Crypt($passphrase, $algo))->encrypt($plain_text); } @@ -18,7 +18,7 @@ function encrypt( function decrypt( string $encrypted, ?string $passphrase = null, - string $algo = Algo::AES_256_CBC + string $algo = Algo::AES_256_CBC, ): string { return (new Crypt($passphrase, $algo))->decrypt($encrypted); }