@@ -12,19 +12,19 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | class LevelIsNotDefinedException extends InvalidArgumentException implements ExceptionInterface |
| 14 | 14 | { |
| 15 | - /** |
|
| 16 | - * @param string $level |
|
| 17 | - * @param array $levels |
|
| 18 | - * @return static |
|
| 19 | - */ |
|
| 20 | - public static function create($level, array $levels) |
|
| 21 | - { |
|
| 22 | - $message = sprintf( |
|
| 23 | - 'Level "%s" is not defined, use one of: "%s"', |
|
| 24 | - $level, |
|
| 25 | - implode('", "', array_keys($levels)) |
|
| 26 | - ); |
|
| 15 | + /** |
|
| 16 | + * @param string $level |
|
| 17 | + * @param array $levels |
|
| 18 | + * @return static |
|
| 19 | + */ |
|
| 20 | + public static function create($level, array $levels) |
|
| 21 | + { |
|
| 22 | + $message = sprintf( |
|
| 23 | + 'Level "%s" is not defined, use one of: "%s"', |
|
| 24 | + $level, |
|
| 25 | + implode('", "', array_keys($levels)) |
|
| 26 | + ); |
|
| 27 | 27 | |
| 28 | - return new static($message); |
|
| 29 | - } |
|
| 28 | + return new static($message); |
|
| 29 | + } |
|
| 30 | 30 | } |
@@ -10,15 +10,13 @@ |
||
| 10 | 10 | * @package Yep\WorkflowLogger\Exception |
| 11 | 11 | * @author Martin Zeman (Zemistr) <[email protected]> |
| 12 | 12 | */ |
| 13 | -class LevelIsNotDefinedException extends InvalidArgumentException implements ExceptionInterface |
|
| 14 | -{ |
|
| 13 | +class LevelIsNotDefinedException extends InvalidArgumentException implements ExceptionInterface { |
|
| 15 | 14 | /** |
| 16 | 15 | * @param string $level |
| 17 | 16 | * @param array $levels |
| 18 | 17 | * @return static |
| 19 | 18 | */ |
| 20 | - public static function create($level, array $levels) |
|
| 21 | - { |
|
| 19 | + public static function create($level, array $levels) { |
|
| 22 | 20 | $message = sprintf( |
| 23 | 21 | 'Level "%s" is not defined, use one of: "%s"', |
| 24 | 22 | $level, |
@@ -8,6 +8,5 @@ |
||
| 8 | 8 | * @package Yep\WorkflowLogger\Exception |
| 9 | 9 | * @author Martin Zeman (Zemistr) <[email protected]> |
| 10 | 10 | */ |
| 11 | -interface ExceptionInterface |
|
| 12 | -{ |
|
| 11 | +interface ExceptionInterface { |
|
| 13 | 12 | } |