| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php namespace Arcanedev\Sanitizer\Filters; |
||
| 50 | 36 | private function checkOptions(array $options) |
|
| 51 | { |
||
| 52 | 36 | if (count($options) != 2) { |
|
| 53 | 9 | throw new InvalidArgumentException( |
|
| 54 | 6 | 'The Sanitizer Format Date filter requires both the current date format as well as the target format.' |
|
| 55 | 3 | ); |
|
| 56 | } |
||
| 57 | 27 | } |
|
| 58 | } |
||
| 59 |