diff --git a/composer.json b/composer.json index aaf9aa4..fd64ae7 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,6 @@ { "name": "laminas-api-tools/api-tools-documentation", "description": "Laminas API Tools API documentation module", - "license": "BSD-3-Clause", "keywords": [ "laminas", "api-tools", @@ -9,22 +8,7 @@ "documentation" ], "homepage": "https://api-tools.getlaminas.org", - "support": { - "docs": "https://api-tools.getlaminas.org/documentation", - "issues": "https://github.com/laminas-api-tools/api-tools-documentation/issues", - "source": "https://github.com/laminas-api-tools/api-tools-documentation", - "rss": "https://github.com/laminas-api-tools/api-tools-documentation/releases.atom", - "chat": "https://laminas.dev/chat", - "forum": "https://discourse.laminas.dev" - }, - "config": { - "sort-packages": true - }, - "extra": { - "laminas": { - "module": "Laminas\\ApiTools\\Documentation" - } - }, + "license": "BSD-3-Clause", "require": { "php": "^7.3", "laminas-api-tools/api-tools-configuration": "^1.2", @@ -38,6 +22,9 @@ "laminas/laminas-zendframework-bridge": "^1.1", "michelf/php-markdown": "^1.5" }, + "replace": { + "zfcampus/zf-apigility-documentation": "^1.3.0" + }, "require-dev": { "laminas/laminas-coding-standard": "~2.2.0", "laminas/laminas-stdlib": "^2.7.8 || ^3.0.1", @@ -63,7 +50,12 @@ "test": "phpunit --colors=always", "test-coverage": "phpunit --colors=always --coverage-clover clover.xml" }, - "replace": { - "zfcampus/zf-apigility-documentation": "^1.3.0" + "support": { + "issues": "https://github.com/laminas-api-tools/api-tools-documentation/issues", + "forum": "https://discourse.laminas.dev", + "chat": "https://laminas.dev/chat", + "source": "https://github.com/laminas-api-tools/api-tools-documentation", + "docs": "https://api-tools.getlaminas.org/documentation", + "rss": "https://github.com/laminas-api-tools/api-tools-documentation/releases.atom" } } diff --git a/composer.lock b/composer.lock index 5f3749d..5f5e57c 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "19f91c786c0a3b1ee721db54abeffcd4", + "content-hash": "ae8b4a17b96078c584b1751787376817", "packages": [ { "name": "brick/varexporter", diff --git a/src/ApiFactory.php b/src/ApiFactory.php index bba1b56..f61c061 100644 --- a/src/ApiFactory.php +++ b/src/ApiFactory.php @@ -461,7 +461,7 @@ protected function marshalActionFromRouteConfig($serviceName, $serviceClassName, protected function hasOptionalSegments(string $route): bool { - return preg_match('#\[.*?:.+\]#', $route); + return (bool) preg_match('#\[.*?:.+\]#', $route); } /** @psalm-return array{code:string, message:string} */ diff --git a/src/Module.php b/src/Module.php index e484268..97e41c4 100644 --- a/src/Module.php +++ b/src/Module.php @@ -4,7 +4,7 @@ class Module { - /** @return array */ + /** @return array */ public function getConfig() { return include __DIR__ . '/../config/module.config.php';