Completed
Push — master ( fb073d...0ff0ab )
by Piotr
03:24
created
src/Validator/OptionsValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,12 +73,12 @@
 block discarded – undo
73 73
         Expect::that($value)->isFloat()->isGreaterThan(0);
74 74
     }
75 75
 
76
-    private function validateCachePool(?CacheItemPoolInterface $value) : void
76
+    private function validateCachePool(? CacheItemPoolInterface $value) : void
77 77
     {
78 78
         Expect::that($value)->isNullOrInstanceOf('Psr\Cache\CacheItemPoolInterface');
79 79
     }
80 80
 
81
-    private function validateLogger(?LoggerInterface $value) : void
81
+    private function validateLogger(? LoggerInterface $value) : void
82 82
     {
83 83
         Expect::that($value)->isNullOrInstanceOf('sr\Log\LoggerInterface');
84 84
     }
Please login to merge, or discard this patch.
src/EsiTentacles.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
         $recurrency = $this->options['recurecny_lever'];
54 54
 
55
-        while ($parser->parse($data) && $recurrency > 0) {
55
+        while ($parser->parse($data) && $recurrency>0) {
56 56
 
57 57
             /** @var EsiRequest[] $esiRequests */
58 58
             $esiRequests = $parser->esiRequests();
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
     private function createRequestPromises()
76 76
     {
77
-        return (function (array $esiRequests) {
77
+        return (function(array $esiRequests) {
78 78
             $client = new Client($this->clientOptions());
79 79
             /** @var EsiRequest $esiRequest */
80 80
             foreach ($esiRequests as $esiRequest) {
@@ -112,9 +112,9 @@  discard block
 block discarded – undo
112 112
             'recurecny_lever' => 1,
113 113
             'cache_poo;' => null,
114 114
             'logger' => new VoidLogger(),
115
-            'fulfilled' => function (string &$data, array $esiRequests)
115
+            'fulfilled' => function(string&$data, array $esiRequests)
116 116
             {
117
-                return (function (Response $response, int $index) use (&$data, $esiRequests)
117
+                return (function(Response $response, int $index) use (&$data, $esiRequests)
118 118
                 {
119 119
                     /** @var EsiRequest $esiRequest */
120 120
                     $esiRequest = $esiRequests[$index];
@@ -139,8 +139,8 @@  discard block
 block discarded – undo
139 139
                     }
140 140
                 });
141 141
             },
142
-            'rejected' => function (string &$data, array $esiRequests) {
143
-                return (function (\Exception $reason, int $index) use (&$data, $esiRequests) {
142
+            'rejected' => function(string&$data, array $esiRequests) {
143
+                return (function(\Exception $reason, int $index) use (&$data, $esiRequests) {
144 144
                     /** @var EsiRequest $esiRequest */
145 145
                     $esiRequest = $esiRequests[$index];
146 146
 
Please login to merge, or discard this patch.