Skip to content

Commit

Permalink
Merge pull request #1615 from liip/cs
Browse files Browse the repository at this point in the history
apply cs fixer
  • Loading branch information
dbu authored Dec 12, 2024
2 parents 6d8dee9 + 48e62d7 commit f48fbc4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,6 @@
'semicolon_after_instruction' => true,
'strict_comparison' => true,
'strict_param' => true,
'trailing_comma_in_multiline' => ['elements' => ['arrays']], // trailing comma on parameters / arguments not compatible with PHP 7
'get_class_to_class_keyword' => false, // not compatible with PHP 7
]);
4 changes: 2 additions & 2 deletions Async/ResolveCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ResolveCache implements \JsonSerializable
private $path;

/**
* @var array|\string[]|null
* @var array|string[]|null
*/
private $filters;

Expand All @@ -50,7 +50,7 @@ public function getPath(): string
}

/**
* @return \string[]|null
* @return string[]|null
*/
public function getFilters()
{
Expand Down
6 changes: 3 additions & 3 deletions Binary/Loader/FileSystemLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ public function __construct(
public function find($path)
{
$path = $this->locator->locate($path);
if (\is_file($path) === false) {

if (false === is_file($path)) {
throw new NotLoadableException(\sprintf('Source image: "%s" is no file.', $path));
}

$mimeType = $this->mimeTypeGuesser instanceof DeprecatedMimeTypeGuesserInterface ? $this->mimeTypeGuesser->guess($path) : $this->mimeTypeGuesser->guessMimeType($path);
$extension = $this->getExtension($mimeType);

Expand Down

0 comments on commit f48fbc4

Please sign in to comment.