@@ -36,13 +36,13 @@ |
||
| 36 | 36 | |
| 37 | 37 | public function __invoke($input) |
| 38 | 38 | { |
| 39 | - if (! is_string($input)) { |
|
| 39 | + if ( ! is_string($input)) { |
|
| 40 | 40 | return false; |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | $search = $this->getValue(); |
| 44 | 44 | |
| 45 | - if (! is_string($search)) { |
|
| 45 | + if ( ! is_string($search)) { |
|
| 46 | 46 | return false; |
| 47 | 47 | } |
| 48 | 48 | |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | public function __construct($default = 0.0) |
| 22 | 22 | { |
| 23 | - $this->default = (float) $default; |
|
| 23 | + $this->default = (float) $default; |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | /** |
@@ -37,16 +37,16 @@ |
||
| 37 | 37 | public function apply(\Iterator $set) |
| 38 | 38 | { |
| 39 | 39 | $map = $this->mapper; |
| 40 | - $result = []; |
|
| 41 | - $known = []; |
|
| 40 | + $result = [ ]; |
|
| 41 | + $known = [ ]; |
|
| 42 | 42 | |
| 43 | 43 | foreach ($set as $item) { |
| 44 | 44 | |
| 45 | 45 | $mapped = $map($item); |
| 46 | 46 | |
| 47 | - if (! in_array($mapped, $known, $this->strict)) { |
|
| 48 | - $known[] = $mapped; |
|
| 49 | - $result[] = $item; |
|
| 47 | + if ( ! in_array($mapped, $known, $this->strict)) { |
|
| 48 | + $known[ ] = $mapped; |
|
| 49 | + $result[ ] = $item; |
|
| 50 | 50 | } |
| 51 | 51 | } |
| 52 | 52 | |