Total Complexity | 8 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Coverage | 57.14% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class Check |
||
6 | { |
||
7 | /** |
||
8 | * Check if all values are empty |
||
9 | * http://stackoverflow.com/questions/4993104/using-ifempty-with-multiple-variables-not-in-an-array. |
||
10 | * |
||
11 | * Eg |
||
12 | * Util::all_empty($var, $var2, $var3); |
||
13 | * |
||
14 | * @return bool |
||
15 | */ |
||
16 | public static function allEmpty(): bool |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Check all values are present (i.e. Not empty). |
||
31 | * |
||
32 | * @return bool |
||
33 | */ |
||
34 | public static function allPresent(): bool |
||
52 |