@@ -50,7 +50,7 @@ |
||
50 | 50 | public function sortBy(string $fieldName): CollectionInterface |
51 | 51 | { |
52 | 52 | $results = $this->items; |
53 | - usort($results, function ($item1, $item2) use ($fieldName) { |
|
53 | + usort($results, function($item1, $item2) use ($fieldName) { |
|
54 | 54 | return $item1[$fieldName] <=> $item2[$fieldName]; |
55 | 55 | }); |
56 | 56 | return new static($results); |
@@ -1,1 +1,1 @@ |
||
1 | -<?php require dirname(__DIR__) . '/vendor/autoload.php'; |
|
1 | +<?php require dirname(__DIR__).'/vendor/autoload.php'; |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | public function testFilter() |
91 | 91 | { |
92 | 92 | $collection = new Collection([1, 2, 3]); |
93 | - $filteredCollection = $collection->filter(function ($var) { |
|
93 | + $filteredCollection = $collection->filter(function($var) { |
|
94 | 94 | return($var & 1); |
95 | 95 | }); |
96 | 96 | $this->assertCount(2, $filteredCollection); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | public function testMap() |
100 | 100 | { |
101 | 101 | $collection = new Collection([1, 2, 3]); |
102 | - $mGuillermoandraeedCollection = $collection->map(function ($var) { |
|
102 | + $mGuillermoandraeedCollection = $collection->map(function($var) { |
|
103 | 103 | return($var + 3); |
104 | 104 | }); |
105 | 105 | $this->assertSame([4, 5, 6], $mGuillermoandraeedCollection->all()); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | |
32 | 32 | private function getRepository($alias, $options = null) |
33 | 33 | { |
34 | - $className = ucfirst($alias) . 'Repository'; |
|
34 | + $className = ucfirst($alias).'Repository'; |
|
35 | 35 | $repository = $this->getMockForAbstractClass( |
36 | 36 | AbstractRepository::class, |
37 | 37 | [$options], |