| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class ConsoleHelper |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Convert a string like "field1:value1,field2:value" to the array |
||
| 14 | * |
||
| 15 | * Also supports one-dimensional array in the representation "value1,value2,value3" |
||
| 16 | * |
||
| 17 | * @param string|null $string |
||
| 18 | * @param string $valueDelimiter |
||
| 19 | * @param string $itemDelimiter |
||
| 20 | * |
||
| 21 | * @return array |
||
| 22 | */ |
||
| 23 | public static function stringToArray(string $string = null, string $valueDelimiter = ':', string $itemDelimiter = ',') |
||
| 47 | } |
||
| 48 | } |