@@ -12,6 +12,5 @@ |
||
| 12 | 12 | /** |
| 13 | 13 | * Wrapper for the InvalidArgumentException |
| 14 | 14 | */ |
| 15 | -class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface |
|
| 16 | -{ |
|
| 15 | +class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface { |
|
| 17 | 16 | } |
@@ -2,6 +2,5 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace JsonSchema\Exception; |
| 4 | 4 | |
| 5 | -interface ExceptionInterface |
|
| 6 | -{ |
|
| 5 | +interface ExceptionInterface { |
|
| 7 | 6 | } |
@@ -12,10 +12,8 @@ |
||
| 12 | 12 | /** |
| 13 | 13 | * Wrapper for the JsonDecodingException |
| 14 | 14 | */ |
| 15 | -class JsonDecodingException extends RuntimeException |
|
| 16 | -{ |
|
| 17 | - public function __construct($code = JSON_ERROR_NONE, \Exception $previous = null) |
|
| 18 | - { |
|
| 15 | +class JsonDecodingException extends RuntimeException { |
|
| 16 | + public function __construct($code = JSON_ERROR_NONE, \Exception $previous = null) { |
|
| 19 | 17 | switch ($code) { |
| 20 | 18 | case JSON_ERROR_DEPTH: |
| 21 | 19 | $message = 'The maximum stack depth has been exceeded'; |
@@ -12,6 +12,5 @@ |
||
| 12 | 12 | /** |
| 13 | 13 | * Wrapper for the UriResolverException |
| 14 | 14 | */ |
| 15 | -class UriResolverException extends RuntimeException |
|
| 16 | -{ |
|
| 15 | +class UriResolverException extends RuntimeException { |
|
| 17 | 16 | } |
@@ -12,6 +12,5 @@ |
||
| 12 | 12 | /** |
| 13 | 13 | * Wrapper for the InvalidSchemaMediaType |
| 14 | 14 | */ |
| 15 | -class InvalidSchemaException extends RuntimeException |
|
| 16 | -{ |
|
| 15 | +class InvalidSchemaException extends RuntimeException { |
|
| 17 | 16 | } |
@@ -12,6 +12,5 @@ |
||
| 12 | 12 | /** |
| 13 | 13 | * Wrapper for the RuntimeException |
| 14 | 14 | */ |
| 15 | -class RuntimeException extends \RuntimeException implements ExceptionInterface |
|
| 16 | -{ |
|
| 15 | +class RuntimeException extends \RuntimeException implements ExceptionInterface { |
|
| 17 | 16 | } |
@@ -12,6 +12,5 @@ |
||
| 12 | 12 | /** |
| 13 | 13 | * Wrapper for the InvalidSourceUriException |
| 14 | 14 | */ |
| 15 | -class InvalidSourceUriException extends InvalidArgumentException |
|
| 16 | -{ |
|
| 15 | +class InvalidSourceUriException extends InvalidArgumentException { |
|
| 17 | 16 | } |
@@ -12,6 +12,5 @@ |
||
| 12 | 12 | /** |
| 13 | 13 | * Wrapper for the InvalidSchemaMediaType |
| 14 | 14 | */ |
| 15 | -class InvalidSchemaMediaTypeException extends RuntimeException |
|
| 16 | -{ |
|
| 15 | +class InvalidSchemaMediaTypeException extends RuntimeException { |
|
| 17 | 16 | } |
@@ -12,6 +12,5 @@ |
||
| 12 | 12 | /** |
| 13 | 13 | * Wrapper for the ResourceNotFoundException |
| 14 | 14 | */ |
| 15 | -class ResourceNotFoundException extends RuntimeException |
|
| 16 | -{ |
|
| 15 | +class ResourceNotFoundException extends RuntimeException { |
|
| 17 | 16 | } |