Skip to content

Commit 70884c5

Browse files
Merge pull request #10 from sfelix-martins/analysis-BMVbNL
Apply fixes from StyleCI
2 parents 182914b + 77daea0 commit 70884c5

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

src/Handlers/AbstractHandler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
use Exception;
66
use Illuminate\Auth\Access\AuthorizationException;
7-
use Illuminate\Support\Str;
8-
use InvalidArgumentException;
97
use Illuminate\Auth\AuthenticationException;
10-
use Illuminate\Validation\ValidationException;
11-
use SMartins\Exceptions\Response\ErrorHandledInterface;
128
use Illuminate\Database\Eloquent\ModelNotFoundException;
9+
use Illuminate\Support\Str;
10+
use Illuminate\Validation\ValidationException;
11+
use InvalidArgumentException;
1312
use SMartins\Exceptions\JsonApi\Response as JsonApiResponse;
1413
use SMartins\Exceptions\Response\ErrorHandledCollectionInterface;
14+
use SMartins\Exceptions\Response\ErrorHandledInterface;
1515
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
1616
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
1717

src/Handlers/ModelNotFoundHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace SMartins\Exceptions\Handlers;
44

5+
use Illuminate\Database\Eloquent\ModelNotFoundException;
56
use Illuminate\Support\Str;
67
use SMartins\Exceptions\JsonApi\Error;
78
use SMartins\Exceptions\JsonApi\Source;
8-
use Illuminate\Database\Eloquent\ModelNotFoundException;
99

1010
class ModelNotFoundHandler extends AbstractHandler
1111
{

src/Handlers/OAuthServerHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace SMartins\Exceptions\Handlers;
44

5+
use League\OAuth2\Server\Exception\OAuthServerException;
56
use SMartins\Exceptions\JsonApi\Error;
67
use SMartins\Exceptions\JsonApi\Source;
7-
use League\OAuth2\Server\Exception\OAuthServerException;
88

99
class OAuthServerHandler extends AbstractHandler
1010
{

src/Handlers/ValidationHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace SMartins\Exceptions\Handlers;
44

55
use SMartins\Exceptions\JsonApi\Error;
6-
use SMartins\Exceptions\JsonApi\Source;
76
use SMartins\Exceptions\JsonApi\ErrorCollection;
7+
use SMartins\Exceptions\JsonApi\Source;
88

99
class ValidationHandler extends AbstractHandler
1010
{

src/JsonApi/Error.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
namespace SMartins\Exceptions\JsonApi;
44

55
use Illuminate\Contracts\Support\Arrayable;
6-
use SMartins\Exceptions\Traits\NotNullArrayable;
7-
use SMartins\Exceptions\Response\ErrorHandledInterface;
86
use SMartins\Exceptions\Response\ErrorHandledCollectionInterface;
7+
use SMartins\Exceptions\Response\ErrorHandledInterface;
8+
use SMartins\Exceptions\Traits\NotNullArrayable;
99

1010
class Error implements Arrayable, ErrorHandledInterface
1111
{

src/JsonApi/ErrorCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace SMartins\Exceptions\JsonApi;
44

55
use Illuminate\Support\Collection;
6-
use SMartins\Exceptions\Response\InvalidContentException;
76
use SMartins\Exceptions\Response\ErrorHandledCollectionInterface;
7+
use SMartins\Exceptions\Response\InvalidContentException;
88

99
class ErrorCollection extends Collection implements ErrorHandledCollectionInterface
1010
{

0 commit comments

Comments
 (0)