Completed
Push — master ( 8400a7...72b1a6 )
by Piotr
02:06
created
examples/custom_reject_handler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@
 block discarded – undo
7 7
  * @param \CrazyGoat\Octophpus\EsiRequest[] $esiRequests
8 8
  * @return Closure
9 9
  */
10
-$reject_closure = function (string &$data, array $esiRequests) {
11
-    return (function (\Exception $reason, int $index) use (&$data, $esiRequests) {
10
+$reject_closure = function(string&$data, array $esiRequests) {
11
+    return (function(\Exception $reason, int $index) use (&$data, $esiRequests) {
12 12
         echo 'Unable to fetch request ('.$esiRequests[$index]->getSrc().') reason : '.$reason->getMessage();
13 13
         throw $reason;
14 14
     });
Please login to merge, or discard this patch.
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'.PHP_EOL;
15
+echo 'first request took '.(time() - $start).' seconds'.PHP_EOL;
16 16
 
17 17
 $start = time();
18 18
 $esiInclude->decorate($text);
19
-echo 'second request took '.(time()-$start).' seconds'.PHP_EOL;
20 19
\ No newline at end of file
20
+echo 'second request took '.(time() - $start).' seconds'.PHP_EOL;
21 21
\ No newline at end of file
Please login to merge, or discard this patch.
src/Validator/EsiAttributeValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         }
24 24
 
25 25
         if (isset($this->attributes['TIMEOUT'])) {
26
-            if ((float)$this->attributes['TIMEOUT'] <=0 ) {
26
+            if ((float)$this->attributes['TIMEOUT']<=0) {
27 27
                 throw new EsiTagParseException('Timeout must be greater then 0.');
28 28
             }
29 29
         }
Please login to merge, or discard this patch.