Completed
Branch master (8400a7)
by Piotr
02:05
created
examples/cache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 
13 13
 $start = time();
14 14
 $esiInclude->decorate($text);
15
-echo "first request took ".(time()-$start)." seconds\n";
15
+echo "first request took ".(time() - $start)." seconds\n";
16 16
 
17 17
 $start = time();
18 18
 $esiInclude->decorate($text);
19
-echo "second request took ".(time()-$start)." seconds\n";
20 19
\ No newline at end of file
20
+echo "second request took ".(time() - $start)." seconds\n";
21 21
\ No newline at end of file
Please login to merge, or discard this patch.
src/EsiTentacles.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
     private function createRequestPromises()
72 72
     {
73
-        return (function (array $esiRequests) {
73
+        return (function(array $esiRequests) {
74 74
             $client = new Client($this->clientOptions());
75 75
             /** @var EsiRequest $esiRequest */
76 76
             foreach ($esiRequests as $esiRequest) {
@@ -104,9 +104,9 @@  discard block
 block discarded – undo
104 104
             'cache_prefix' => 'esi:include',
105 105
             'cache_ttl' => 3600,
106 106
             'request_options' => [],
107
-            'fulfilled' => function (string &$data, array $esiRequests)
107
+            'fulfilled' => function(string&$data, array $esiRequests)
108 108
             {
109
-                return (function (Response $response, int $index) use (&$data, $esiRequests)
109
+                return (function(Response $response, int $index) use (&$data, $esiRequests)
110 110
                 {
111 111
                     /** @var EsiRequest $esiRequest */
112 112
                     $esiRequest = $esiRequests[$index];
@@ -131,8 +131,8 @@  discard block
 block discarded – undo
131 131
                     }
132 132
                 });
133 133
             },
134
-            'rejected' => function (string &$data, array $esiRequests) {
135
-                return (function (\Exception $reason, int $index) use (&$data, $esiRequests) {
134
+            'rejected' => function(string&$data, array $esiRequests) {
135
+                return (function(\Exception $reason, int $index) use (&$data, $esiRequests) {
136 136
 
137 137
                     $this->logger->error(
138 138
                         'Could not fetch ['.$esiRequests[$index]->getSrc().']. Reason: '.$reason->getMessage()
Please login to merge, or discard this patch.