Passed
Push — master ( 1874c1...efb840 )
by Claudio
02:16
created
src/Builder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -217,7 +217,7 @@
 block discarded – undo
217 217
             $sorter = new Asc($comparator);
218 218
         }
219 219
 
220
-        if (! $this->isAsc) {
220
+        if (!$this->isAsc) {
221 221
             return new Desc($sorter);
222 222
         }
223 223
 
Please login to merge, or discard this patch.
src/Sorter/Key.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
              * @param mixed $first
32 32
              * @param mixed $second
33 33
              */
34
-            static function ($first, $second) use ($comparable): int {
34
+            static function($first, $second) use ($comparable): int {
35 35
                 return $comparable->compare($first, $second);
36 36
             }
37 37
         );
Please login to merge, or discard this patch.
src/Sorter/Asc.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
              * @param mixed $first
32 32
              * @param mixed $second
33 33
              */
34
-            static function ($first, $second) use ($comparable): int {
34
+            static function($first, $second) use ($comparable): int {
35 35
                 return $comparable->compare($first, $second);
36 36
             }
37 37
         );
Please login to merge, or discard this patch.
src/Comparator/Comparator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     public function compare($value, $comparativeValue): int
26 26
     {
27 27
         try {
28
-            $compared = $this->collator->compare((string)$value, (string)$comparativeValue);
28
+            $compared = $this->collator->compare((string) $value, (string) $comparativeValue);
29 29
 
30 30
             if ($this->collator->getErrorCode() !== 0) {
31 31
                 throw IntlSortException::errorOnSort($this->collator->getErrorMessage());
Please login to merge, or discard this patch.
src/ComparatorFactory/SimpleCollator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@
 block discarded – undo
21 21
      */
22 22
     public function __construct(string $classname)
23 23
     {
24
-        if (! class_exists($classname)) {
24
+        if (!class_exists($classname)) {
25 25
             throw IntlSortException::classDoesNotExist($classname);
26 26
         }
27 27
 
28
-        if (! in_array(CollatorConstructor::class, class_implements($classname), true)) {
28
+        if (!in_array(CollatorConstructor::class, class_implements($classname), true)) {
29 29
             throw IntlSortException::doesNotImplementComparable($classname);
30 30
         }
31 31
 
Please login to merge, or discard this patch.