Skip to content

Commit

Permalink
Move PHP CS Fixer cache file
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegamez committed May 13, 2021
1 parent 5c5c8f3 commit 36257df
Show file tree
Hide file tree
Showing 4 changed files with 4 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 @@ -8,6 +8,7 @@
// https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/master/doc/rules/index.rst
return (new PhpCsFixer\Config())
->setUsingCache(true)
->setCacheFile(__DIR__.'/tools/php-cs-fixer/.php-cs-fixer.cache')
->setRiskyAllowed(true)
->setRules([
'@PhpCsFixer' => true,
Expand Down
3 changes: 1 addition & 2 deletions src/Firebase/Exception/AuthApiExceptionConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Kreait\Firebase\Exception;

use GuzzleHttp\Exception\ConnectException;
use GuzzleHttp\Exception\GuzzleException;
use GuzzleHttp\Exception\RequestException;
use Kreait\Firebase\Exception\Auth\ApiConnectionFailed;
use Kreait\Firebase\Exception\Auth\AuthError;
Expand Down Expand Up @@ -43,7 +42,7 @@ public function __construct()

public function convertException(Throwable $exception): AuthException
{
/* @phpstan-ignore-next-line */
// @phpstan-ignore-next-line
if ($exception instanceof RequestException && !($exception instanceof ConnectException)) {
return $this->convertGuzzleRequestException($exception);
}
Expand Down
3 changes: 1 addition & 2 deletions src/Firebase/Exception/DatabaseApiExceptionConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Kreait\Firebase\Exception;

use GuzzleHttp\Exception\ConnectException;
use GuzzleHttp\Exception\GuzzleException;
use GuzzleHttp\Exception\RequestException;
use Kreait\Firebase\Exception\Database\ApiConnectionFailed;
use Kreait\Firebase\Exception\Database\DatabaseError;
Expand All @@ -29,7 +28,7 @@ public function __construct()

public function convertException(Throwable $exception): DatabaseException
{
/* @phpstan-ignore-next-line */
// @phpstan-ignore-next-line
if ($exception instanceof RequestException && !($exception instanceof ConnectException)) {
return $this->convertGuzzleRequestException($exception);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Firebase/Exception/MessagingApiExceptionConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct(?Clock $clock = null)
*/
public function convertException(Throwable $exception): FirebaseException
{
/* @phpstan-ignore-next-line */
// @phpstan-ignore-next-line
if ($exception instanceof RequestException && !($exception instanceof ConnectException)) {
return $this->convertGuzzleRequestException($exception);
}
Expand Down

0 comments on commit 36257df

Please sign in to comment.