Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit 0420474

Browse files
committed
Some code cleanup
1 parent 7ddaaa0 commit 0420474

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/Dispatch/MethodDispatcher.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
use stdClass;
1010
use Teapot\StatusCode;
1111
use Usox\JsonSchemaApi\Contract\MethodProviderInterface;
12+
use Usox\JsonSchemaApi\Dispatch\Exception\SchemaInvalidException;
13+
use Usox\JsonSchemaApi\Dispatch\Exception\SchemaNotLoadableException;
1214
use Usox\JsonSchemaApi\Exception\ApiMethodException;
1315
use Usox\JsonSchemaApi\Exception\MethodNotFoundException;
1416
use Usox\JsonSchemaApi\Exception\RequestMalformedException;
@@ -40,8 +42,9 @@ public function __construct(
4042
* @throws ApiMethodException
4143
* @throws RequestMalformedException
4244
* @throws ResponseMalformedException
43-
* @throws \Usox\JsonSchemaApi\Dispatch\Exception\SchemaInvalidException
45+
* @throws SchemaInvalidException
4446
* @throws SchemaNotFoundException
47+
* @throws SchemaNotLoadableException
4548
*/
4649
public function dispatch(
4750
ServerRequestInterface $request,

src/Dispatch/MethodDispatcherInterface.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
use Psr\Http\Message\ServerRequestInterface;
66
use stdClass;
7+
use Usox\JsonSchemaApi\Dispatch\Exception\SchemaInvalidException;
78
use Usox\JsonSchemaApi\Exception\ApiMethodException;
89
use Usox\JsonSchemaApi\Exception\MethodNotFoundException;
910
use Usox\JsonSchemaApi\Exception\RequestMalformedException;
1011
use Usox\JsonSchemaApi\Exception\ResponseMalformedException;
11-
use Usox\JsonSchemaApi\Dispatch\Exception\SchemaInvalidException;
1212
use Usox\JsonSchemaApi\Dispatch\Exception\SchemaNotFoundException;
1313

1414
interface MethodDispatcherInterface
@@ -20,7 +20,7 @@ interface MethodDispatcherInterface
2020
* @throws ApiMethodException
2121
* @throws RequestMalformedException
2222
* @throws ResponseMalformedException
23-
* @throws \Usox\JsonSchemaApi\Dispatch\Exception\SchemaInvalidException
23+
* @throws SchemaInvalidException
2424
* @throws SchemaNotFoundException
2525
*/
2626
public function dispatch(

0 commit comments

Comments
 (0)