@@ -21,13 +21,17 @@ |
||
| 21 | 21 | /** |
| 22 | 22 | * Explode the selector to get ranges. |
| 23 | 23 | * |
| 24 | - * @param $selector |
|
| 24 | + * @param string $selector |
|
| 25 | 25 | * |
| 26 | 26 | * @return Collection |
| 27 | 27 | */ |
| 28 | 28 | protected function getRanges($selector) |
| 29 | 29 | { |
| 30 | 30 | return Factory::create(explode(';', $selector))->map( |
| 31 | + |
|
| 32 | + /** |
|
| 33 | + * @param string $range |
|
| 34 | + */ |
|
| 31 | 35 | function ($range) { |
| 32 | 36 | if ($separator = $this->dotDotSeparator($range) != false) { |
| 33 | 37 | return Factory::create([substr($range, 0, $separator), substr($range, $separator + 2)]); |