@@ -28,7 +28,8 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | public function getValue(string $source, mixed $name = null): mixed |
| 30 | 30 | { |
| 31 | - if (!$this->input->hasBag($source) && !\method_exists($this->input, $source)) { |
|
| 31 | + if (!$this->input->hasBag($source) && !\method_exists($this->input, $source)) |
|
| 32 | + { |
|
| 32 | 33 | throw new InputException(\sprintf('Undefined input source %s', $source)); |
| 33 | 34 | } |
| 34 | 35 | |
@@ -37,7 +38,8 @@ discard block |
||
| 37 | 38 | |
| 38 | 39 | public function hasValue(string $source, string $name): bool |
| 39 | 40 | { |
| 40 | - if (!$this->input->hasBag($source)) { |
|
| 41 | + if (!$this->input->hasBag($source)) |
|
| 42 | + { |
|
| 41 | 43 | return false; |
| 42 | 44 | } |
| 43 | 45 | |