| Total Complexity | 3 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait EmptyCheckTrait |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Checks if the given value is empty. |
||
| 11 | * A value is considered empty if it is null, an empty array, or an empty string. |
||
| 12 | * Note that this method is different from PHP empty(). It will return false when the value is 0. |
||
| 13 | * |
||
| 14 | * @param mixed $value the value to be checked |
||
| 15 | * |
||
| 16 | * @return bool whether the value is empty |
||
| 17 | */ |
||
| 18 | 24 | private function isEmpty(mixed $value): bool |
|
| 23 |