@@ -72,7 +72,6 @@ discard block |
||
| 72 | 72 | /** |
| 73 | 73 | * Create field provider instance and set default providers to provider list |
| 74 | 74 | * |
| 75 | - * @param type $app |
|
| 76 | 75 | * @return void |
| 77 | 76 | */ |
| 78 | 77 | public function __construct() |
@@ -86,7 +85,7 @@ discard block |
||
| 86 | 85 | /** |
| 87 | 86 | * Set session store |
| 88 | 87 | * |
| 89 | - * @param type $service |
|
| 88 | + * @param SessionStore $service |
|
| 90 | 89 | */ |
| 91 | 90 | public function setSessionStore(SessionStore $service) |
| 92 | 91 | { |
@@ -127,7 +126,6 @@ discard block |
||
| 127 | 126 | * Register a custom HTML macro. |
| 128 | 127 | * |
| 129 | 128 | * @param string $name |
| 130 | - * @param mixed $macro |
|
| 131 | 129 | * @return void |
| 132 | 130 | */ |
| 133 | 131 | public function extend($name, $provider) |
@@ -138,7 +136,7 @@ discard block |
||
| 138 | 136 | /** |
| 139 | 137 | * Set token provider |
| 140 | 138 | * |
| 141 | - * @param UniqueProcessIdentifier $tokenProvider |
|
| 139 | + * @param TokenProvider $tokenProvider |
|
| 142 | 140 | */ |
| 143 | 141 | public function setTokenProvider(TokenProvider $tokenProvider) |
| 144 | 142 | { |
@@ -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 | } |