@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | */ |
| 200 | 200 | protected function getSessionId() |
| 201 | 201 | { |
| 202 | - if ( ! $this->session) |
|
| 202 | + if (!$this->session) |
|
| 203 | 203 | { |
| 204 | 204 | return null; |
| 205 | 205 | } |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | */ |
| 220 | 220 | protected function getRouteName() |
| 221 | 221 | { |
| 222 | - if ( ! $this->router) |
|
| 222 | + if (!$this->router) |
|
| 223 | 223 | { |
| 224 | 224 | return null; |
| 225 | 225 | } |
@@ -234,23 +234,23 @@ discard block |
||
| 234 | 234 | */ |
| 235 | 235 | protected function getUrl() |
| 236 | 236 | { |
| 237 | - if ( ! $this->request) |
|
| 237 | + if (!$this->request) |
|
| 238 | 238 | { |
| 239 | 239 | return null; |
| 240 | 240 | } |
| 241 | 241 | |
| 242 | 242 | $url = $this->request->path(); |
| 243 | 243 | |
| 244 | - if ( ! starts_with($url, '/')) |
|
| 244 | + if (!starts_with($url, '/')) |
|
| 245 | 245 | { |
| 246 | - $url = '/' . $url; |
|
| 246 | + $url = '/'.$url; |
|
| 247 | 247 | } |
| 248 | 248 | |
| 249 | 249 | $queryString = $this->request->getQueryString(); |
| 250 | 250 | |
| 251 | 251 | if ($queryString) |
| 252 | 252 | { |
| 253 | - $url .= '?' . $queryString; |
|
| 253 | + $url .= '?'.$queryString; |
|
| 254 | 254 | } |
| 255 | 255 | |
| 256 | 256 | return $url; |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | */ |
| 264 | 264 | protected function getRequestMethod() |
| 265 | 265 | { |
| 266 | - if ( ! $this->request) |
|
| 266 | + if (!$this->request) |
|
| 267 | 267 | { |
| 268 | 268 | return null; |
| 269 | 269 | } |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | */ |
| 279 | 279 | protected function getServerIp() |
| 280 | 280 | { |
| 281 | - if ( ! $this->request) |
|
| 281 | + if (!$this->request) |
|
| 282 | 282 | { |
| 283 | 283 | return null; |
| 284 | 284 | } |
@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | */ |
| 294 | 294 | protected function getClientIp() |
| 295 | 295 | { |
| 296 | - if ( ! $this->request) |
|
| 296 | + if (!$this->request) |
|
| 297 | 297 | { |
| 298 | 298 | return null; |
| 299 | 299 | } |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | */ |
| 309 | 309 | protected function getClientUserAgent() |
| 310 | 310 | { |
| 311 | - if ( ! $this->request) |
|
| 311 | + if (!$this->request) |
|
| 312 | 312 | { |
| 313 | 313 | return null; |
| 314 | 314 | } |
@@ -334,7 +334,7 @@ discard block |
||
| 334 | 334 | */ |
| 335 | 335 | protected function getFromSession($key) |
| 336 | 336 | { |
| 337 | - if ( ! $this->session) |
|
| 337 | + if (!$this->session) |
|
| 338 | 338 | { |
| 339 | 339 | return null; |
| 340 | 340 | } |