Completed
Push — master ( 95c75f...caef2d )
by Guillermo A.
02:30
created
Category
src/Common/Collection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,1 +1,1 @@
 block discarded – undo
1
-<?php require dirname(__DIR__) . '/vendor/autoload.php';
1
+<?php require dirname(__DIR__).'/vendor/autoload.php';
Please login to merge, or discard this patch.
tests/Common/CollectionTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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());
Please login to merge, or discard this patch.
tests/Repositories/RepositoryFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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],
Please login to merge, or discard this patch.