Skip to content

Commit

Permalink
fix: PHP_CodeSniffer (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aviortheking authored Dec 15, 2021
1 parent 3aa0343 commit 79358d8
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions src/Model/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace TCGdex\Model;

use stdClass;
use TCGdex\Model\SubModel\Variants;
use TCGdex\Model\SubModel\Legal;
use TCGdex\Model\SubModel\Ability;
Expand All @@ -18,7 +17,6 @@
*/
class Card extends CardResume
{

protected function fill(object $data): void
{
foreach ($data as $key => $value) {
Expand Down
1 change: 0 additions & 1 deletion src/Model/CardResume.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

class CardResume extends Model
{

/**
* @var string
*/
Expand Down
1 change: 0 additions & 1 deletion src/Model/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

abstract class Model
{

/**
* @var \TCGdex\TCGdex
*/
Expand Down
1 change: 0 additions & 1 deletion src/Model/Serie.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

class Serie extends SerieResume
{

/**
* @var SetResume[]
*/
Expand Down
1 change: 0 additions & 1 deletion src/Model/SerieResume.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

class SerieResume extends Model
{

/**
* @var string
*/
Expand Down
1 change: 0 additions & 1 deletion src/Model/SetResume.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

class SetResume extends Model
{

/**
* @var string
*/
Expand Down
1 change: 0 additions & 1 deletion src/Model/StringEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

class StringEndpoint extends Model
{

protected function fill(object $data): void
{
foreach ($data as $key => $value) {
Expand Down
1 change: 0 additions & 1 deletion src/Model/SubModel/Variants.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

class Variants extends Model
{

/**
* @var string|null
*/
Expand Down
5 changes: 4 additions & 1 deletion src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);

Expand Down
4 changes: 3 additions & 1 deletion src/TCGdex.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@
*/
class TCGdex
{

/**
* @deprecated use TCGdex::getVersion()
*/
public const VERSION = "2.x.x";

/**
* @return string
*/
public static function getVersion()
{
try {
Expand Down

0 comments on commit 79358d8

Please sign in to comment.