@@ -107,6 +107,9 @@ |
||
| 107 | 107 | return $paramsProcessor->getValues(); |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | + /** |
|
| 111 | + * @param double $elapsed |
|
| 112 | + */ |
|
| 110 | 113 | private function logRequest($logger, $code, $elapsed) |
| 111 | 114 | { |
| 112 | 115 | $headers = []; |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | $end = microtime(true); |
| 69 | 69 | |
| 70 | 70 | if ($this->context->hasService('apiLogger')) { |
| 71 | - $this->logRequest($this->context->getService('apiLogger'), $code, $end-$start); |
|
| 71 | + $this->logRequest($this->context->getService('apiLogger'), $code, $end - $start); |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | // output to nette |