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