Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
Util
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
2
100.00% covered (success)
100.00%
1 / 1
 stringToArray
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
2
1<?php
2
3declare(strict_types=1);
4
5namespace Projom\Storage\Query;
6
7use Projom\Storage\Util as StorageUtil;
8
9class 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}