@@ -16,9 +16,9 @@ |
||
16 | 16 | { |
17 | 17 | $out = []; |
18 | 18 | |
19 | - $out[] = ['foo', 3, '…', 'foo' ]; |
|
20 | - $out[] = ['foo bar', 3, '...', 'foo...' ]; |
|
21 | - $out[] = ['foo bar', 5, '---', 'foo ---' ]; |
|
19 | + $out[] = ['foo', 3, '…', 'foo']; |
|
20 | + $out[] = ['foo bar', 3, '...', 'foo...']; |
|
21 | + $out[] = ['foo bar', 5, '---', 'foo ---']; |
|
22 | 22 | |
23 | 23 | return $out; |
24 | 24 | } |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | |
19 | 19 | $out[] = [ |
20 | 20 | [1, 2, 3, 4, 5, 6], |
21 | - function ($item) { |
|
21 | + function($item) { |
|
22 | 22 | return sin($item); |
23 | 23 | }, |
24 | 24 | 'asort', |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | $out[] = [ |
51 | 51 | [1, 2, 3, 4, 5, 6], |
52 | - function ($item) { |
|
52 | + function($item) { |
|
53 | 53 | return sin($item); |
54 | 54 | }, |
55 | 55 | 'arsort', |
@@ -27,7 +27,7 @@ |
||
27 | 27 | $out[] = [ |
28 | 28 | [ |
29 | 29 | ['a', 'b', 'c'], |
30 | - function ($item, $prefix) { |
|
30 | + function($item, $prefix) { |
|
31 | 31 | return $prefix . $item; |
32 | 32 | }, |
33 | 33 | '1' |
@@ -32,7 +32,7 @@ |
||
32 | 32 | 'size' => 3 |
33 | 33 | ] |
34 | 34 | ], |
35 | - function ($item) { |
|
35 | + function($item) { |
|
36 | 36 | return $item['size']; |
37 | 37 | } |
38 | 38 | ], |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | public function testLast() |
17 | 17 | { |
18 | - $array = range(1,9); |
|
18 | + $array = range(1, 9); |
|
19 | 19 | |
20 | 20 | $result = Funct\collection_last_n($array, 3); |
21 | 21 | $this->assertEquals([7, 8, 9], $result); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | public function testFirst() |
17 | 17 | { |
18 | - $array = range(1,9); |
|
18 | + $array = range(1, 9); |
|
19 | 19 | |
20 | 20 | $result = Funct\collection_first_n($array, 3); |
21 | 21 | $this->assertEquals([1, 2, 3], $result); |
@@ -23,7 +23,7 @@ |
||
23 | 23 | |
24 | 24 | $expected = ['coo_bar', 'bar_coo', 'coo', 'bar']; |
25 | 25 | |
26 | - $result = Funct\collection_for_every($values, function ($value, $what, $with) { |
|
26 | + $result = Funct\collection_for_every($values, function($value, $what, $with) { |
|
27 | 27 | return str_replace($what, $with, $value); |
28 | 28 | }, ['foo', 'coo']); |
29 | 29 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | 'size' => 3 |
33 | 33 | ] |
34 | 34 | ], |
35 | - function ($item) { |
|
35 | + function($item) { |
|
36 | 36 | return $item['size']; |
37 | 37 | } |
38 | 38 | ], |
@@ -19,7 +19,7 @@ |
||
19 | 19 | $out[] = [ |
20 | 20 | [ |
21 | 21 | [0, 1, 2, 3, 4, 5], |
22 | - function ($item) { |
|
22 | + function($item) { |
|
23 | 23 | return ($item % 2) === 0; |
24 | 24 | } |
25 | 25 | ], |