| @@ 135-146 (lines=12) @@ | ||
| 132 | return \hash_final($hash); |
|
| 133 | } |
|
| 134 | ||
| 135 | public function cleanParameters(array $raw) |
|
| 136 | { |
|
| 137 | $config = []; |
|
| 138 | ||
| 139 | foreach ($raw as $string) { |
|
| 140 | // Assert $string looks like "foo:bar" |
|
| 141 | list($key, $value) = \explode(':', $string, 2); |
|
| 142 | $config[$key][] = $value; |
|
| 143 | } |
|
| 144 | ||
| 145 | return $config; |
|
| 146 | } |
|
| 147 | } |
|
| 148 | ||
| @@ 75-86 (lines=12) @@ | ||
| 72 | return 0; |
|
| 73 | } |
|
| 74 | ||
| 75 | public function cleanParameters(array $raw) |
|
| 76 | { |
|
| 77 | $config = []; |
|
| 78 | ||
| 79 | foreach ($raw as $string) { |
|
| 80 | // Assert $string looks like "foo:bar" |
|
| 81 | list($key, $value) = \explode(':', $string, 2); |
|
| 82 | $config[$key][] = $value; |
|
| 83 | } |
|
| 84 | ||
| 85 | return $config; |
|
| 86 | } |
|
| 87 | } |
|
| 88 | ||