| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public static function validate(array $options): array |
||
| 22 | { |
||
| 23 | if (!isset($options['host'])) { |
||
| 24 | throw new InvalidArgumentException('host is required for smb'); |
||
| 25 | } |
||
| 26 | |||
| 27 | if (!isset($options['share'])) { |
||
| 28 | throw new InvalidArgumentException('share name is required for smb'); |
||
| 29 | } |
||
| 30 | |||
| 31 | return $options; |
||
| 32 | } |
||
| 33 | } |
||
| 34 |