| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 47 | 6 | protected function validateArguments(Node ...$arguments): void |
|
| 48 | { |
||
| 49 | 6 | parent::validateArguments(...$arguments); |
|
| 50 | |||
| 51 | // Validate that the third parameter is a valid timezone if provided |
||
| 52 | 5 | if (\count($arguments) === 3) { |
|
| 53 | 5 | $this->validateTimezone($arguments[2], $this->getFunctionName()); |
|
| 54 | } |
||
| 57 |