diff --git a/composer.json b/composer.json index 87b626f..9723b01 100644 --- a/composer.json +++ b/composer.json @@ -49,7 +49,7 @@ "webclient/fake-http-client": "^1.0" }, "scripts": { - "phpcs": "phpcs --help --report=checkstyle", + "phpcs": "phpcs --no-cache --report-full", "phpmd": "phpmd src text phpmd", "github:phpmd": "phpmd src github phpmd", "phpstan": "phpstan analyse src --level=6", diff --git a/src/Model/Card.php b/src/Model/Card.php index 1e7809d..f12f27d 100644 --- a/src/Model/Card.php +++ b/src/Model/Card.php @@ -2,7 +2,6 @@ namespace TCGdex\Model; -use stdClass; use TCGdex\Model\SubModel\Variants; use TCGdex\Model\SubModel\Legal; use TCGdex\Model\SubModel\Ability; @@ -18,7 +17,6 @@ */ class Card extends CardResume { - protected function fill(object $data): void { foreach ($data as $key => $value) { diff --git a/src/Model/CardResume.php b/src/Model/CardResume.php index 1191e3d..a893774 100644 --- a/src/Model/CardResume.php +++ b/src/Model/CardResume.php @@ -4,7 +4,6 @@ class CardResume extends Model { - /** * @var string */ diff --git a/src/Model/Model.php b/src/Model/Model.php index 3b13f46..77d6e1c 100644 --- a/src/Model/Model.php +++ b/src/Model/Model.php @@ -4,7 +4,6 @@ abstract class Model { - /** * @var \TCGdex\TCGdex */ diff --git a/src/Model/Serie.php b/src/Model/Serie.php index 88c1d01..a07571c 100644 --- a/src/Model/Serie.php +++ b/src/Model/Serie.php @@ -4,7 +4,6 @@ class Serie extends SerieResume { - /** * @var SetResume[] */ diff --git a/src/Model/SerieResume.php b/src/Model/SerieResume.php index 9fc8cde..0b5bcd9 100644 --- a/src/Model/SerieResume.php +++ b/src/Model/SerieResume.php @@ -4,7 +4,6 @@ class SerieResume extends Model { - /** * @var string */ diff --git a/src/Model/SetResume.php b/src/Model/SetResume.php index e438eac..28ae60e 100644 --- a/src/Model/SetResume.php +++ b/src/Model/SetResume.php @@ -6,7 +6,6 @@ class SetResume extends Model { - /** * @var string */ diff --git a/src/Model/StringEndpoint.php b/src/Model/StringEndpoint.php index af8fd15..0b1e33c 100644 --- a/src/Model/StringEndpoint.php +++ b/src/Model/StringEndpoint.php @@ -4,7 +4,6 @@ class StringEndpoint extends Model { - protected function fill(object $data): void { foreach ($data as $key => $value) { diff --git a/src/Model/SubModel/Variants.php b/src/Model/SubModel/Variants.php index 214ec1a..2cce1a2 100644 --- a/src/Model/SubModel/Variants.php +++ b/src/Model/SubModel/Variants.php @@ -6,7 +6,6 @@ class Variants extends Model { - /** * @var string|null */ diff --git a/src/Request.php b/src/Request.php index 8b8ec5c..dcb991b 100644 --- a/src/Request.php +++ b/src/Request.php @@ -7,6 +7,10 @@ */ class Request { + /** + * @param string|null $path + * @return mixed|null + */ public static function fetch(...$path) { // Filter null elements as they break the rest @@ -41,7 +45,6 @@ public static function fetch(...$path) // Request is not cached if (is_null($response)) { - // Request remote if there is no hit in the cache $request = TCGdex::$requestFactory->createRequest('GET', $url); diff --git a/src/TCGdex.php b/src/TCGdex.php index 04192c0..e1d5c5c 100644 --- a/src/TCGdex.php +++ b/src/TCGdex.php @@ -26,12 +26,14 @@ */ class TCGdex { - /** * @deprecated use TCGdex::getVersion() */ public const VERSION = "2.x.x"; + /** + * @return string + */ public static function getVersion() { try {