| Conditions | 5 |
| Paths | 6 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 5 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | public static function allPresent(): bool |
||
| 35 | { |
||
| 36 | $args = func_get_args(); |
||
| 37 | if (func_num_args() === 1 && is_array($args[0])) { |
||
| 38 | 15 | $args = $args[0]; |
|
| 39 | } |
||
| 40 | 15 | ||
| 41 | 15 | foreach ($args as $arg) { |
|
| 42 | 15 | if (!empty($arg)) { |
|
| 43 | continue; |
||
| 44 | } else { |
||
| 45 | 15 | return false; |
|
| 46 | 15 | } |
|
| 47 | 15 | } |
|
| 48 | |||
| 49 | 12 | return true; |
|
| 50 | } |
||
| 52 |