Skip to content

Commit

Permalink
chore: update cs-config
Browse files Browse the repository at this point in the history
  • Loading branch information
rem42 committed Aug 5, 2022
1 parent c919c14 commit 9396cd7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"symfony/serializer-pack": "^1.1"
},
"require-dev": {
"rem42/php-cs-fixer-config": "^3.3",
"rem42/php-cs-fixer-config": "^3.4",
"phpstan/phpstan": "^1.8",
"phpunit/phpunit": "^9.5"
},
Expand All @@ -33,7 +33,7 @@
"scripts": {
"static-analysis": "./vendor/bin/phpstan analyse src --level=max --no-progress -vvv",
"code-style-check": "./vendor/bin/php-cs-fixer fix --dry-run --verbose",
"code-style-fix": "./vendor/bin/php-cs-fixer fix",
"code-style-fix": "./vendor/bin/php-cs-fixer fix --using-cache=no",
"unit-test": "./vendor/bin/phpunit"
}
}
8 changes: 4 additions & 4 deletions src/Model/Movie.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ final class Movie
public Poster $poster;
public Trailer $trailer;
public string $trailerEmbed;
public int $hasVOD = 0;
public int $hasBluRay = 0;
public int $hasDVD = 0;
public int $hasVOD = 0;
public int $hasBluRay = 0;
public int $hasDVD = 0;
public int $hasBroadcast = 0;
public int $hasShowtime = 0;
public int $hasShowtime = 0;
public \DateTime $dvdReleaseDate;
public \DateTime $bluRayReleaseDate;
/** @var array<Link> */
Expand Down
10 changes: 5 additions & 5 deletions src/Request/AllocineRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ abstract class AllocineRequest extends ScraperRequest implements RequestQuery
public function __construct(string $partner, string $hash)
{
$this->partner = $partner;
$this->hash = $hash;
$this->hash = $hash;
}

/**
Expand All @@ -39,11 +39,11 @@ public function __construct(string $partner, string $hash)
public function getQuery(): array
{
$parameters = array_merge($this->parameters, [
'format' => 'json',
'format' => 'json',
'mediafmt' => $this->mediaFmt,
'profile' => $this->profile,
'partner' => $this->partner,
'sed' => date('Ymd'),
'profile' => $this->profile,
'partner' => $this->partner,
'sed' => date('Ymd'),
]);

uksort($parameters, static function (string $key1, string $key2) {
Expand Down
10 changes: 5 additions & 5 deletions src/Request/AllocineSearchRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
class AllocineSearchRequest extends AllocineRequest
{
protected string $filter = 'movie,tvseries,theater,person,video,news,program';
protected string $path = 'search';
protected string $path = 'search';
protected string $query;

protected int $count = 20;
protected int $page = 1;
protected int $page = 1;

/**
* @return array<string, int|string>
Expand All @@ -21,9 +21,9 @@ public function getQuery(): array
{
$this->parameters = [
'filter' => $this->filter,
'q' => $this->query,
'count' => $this->count,
'page' => $this->page,
'q' => $this->query,
'count' => $this->count,
'page' => $this->page,
];
return parent::getQuery();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Request/AllocineSearchRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ final class AllocineSearchRequestTest extends AbtractRequestTest
{
public function testAllocineSearchRequest(): void
{
$client = $this->getClient('search.json');
$client = $this->getClient('search.json');
$request = new AllocineSearchRequest('partner', 'hash');
$request->setQuery('marvel');

Expand Down

0 comments on commit 9396cd7

Please sign in to comment.