Completed
Pull Request — master (#3)
by Julien
02:13
created
VersionSorter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     {
18 18
         usort(
19 19
             $versions,
20
-            function (Version $a, Version $b) {
20
+            function(Version $a, Version $b) {
21 21
                 return VersionComparator::compare($a, $b);
22 22
             }
23 23
         );
Please login to merge, or discard this patch.
Tests/VersionSorterTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         static::assertCount(count($expectedResult), $result);
29 29
         
30 30
         do {
31
-            $version   = array_shift($result);
31
+            $version = array_shift($result);
32 32
             $expectedVersion = array_shift($expectedResult);
33 33
             static::assertEquals(
34 34
                 $expectedVersion->getMajor(),
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
     {
61 61
         return [
62 62
             [
63
-                [Version::fromString('2.0.0'), Version::fromString('1.10.10'),],
64
-                [Version::fromString('1.10.10'), Version::fromString('2.0.0'),]
63
+                [Version::fromString('2.0.0'), Version::fromString('1.10.10'), ],
64
+                [Version::fromString('1.10.10'), Version::fromString('2.0.0'), ]
65 65
             ]
66 66
         ];
67 67
     }
Please login to merge, or discard this patch.