@@ -7,8 +7,8 @@ |
||
| 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 | }); |
@@ -12,8 +12,8 @@ |
||
| 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 |
@@ -23,7 +23,7 @@ |
||
| 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 | } |