@@ -16,73 +16,73 @@ |
||
16 | 16 | |
17 | 17 | class ParseErrorException extends BaseInvalidArgumentException implements InvalidArgumentException |
18 | 18 | { |
19 | - /** |
|
20 | - * The expected. |
|
21 | - * |
|
22 | - * @var string |
|
23 | - */ |
|
24 | - protected $expected; |
|
19 | + /** |
|
20 | + * The expected. |
|
21 | + * |
|
22 | + * @var string |
|
23 | + */ |
|
24 | + protected $expected; |
|
25 | 25 | |
26 | - /** |
|
27 | - * The actual. |
|
28 | - * |
|
29 | - * @var string |
|
30 | - */ |
|
31 | - protected $actual; |
|
26 | + /** |
|
27 | + * The actual. |
|
28 | + * |
|
29 | + * @var string |
|
30 | + */ |
|
31 | + protected $actual; |
|
32 | 32 | |
33 | - /** |
|
34 | - * The help message. |
|
35 | - * |
|
36 | - * @var string |
|
37 | - */ |
|
38 | - protected $help; |
|
33 | + /** |
|
34 | + * The help message. |
|
35 | + * |
|
36 | + * @var string |
|
37 | + */ |
|
38 | + protected $help; |
|
39 | 39 | |
40 | - /** |
|
41 | - * Constructor. |
|
42 | - * |
|
43 | - * @param string $expected |
|
44 | - * @param string $actual |
|
45 | - * @param int $code |
|
46 | - * @param Throwable|null $previous |
|
47 | - */ |
|
48 | - public function __construct($expected, $actual, $help = '', $code = 0, Throwable $previous = null) |
|
49 | - { |
|
50 | - $this->expected = $expected; |
|
51 | - $this->actual = $actual; |
|
52 | - $this->help = $help; |
|
40 | + /** |
|
41 | + * Constructor. |
|
42 | + * |
|
43 | + * @param string $expected |
|
44 | + * @param string $actual |
|
45 | + * @param int $code |
|
46 | + * @param Throwable|null $previous |
|
47 | + */ |
|
48 | + public function __construct($expected, $actual, $help = '', $code = 0, Throwable $previous = null) |
|
49 | + { |
|
50 | + $this->expected = $expected; |
|
51 | + $this->actual = $actual; |
|
52 | + $this->help = $help; |
|
53 | 53 | |
54 | - $actual = $actual === '' ? 'data is missing' : "get '$actual'"; |
|
54 | + $actual = $actual === '' ? 'data is missing' : "get '$actual'"; |
|
55 | 55 | |
56 | - parent::__construct(trim("Format expected $expected but $actual\n$help"), $code, $previous); |
|
57 | - } |
|
56 | + parent::__construct(trim("Format expected $expected but $actual\n$help"), $code, $previous); |
|
57 | + } |
|
58 | 58 | |
59 | - /** |
|
60 | - * Get the expected. |
|
61 | - * |
|
62 | - * @return string |
|
63 | - */ |
|
64 | - public function getExpected(): string |
|
65 | - { |
|
66 | - return $this->expected; |
|
67 | - } |
|
59 | + /** |
|
60 | + * Get the expected. |
|
61 | + * |
|
62 | + * @return string |
|
63 | + */ |
|
64 | + public function getExpected(): string |
|
65 | + { |
|
66 | + return $this->expected; |
|
67 | + } |
|
68 | 68 | |
69 | - /** |
|
70 | - * Get the actual. |
|
71 | - * |
|
72 | - * @return string |
|
73 | - */ |
|
74 | - public function getActual(): string |
|
75 | - { |
|
76 | - return $this->actual; |
|
77 | - } |
|
69 | + /** |
|
70 | + * Get the actual. |
|
71 | + * |
|
72 | + * @return string |
|
73 | + */ |
|
74 | + public function getActual(): string |
|
75 | + { |
|
76 | + return $this->actual; |
|
77 | + } |
|
78 | 78 | |
79 | - /** |
|
80 | - * Get the help message. |
|
81 | - * |
|
82 | - * @return string |
|
83 | - */ |
|
84 | - public function getHelp(): string |
|
85 | - { |
|
86 | - return $this->help; |
|
87 | - } |
|
79 | + /** |
|
80 | + * Get the help message. |
|
81 | + * |
|
82 | + * @return string |
|
83 | + */ |
|
84 | + public function getHelp(): string |
|
85 | + { |
|
86 | + return $this->help; |
|
87 | + } |
|
88 | 88 | } |
@@ -15,5 +15,5 @@ |
||
15 | 15 | |
16 | 16 | class UnitException extends BaseInvalidArgumentException implements InvalidArgumentException |
17 | 17 | { |
18 | - // |
|
18 | + // |
|
19 | 19 | } |
@@ -16,34 +16,34 @@ |
||
16 | 16 | |
17 | 17 | class BadFluentConstructorException extends BaseBadMethodCallException implements BadMethodCallException |
18 | 18 | { |
19 | - /** |
|
20 | - * The method. |
|
21 | - * |
|
22 | - * @var string |
|
23 | - */ |
|
24 | - protected $method; |
|
19 | + /** |
|
20 | + * The method. |
|
21 | + * |
|
22 | + * @var string |
|
23 | + */ |
|
24 | + protected $method; |
|
25 | 25 | |
26 | - /** |
|
27 | - * Constructor. |
|
28 | - * |
|
29 | - * @param string $method |
|
30 | - * @param int $code |
|
31 | - * @param Throwable|null $previous |
|
32 | - */ |
|
33 | - public function __construct($method, $code = 0, Throwable $previous = null) |
|
34 | - { |
|
35 | - $this->method = $method; |
|
26 | + /** |
|
27 | + * Constructor. |
|
28 | + * |
|
29 | + * @param string $method |
|
30 | + * @param int $code |
|
31 | + * @param Throwable|null $previous |
|
32 | + */ |
|
33 | + public function __construct($method, $code = 0, Throwable $previous = null) |
|
34 | + { |
|
35 | + $this->method = $method; |
|
36 | 36 | |
37 | - parent::__construct(sprintf("Unknown fluent constructor '%s'.", $method), $code, $previous); |
|
38 | - } |
|
37 | + parent::__construct(sprintf("Unknown fluent constructor '%s'.", $method), $code, $previous); |
|
38 | + } |
|
39 | 39 | |
40 | - /** |
|
41 | - * Get the method. |
|
42 | - * |
|
43 | - * @return string |
|
44 | - */ |
|
45 | - public function getMethod(): string |
|
46 | - { |
|
47 | - return $this->method; |
|
48 | - } |
|
40 | + /** |
|
41 | + * Get the method. |
|
42 | + * |
|
43 | + * @return string |
|
44 | + */ |
|
45 | + public function getMethod(): string |
|
46 | + { |
|
47 | + return $this->method; |
|
48 | + } |
|
49 | 49 | } |
@@ -15,5 +15,5 @@ |
||
15 | 15 | |
16 | 16 | class UnreachableException extends BaseRuntimeException implements RuntimeException |
17 | 17 | { |
18 | - // |
|
18 | + // |
|
19 | 19 | } |
@@ -15,5 +15,5 @@ |
||
15 | 15 | |
16 | 16 | class InvalidPeriodParameterException extends BaseInvalidArgumentException implements InvalidArgumentException |
17 | 17 | { |
18 | - // |
|
18 | + // |
|
19 | 19 | } |
@@ -16,34 +16,34 @@ |
||
16 | 16 | |
17 | 17 | class UnknownGetterException extends BaseInvalidArgumentException implements InvalidArgumentException |
18 | 18 | { |
19 | - /** |
|
20 | - * The getter. |
|
21 | - * |
|
22 | - * @var string |
|
23 | - */ |
|
24 | - protected $getter; |
|
19 | + /** |
|
20 | + * The getter. |
|
21 | + * |
|
22 | + * @var string |
|
23 | + */ |
|
24 | + protected $getter; |
|
25 | 25 | |
26 | - /** |
|
27 | - * Constructor. |
|
28 | - * |
|
29 | - * @param string $getter getter name |
|
30 | - * @param int $code |
|
31 | - * @param Throwable|null $previous |
|
32 | - */ |
|
33 | - public function __construct($getter, $code = 0, Throwable $previous = null) |
|
34 | - { |
|
35 | - $this->getter = $getter; |
|
26 | + /** |
|
27 | + * Constructor. |
|
28 | + * |
|
29 | + * @param string $getter getter name |
|
30 | + * @param int $code |
|
31 | + * @param Throwable|null $previous |
|
32 | + */ |
|
33 | + public function __construct($getter, $code = 0, Throwable $previous = null) |
|
34 | + { |
|
35 | + $this->getter = $getter; |
|
36 | 36 | |
37 | - parent::__construct("Unknown getter '$getter'", $code, $previous); |
|
38 | - } |
|
37 | + parent::__construct("Unknown getter '$getter'", $code, $previous); |
|
38 | + } |
|
39 | 39 | |
40 | - /** |
|
41 | - * Get the getter. |
|
42 | - * |
|
43 | - * @return string |
|
44 | - */ |
|
45 | - public function getGetter(): string |
|
46 | - { |
|
47 | - return $this->getter; |
|
48 | - } |
|
40 | + /** |
|
41 | + * Get the getter. |
|
42 | + * |
|
43 | + * @return string |
|
44 | + */ |
|
45 | + public function getGetter(): string |
|
46 | + { |
|
47 | + return $this->getter; |
|
48 | + } |
|
49 | 49 | } |
@@ -13,5 +13,5 @@ |
||
13 | 13 | |
14 | 14 | interface Exception |
15 | 15 | { |
16 | - // |
|
16 | + // |
|
17 | 17 | } |
@@ -15,34 +15,34 @@ |
||
15 | 15 | |
16 | 16 | class UnknownUnitException extends UnitException |
17 | 17 | { |
18 | - /** |
|
19 | - * The unit. |
|
20 | - * |
|
21 | - * @var string |
|
22 | - */ |
|
23 | - protected $unit; |
|
18 | + /** |
|
19 | + * The unit. |
|
20 | + * |
|
21 | + * @var string |
|
22 | + */ |
|
23 | + protected $unit; |
|
24 | 24 | |
25 | - /** |
|
26 | - * Constructor. |
|
27 | - * |
|
28 | - * @param string $unit |
|
29 | - * @param int $code |
|
30 | - * @param Throwable|null $previous |
|
31 | - */ |
|
32 | - public function __construct($unit, $code = 0, Throwable $previous = null) |
|
33 | - { |
|
34 | - $this->unit = $unit; |
|
25 | + /** |
|
26 | + * Constructor. |
|
27 | + * |
|
28 | + * @param string $unit |
|
29 | + * @param int $code |
|
30 | + * @param Throwable|null $previous |
|
31 | + */ |
|
32 | + public function __construct($unit, $code = 0, Throwable $previous = null) |
|
33 | + { |
|
34 | + $this->unit = $unit; |
|
35 | 35 | |
36 | - parent::__construct("Unknown unit '$unit'.", $code, $previous); |
|
37 | - } |
|
36 | + parent::__construct("Unknown unit '$unit'.", $code, $previous); |
|
37 | + } |
|
38 | 38 | |
39 | - /** |
|
40 | - * Get the unit. |
|
41 | - * |
|
42 | - * @return string |
|
43 | - */ |
|
44 | - public function getUnit(): string |
|
45 | - { |
|
46 | - return $this->unit; |
|
47 | - } |
|
39 | + /** |
|
40 | + * Get the unit. |
|
41 | + * |
|
42 | + * @return string |
|
43 | + */ |
|
44 | + public function getUnit(): string |
|
45 | + { |
|
46 | + return $this->unit; |
|
47 | + } |
|
48 | 48 | } |
@@ -13,5 +13,5 @@ |
||
13 | 13 | |
14 | 14 | interface BadMethodCallException extends Exception |
15 | 15 | { |
16 | - // |
|
16 | + // |
|
17 | 17 | } |