Passed
Push — develop ( fd6dfe...a0544e )
by Brent
02:41
created
src/Stitcher/Page/Adapter/AdapterFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     {
44 44
         $this->setRule(
45 45
             CollectionAdapter::class,
46
-            function (string $adapterType, array $adapterConfiguration) {
46
+            function(string $adapterType, array $adapterConfiguration) {
47 47
                 if ($adapterType !== 'collection') {
48 48
                     return null;
49 49
                 }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $this->setRule(
59 59
             FilterAdapter::class,
60
-            function (string $adapterType, array $adapterConfiguration) {
60
+            function(string $adapterType, array $adapterConfiguration) {
61 61
                 if ($adapterType !== 'filter') {
62 62
                     return null;
63 63
                 }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     {
72 72
         $this->setRule(
73 73
             PaginationAdapter::class,
74
-            function (string $adapterType, array $adapterConfiguration) {
74
+            function(string $adapterType, array $adapterConfiguration) {
75 75
                 if ($adapterType !== 'pagination') {
76 76
                     return null;
77 77
                 }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     {
86 86
         $this->setRule(
87 87
             OrderAdapter::class,
88
-            function (string $adapterType, array $adapterConfiguration) {
88
+            function(string $adapterType, array $adapterConfiguration) {
89 89
                 if ($adapterType !== 'order') {
90 90
                     return null;
91 91
                 }
Please login to merge, or discard this patch.
src/Stitcher/Page/Adapter/OrderAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         array $adapterConfiguration,
32 32
         VariableParser $variableParser
33 33
     ) {
34
-        if (! $this->isValidConfiguration($adapterConfiguration)) {
34
+        if (!$this->isValidConfiguration($adapterConfiguration)) {
35 35
             throw InvalidOrderAdapter::create();
36 36
         }
37 37
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
     private function orderEntries(array $entries): array
80 80
     {
81
-        uasort($entries, function ($a, $b) {
81
+        uasort($entries, function($a, $b) {
82 82
             return strcmp($a[$this->field] ?? '', $b[$this->field] ?? '');
83 83
         });
84 84
 
Please login to merge, or discard this patch.