Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
Util | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
2 | |
100.00% |
1 / 1 |
stringToArray | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
2 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace Projom\Storage\Query; |
6 | |
7 | use Projom\Storage\Util as StorageUtil; |
8 | |
9 | class Util extends StorageUtil |
10 | { |
11 | public static function stringToArray(string|array $subject): array |
12 | { |
13 | if (is_string($subject)) |
14 | $subject = [$subject]; |
15 | |
16 | return $subject; |
17 | } |
18 | } |