diff --git a/composer.json b/composer.json index 0ed11b1..3edbf47 100644 --- a/composer.json +++ b/composer.json @@ -33,14 +33,17 @@ }, "require-dev": { "guzzlehttp/guzzle": "^7.2", - "kahlan/kahlan": "dev-moving-to-github-action", + "kahlan/kahlan": "^5.2", "laminas/laminas-coding-standard": "^2.1.1", "php-coveralls/php-coveralls": "^2.4", "phpstan/phpstan": "^1.0", "rector/rector": "dev-main" }, "config": { - "bin-dir": "bin" + "bin-dir": "bin", + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } }, "extra": { "zf": { diff --git a/rector.php b/rector.php index db3e501..598b2d3 100644 --- a/rector.php +++ b/rector.php @@ -1,8 +1,6 @@ set(Option::PATHS, [__DIR__ . '/config', __DIR__ . '/src', __DIR__ . '/spec']); $parameters->set(Option::AUTO_IMPORT_NAMES, true); - - $parameters->set(Option::SKIP, [ - VarConstantCommentRector::class, - ]); }; diff --git a/src/Error/SpecialErrorMessage.php b/src/Error/SpecialErrorMessage.php index 34869e3..4f9e317 100644 --- a/src/Error/SpecialErrorMessage.php +++ b/src/Error/SpecialErrorMessage.php @@ -12,6 +12,9 @@ */ final class SpecialErrorMessage { + /** + * @var array + */ public const RESOURCE_NOT_AVAILABLE = [ 'code' => 410, 'reason' => 'API Call failed, The target resource %s is no longer available, ' @@ -19,11 +22,17 @@ final class SpecialErrorMessage . 'and/or ask API service administrator whether the API server is down.', ]; + /** + * @var array + */ public const INVALID_REQUEST_FILE = [ 'code' => 400, 'reason' => 'Invalid files data, please make sure you have "tmp_name" and "name" key', ]; + /** + * @var array + */ public const SERVICE_UNAVAILABLE = [ 'code' => 503, 'reason' => 'Service Unavailable, please contact API service administrator.',