| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function validate($value) : bool |
||
| 32 | { |
||
| 33 | if (empty($this->getArgumentName())) { |
||
| 34 | return false; |
||
| 35 | } |
||
| 36 | |||
| 37 | |||
| 38 | switch ($this->argumentName) { |
||
| 39 | case self::ALTERNATE_EXCHAGE: |
||
| 40 | return true; |
||
| 41 | |||
| 42 | default : |
||
|
|
|||
| 43 | throw new \RuntimeException('Argument not supported'); |
||
| 44 | } |
||
| 45 | } |
||
| 46 | } |
||
| 47 |
As per the PSR-2 coding standard, there must not be a space in front of the colon in the default statement.
To learn more about the PSR-2 coding standard, please refer to the PHP-Fig.