Skip to content

Commit fa4be21

Browse files
author
Samuel
committed
Merge branch '2.0' of github.com:sfelix-martins/json-exception-handler into 2.0
2 parents c46a585 + d2fc5ee commit fa4be21

16 files changed

+17
-23
lines changed

resources/lang/en/exceptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@
3636
*/
3737
'models' => [
3838
'User' => 'User',
39-
]
39+
],
4040
];

resources/lang/pt-br/exceptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@
3636
*/
3737
'models' => [
3838
'User' => 'Usuário',
39-
]
39+
],
4040
];

src/Handlers/AbstractHandler.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@
44

55
use Exception;
66
use InvalidArgumentException;
7-
use Illuminate\Support\Collection;
87
use SMartins\Exceptions\JsonApi\Error;
98
use Illuminate\Auth\AuthenticationException;
109
use Illuminate\Validation\ValidationException;
11-
use Illuminate\Auth\Access\AuthorizationException;
1210
use SMartins\Exceptions\Response\ErrorHandledInterface;
1311
use Illuminate\Database\Eloquent\ModelNotFoundException;
1412
use SMartins\Exceptions\JsonApi\Response as JsonApiResponse;
1513
use SMartins\Exceptions\Response\ErrorHandledCollectionInterface;
16-
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
1714
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
1815

1916
abstract class AbstractHandler
@@ -136,7 +133,7 @@ public function getExceptionHandler()
136133
}
137134

138135
/**
139-
* Get exception handlers from internal and set on App\Exceptions\Handler.php
136+
* Get exception handlers from internal and set on App\Exceptions\Handler.php.
140137
*
141138
* @return array
142139
*/

src/Handlers/AuthenticationHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class AuthenticationHandler extends AbstractHandler
99
{
1010
/**
11-
* {@inheritDoc}
11+
* {@inheritdoc}
1212
*/
1313
public function handle()
1414
{

src/Handlers/AuthorizationHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class AuthorizationHandler extends AbstractHandler
99
{
1010
/**
11-
* {@inheritDoc}
11+
* {@inheritdoc}
1212
*/
1313
public function handle()
1414
{

src/Handlers/BadRequestHttpHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class BadRequestHttpHandler extends AbstractHandler
99
{
1010
/**
11-
* {@inheritDoc}
11+
* {@inheritdoc}
1212
*/
1313
public function handle()
1414
{

src/Handlers/Handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class Handler extends AbstractHandler
99
{
1010
/**
11-
* {@inheritDoc}
11+
* {@inheritdoc}
1212
*/
1313
public function handle()
1414
{

src/Handlers/MissingScopeHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class MissingScopeHandler extends AbstractHandler
99
{
1010
/**
11-
* {@inheritDoc}
11+
* {@inheritdoc}
1212
*/
1313
public function handle()
1414
{

src/Handlers/ModelNotFoundHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct(ModelNotFoundException $e)
1919
}
2020

2121
/**
22-
* {@inheritDoc}
22+
* {@inheritdoc}
2323
*/
2424
public function handle()
2525
{

src/Handlers/NotFoundHttpHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class NotFoundHttpHandler extends AbstractHandler
99
{
1010
/**
11-
* {@inheritDoc}
11+
* {@inheritdoc}
1212
*/
1313
public function handle()
1414
{

0 commit comments

Comments
 (0)