@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | */ |
231 | 231 | protected function getSessionId() |
232 | 232 | { |
233 | - if ( ! $this->session) |
|
233 | + if (!$this->session) |
|
234 | 234 | { |
235 | 235 | return null; |
236 | 236 | } |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | */ |
257 | 257 | protected function getSqlQueries() |
258 | 258 | { |
259 | - if ( ! $this->dataCollector) |
|
259 | + if (!$this->dataCollector) |
|
260 | 260 | { |
261 | 261 | return []; |
262 | 262 | } |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | */ |
277 | 277 | protected function getRouteName() |
278 | 278 | { |
279 | - if ( ! $this->router) |
|
279 | + if (!$this->router) |
|
280 | 280 | { |
281 | 281 | return null; |
282 | 282 | } |
@@ -291,23 +291,23 @@ discard block |
||
291 | 291 | */ |
292 | 292 | protected function getUrl() |
293 | 293 | { |
294 | - if ( ! $this->request) |
|
294 | + if (!$this->request) |
|
295 | 295 | { |
296 | 296 | return null; |
297 | 297 | } |
298 | 298 | |
299 | 299 | $url = $this->request->path(); |
300 | 300 | |
301 | - if ( ! starts_with($url, '/')) |
|
301 | + if (!starts_with($url, '/')) |
|
302 | 302 | { |
303 | - $url = '/' . $url; |
|
303 | + $url = '/'.$url; |
|
304 | 304 | } |
305 | 305 | |
306 | 306 | $queryString = $this->request->getQueryString(); |
307 | 307 | |
308 | 308 | if ($queryString) |
309 | 309 | { |
310 | - $url .= '?' . $queryString; |
|
310 | + $url .= '?'.$queryString; |
|
311 | 311 | } |
312 | 312 | |
313 | 313 | return $url; |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | */ |
321 | 321 | protected function getRequestMethod() |
322 | 322 | { |
323 | - if ( ! $this->request) |
|
323 | + if (!$this->request) |
|
324 | 324 | { |
325 | 325 | return null; |
326 | 326 | } |
@@ -335,7 +335,7 @@ discard block |
||
335 | 335 | */ |
336 | 336 | protected function getServerIp() |
337 | 337 | { |
338 | - if ( ! $this->request) |
|
338 | + if (!$this->request) |
|
339 | 339 | { |
340 | 340 | return null; |
341 | 341 | } |
@@ -350,7 +350,7 @@ discard block |
||
350 | 350 | */ |
351 | 351 | protected function getClientIp() |
352 | 352 | { |
353 | - if ( ! $this->request) |
|
353 | + if (!$this->request) |
|
354 | 354 | { |
355 | 355 | return null; |
356 | 356 | } |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | */ |
366 | 366 | protected function getClientUserAgent() |
367 | 367 | { |
368 | - if ( ! $this->request) |
|
368 | + if (!$this->request) |
|
369 | 369 | { |
370 | 370 | return null; |
371 | 371 | } |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | */ |
392 | 392 | protected function getFromSession($key) |
393 | 393 | { |
394 | - if ( ! $this->session) |
|
394 | + if (!$this->session) |
|
395 | 395 | { |
396 | 396 | return null; |
397 | 397 | } |
@@ -409,7 +409,7 @@ discard block |
||
409 | 409 | { |
410 | 410 | $parts = []; |
411 | 411 | |
412 | - foreach(['class', 'file', 'line', 'code'] as $field) |
|
412 | + foreach (['class', 'file', 'line', 'code'] as $field) |
|
413 | 413 | { |
414 | 414 | // only include `code` if it's not null value |
415 | 415 | // the `code` attribute of the exception object is useful to differentiate SQL and other exceptions |
@@ -422,7 +422,7 @@ discard block |
||
422 | 422 | continue; |
423 | 423 | } |
424 | 424 | |
425 | - $parts[] = isset($log[$field]) ? (string)$log[$field] : null; |
|
425 | + $parts[] = isset($log[$field]) ? (string) $log[$field] : null; |
|
426 | 426 | } |
427 | 427 | |
428 | 428 | return sha1(implode('#', $parts)); |