@@ -10,22 +10,22 @@ |
||
10 | 10 | class Exception extends \Exception |
11 | 11 | { |
12 | 12 | |
13 | - /** |
|
14 | - * @var string |
|
15 | - */ |
|
16 | - protected $template = ''; |
|
13 | + /** |
|
14 | + * @var string |
|
15 | + */ |
|
16 | + protected $template = ''; |
|
17 | 17 | |
18 | - /** |
|
19 | - * @param string $message |
|
20 | - * @param int $code |
|
21 | - * @param null|\Exception $previous |
|
22 | - */ |
|
23 | - public function __construct($message, $code = 0, \Exception $previous = null) |
|
24 | - { |
|
25 | - if (is_array($message)) { |
|
26 | - $message = vsprintf($this->template, $message); |
|
27 | - } |
|
18 | + /** |
|
19 | + * @param string $message |
|
20 | + * @param int $code |
|
21 | + * @param null|\Exception $previous |
|
22 | + */ |
|
23 | + public function __construct($message, $code = 0, \Exception $previous = null) |
|
24 | + { |
|
25 | + if (is_array($message)) { |
|
26 | + $message = vsprintf($this->template, $message); |
|
27 | + } |
|
28 | 28 | |
29 | - parent::__construct($message, $code, $previous); |
|
30 | - } |
|
29 | + parent::__construct($message, $code, $previous); |
|
30 | + } |
|
31 | 31 | } |
@@ -7,8 +7,7 @@ discard block |
||
7 | 7 | * |
8 | 8 | * @package Zortje\MVC\Common\Exception |
9 | 9 | */ |
10 | -class Exception extends \Exception |
|
11 | -{ |
|
10 | +class Exception extends \Exception { |
|
12 | 11 | |
13 | 12 | /** |
14 | 13 | * @var string |
@@ -20,8 +19,7 @@ discard block |
||
20 | 19 | * @param int $code |
21 | 20 | * @param null|\Exception $previous |
22 | 21 | */ |
23 | - public function __construct($message, $code = 0, \Exception $previous = null) |
|
24 | - { |
|
22 | + public function __construct($message, $code = 0, \Exception $previous = null) { |
|
25 | 23 | if (is_array($message)) { |
26 | 24 | $message = vsprintf($this->template, $message); |
27 | 25 | } |
@@ -12,17 +12,17 @@ |
||
12 | 12 | class ControllerActionNonexistentException extends Exception |
13 | 13 | { |
14 | 14 | |
15 | - /** |
|
16 | - * {@inheritdoc} |
|
17 | - */ |
|
18 | - protected $template = 'Controller %s action %s is nonexistent'; |
|
15 | + /** |
|
16 | + * {@inheritdoc} |
|
17 | + */ |
|
18 | + protected $template = 'Controller %s action %s is nonexistent'; |
|
19 | 19 | |
20 | - /** |
|
21 | - * {@inheritdoc} |
|
22 | - */ |
|
23 | - public function __construct($message) |
|
24 | - { |
|
25 | - parent::__construct($message); |
|
26 | - } |
|
20 | + /** |
|
21 | + * {@inheritdoc} |
|
22 | + */ |
|
23 | + public function __construct($message) |
|
24 | + { |
|
25 | + parent::__construct($message); |
|
26 | + } |
|
27 | 27 | |
28 | 28 | } |
@@ -9,8 +9,7 @@ discard block |
||
9 | 9 | * |
10 | 10 | * @package Zortje\MVC\Controller\Exception |
11 | 11 | */ |
12 | -class ControllerActionNonexistentException extends Exception |
|
13 | -{ |
|
12 | +class ControllerActionNonexistentException extends Exception { |
|
14 | 13 | |
15 | 14 | /** |
16 | 15 | * {@inheritdoc} |
@@ -20,8 +19,7 @@ discard block |
||
20 | 19 | /** |
21 | 20 | * {@inheritdoc} |
22 | 21 | */ |
23 | - public function __construct($message) |
|
24 | - { |
|
22 | + public function __construct($message) { |
|
25 | 23 | parent::__construct($message); |
26 | 24 | } |
27 | 25 |
@@ -12,17 +12,17 @@ |
||
12 | 12 | class ControllerActionPrivateInsufficientAuthenticationException extends Exception |
13 | 13 | { |
14 | 14 | |
15 | - /** |
|
16 | - * {@inheritdoc} |
|
17 | - */ |
|
18 | - protected $template = 'Controller %s private action %s requires authentication'; |
|
15 | + /** |
|
16 | + * {@inheritdoc} |
|
17 | + */ |
|
18 | + protected $template = 'Controller %s private action %s requires authentication'; |
|
19 | 19 | |
20 | - /** |
|
21 | - * {@inheritdoc} |
|
22 | - */ |
|
23 | - public function __construct($message) |
|
24 | - { |
|
25 | - parent::__construct($message); |
|
26 | - } |
|
20 | + /** |
|
21 | + * {@inheritdoc} |
|
22 | + */ |
|
23 | + public function __construct($message) |
|
24 | + { |
|
25 | + parent::__construct($message); |
|
26 | + } |
|
27 | 27 | |
28 | 28 | } |
@@ -9,8 +9,7 @@ discard block |
||
9 | 9 | * |
10 | 10 | * @package Zortje\MVC\Controller\Exception |
11 | 11 | */ |
12 | -class ControllerActionPrivateInsufficientAuthenticationException extends Exception |
|
13 | -{ |
|
12 | +class ControllerActionPrivateInsufficientAuthenticationException extends Exception { |
|
14 | 13 | |
15 | 14 | /** |
16 | 15 | * {@inheritdoc} |
@@ -20,8 +19,7 @@ discard block |
||
20 | 19 | /** |
21 | 20 | * {@inheritdoc} |
22 | 21 | */ |
23 | - public function __construct($message) |
|
24 | - { |
|
22 | + public function __construct($message) { |
|
25 | 23 | parent::__construct($message); |
26 | 24 | } |
27 | 25 |
@@ -12,17 +12,17 @@ |
||
12 | 12 | class ControllerActionProtectedInsufficientAuthenticationException extends Exception |
13 | 13 | { |
14 | 14 | |
15 | - /** |
|
16 | - * {@inheritdoc} |
|
17 | - */ |
|
18 | - protected $template = 'Controller %s protected action %s requires authentication'; |
|
15 | + /** |
|
16 | + * {@inheritdoc} |
|
17 | + */ |
|
18 | + protected $template = 'Controller %s protected action %s requires authentication'; |
|
19 | 19 | |
20 | - /** |
|
21 | - * {@inheritdoc} |
|
22 | - */ |
|
23 | - public function __construct($message) |
|
24 | - { |
|
25 | - parent::__construct($message); |
|
26 | - } |
|
20 | + /** |
|
21 | + * {@inheritdoc} |
|
22 | + */ |
|
23 | + public function __construct($message) |
|
24 | + { |
|
25 | + parent::__construct($message); |
|
26 | + } |
|
27 | 27 | |
28 | 28 | } |
@@ -9,8 +9,7 @@ discard block |
||
9 | 9 | * |
10 | 10 | * @package Zortje\MVC\Controller\Exception |
11 | 11 | */ |
12 | -class ControllerActionProtectedInsufficientAuthenticationException extends Exception |
|
13 | -{ |
|
12 | +class ControllerActionProtectedInsufficientAuthenticationException extends Exception { |
|
14 | 13 | |
15 | 14 | /** |
16 | 15 | * {@inheritdoc} |
@@ -20,8 +19,7 @@ discard block |
||
20 | 19 | /** |
21 | 20 | * {@inheritdoc} |
22 | 21 | */ |
23 | - public function __construct($message) |
|
24 | - { |
|
22 | + public function __construct($message) { |
|
25 | 23 | parent::__construct($message); |
26 | 24 | } |
27 | 25 |
@@ -12,17 +12,17 @@ |
||
12 | 12 | class ControllerInvalidSuperclassException extends Exception |
13 | 13 | { |
14 | 14 | |
15 | - /** |
|
16 | - * {@inheritdoc} |
|
17 | - */ |
|
18 | - protected $template = 'Controller %s is not a subclass of Controller'; |
|
15 | + /** |
|
16 | + * {@inheritdoc} |
|
17 | + */ |
|
18 | + protected $template = 'Controller %s is not a subclass of Controller'; |
|
19 | 19 | |
20 | - /** |
|
21 | - * {@inheritdoc} |
|
22 | - */ |
|
23 | - public function __construct($message) |
|
24 | - { |
|
25 | - parent::__construct($message); |
|
26 | - } |
|
20 | + /** |
|
21 | + * {@inheritdoc} |
|
22 | + */ |
|
23 | + public function __construct($message) |
|
24 | + { |
|
25 | + parent::__construct($message); |
|
26 | + } |
|
27 | 27 | |
28 | 28 | } |
@@ -9,8 +9,7 @@ discard block |
||
9 | 9 | * |
10 | 10 | * @package Zortje\MVC\Controller\Exception |
11 | 11 | */ |
12 | -class ControllerInvalidSuperclassException extends Exception |
|
13 | -{ |
|
12 | +class ControllerInvalidSuperclassException extends Exception { |
|
14 | 13 | |
15 | 14 | /** |
16 | 15 | * {@inheritdoc} |
@@ -20,8 +19,7 @@ discard block |
||
20 | 19 | /** |
21 | 20 | * {@inheritdoc} |
22 | 21 | */ |
23 | - public function __construct($message) |
|
24 | - { |
|
22 | + public function __construct($message) { |
|
25 | 23 | parent::__construct($message); |
26 | 24 | } |
27 | 25 |
@@ -12,17 +12,17 @@ |
||
12 | 12 | class ControllerNonexistentException extends Exception |
13 | 13 | { |
14 | 14 | |
15 | - /** |
|
16 | - * {@inheritdoc} |
|
17 | - */ |
|
18 | - protected $template = 'Controller %s is nonexistent'; |
|
15 | + /** |
|
16 | + * {@inheritdoc} |
|
17 | + */ |
|
18 | + protected $template = 'Controller %s is nonexistent'; |
|
19 | 19 | |
20 | - /** |
|
21 | - * {@inheritdoc} |
|
22 | - */ |
|
23 | - public function __construct($message) |
|
24 | - { |
|
25 | - parent::__construct($message); |
|
26 | - } |
|
20 | + /** |
|
21 | + * {@inheritdoc} |
|
22 | + */ |
|
23 | + public function __construct($message) |
|
24 | + { |
|
25 | + parent::__construct($message); |
|
26 | + } |
|
27 | 27 | |
28 | 28 | } |
@@ -9,8 +9,7 @@ discard block |
||
9 | 9 | * |
10 | 10 | * @package Zortje\MVC\Controller\Exception |
11 | 11 | */ |
12 | -class ControllerNonexistentException extends Exception |
|
13 | -{ |
|
12 | +class ControllerNonexistentException extends Exception { |
|
14 | 13 | |
15 | 14 | /** |
16 | 15 | * {@inheritdoc} |
@@ -20,8 +19,7 @@ discard block |
||
20 | 19 | /** |
21 | 20 | * {@inheritdoc} |
22 | 21 | */ |
23 | - public function __construct($message) |
|
24 | - { |
|
22 | + public function __construct($message) { |
|
25 | 23 | parent::__construct($message); |
26 | 24 | } |
27 | 25 |