@@ -63,7 +63,7 @@ |
||
| 63 | 63 | * |
| 64 | 64 | * @param string|array $key |
| 65 | 65 | * @param mixed $value |
| 66 | - * @return void |
|
| 66 | + * @return InteractsWithSession |
|
| 67 | 67 | */ |
| 68 | 68 | public function seeInSession($key, $value = null) |
| 69 | 69 | { |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | protected function startSession() |
| 43 | 43 | { |
| 44 | - if (! $this->app['session']->isStarted()) { |
|
| 44 | + if (!$this->app['session']->isStarted()) { |
|
| 45 | 45 | $this->app['session']->start(); |
| 46 | 46 | } |
| 47 | 47 | } |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | * |
| 96 | 96 | * @param \Illuminate\Http\Request $request |
| 97 | 97 | * @param array $errors |
| 98 | - * @return \Illuminate\Http\Response |
|
| 98 | + * @return \Illuminate\Http\Response|null |
|
| 99 | 99 | */ |
| 100 | 100 | protected function buildFailedValidationResponse(Request $request, array $errors) |
| 101 | 101 | { |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | */ |
| 70 | 70 | public function validateWithBag($errorBag, Request $request, array $rules, array $messages = [], array $customAttributes = []) |
| 71 | 71 | { |
| 72 | - $this->withErrorBag($errorBag, function () use ($request, $rules, $messages, $customAttributes) { |
|
| 72 | + $this->withErrorBag($errorBag, function() use ($request, $rules, $messages, $customAttributes) { |
|
| 73 | 73 | $this->validate($request, $rules, $messages, $customAttributes); |
| 74 | 74 | }); |
| 75 | 75 | } |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | */ |
| 100 | 100 | protected function buildFailedValidationResponse(Request $request, array $errors) |
| 101 | 101 | { |
| 102 | - if (($request->ajax() && ! $request->pjax()) || $request->wantsJson()) { |
|
| 102 | + if (($request->ajax() && !$request->pjax()) || $request->wantsJson()) { |
|
| 103 | 103 | return new JsonResponse($errors, 422); |
| 104 | 104 | } |
| 105 | 105 | |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | /** |
| 283 | 283 | * Determine if the request contains a non-empty value for an input item. |
| 284 | 284 | * |
| 285 | - * @param string|array $key |
|
| 285 | + * @param string $key |
|
| 286 | 286 | * @return bool |
| 287 | 287 | */ |
| 288 | 288 | public function has($key) |
@@ -491,8 +491,8 @@ discard block |
||
| 491 | 491 | * Retrieve a header from the request. |
| 492 | 492 | * |
| 493 | 493 | * @param string $key |
| 494 | - * @param string|array|null $default |
|
| 495 | - * @return string|array |
|
| 494 | + * @param string $default |
|
| 495 | + * @return string |
|
| 496 | 496 | */ |
| 497 | 497 | public function header($key = null, $default = null) |
| 498 | 498 | { |
@@ -693,7 +693,7 @@ discard block |
||
| 693 | 693 | /** |
| 694 | 694 | * Determines whether the current requests accepts a given content type. |
| 695 | 695 | * |
| 696 | - * @param string|array $contentTypes |
|
| 696 | + * @param string $contentTypes |
|
| 697 | 697 | * @return bool |
| 698 | 698 | */ |
| 699 | 699 | public function accepts($contentTypes) |
@@ -871,7 +871,7 @@ discard block |
||
| 871 | 871 | * |
| 872 | 872 | * @param string|null $param |
| 873 | 873 | * |
| 874 | - * @return \Illuminate\Routing\Route|object|string |
|
| 874 | + * @return \Illuminate\Routing\Route |
|
| 875 | 875 | */ |
| 876 | 876 | public function route($param = null) |
| 877 | 877 | { |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | { |
| 168 | 168 | $segments = explode('/', $this->path()); |
| 169 | 169 | |
| 170 | - return array_values(array_filter($segments, function ($v) { |
|
| 170 | + return array_values(array_filter($segments, function($v) { |
|
| 171 | 171 | return $v != ''; |
| 172 | 172 | })); |
| 173 | 173 | } |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | $input = $this->all(); |
| 272 | 272 | |
| 273 | 273 | foreach ($keys as $value) { |
| 274 | - if (! array_key_exists($value, $input)) { |
|
| 274 | + if (!array_key_exists($value, $input)) { |
|
| 275 | 275 | return false; |
| 276 | 276 | } |
| 277 | 277 | } |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | |
| 311 | 311 | $boolOrArray = is_bool($value) || is_array($value); |
| 312 | 312 | |
| 313 | - return ! $boolOrArray && trim((string) $value) === ''; |
|
| 313 | + return !$boolOrArray && trim((string) $value) === ''; |
|
| 314 | 314 | } |
| 315 | 315 | |
| 316 | 316 | /** |
@@ -395,7 +395,7 @@ discard block |
||
| 395 | 395 | */ |
| 396 | 396 | public function hasCookie($key) |
| 397 | 397 | { |
| 398 | - return ! is_null($this->cookie($key)); |
|
| 398 | + return !is_null($this->cookie($key)); |
|
| 399 | 399 | } |
| 400 | 400 | |
| 401 | 401 | /** |
@@ -432,7 +432,7 @@ discard block |
||
| 432 | 432 | */ |
| 433 | 433 | protected function convertUploadedFiles(array $files) |
| 434 | 434 | { |
| 435 | - return array_map(function ($file) { |
|
| 435 | + return array_map(function($file) { |
|
| 436 | 436 | if (is_null($file) || (is_array($file) && empty(array_filter($file)))) { |
| 437 | 437 | return $file; |
| 438 | 438 | } |
@@ -463,7 +463,7 @@ discard block |
||
| 463 | 463 | */ |
| 464 | 464 | public function hasFile($key) |
| 465 | 465 | { |
| 466 | - if (! is_array($files = $this->file($key))) { |
|
| 466 | + if (!is_array($files = $this->file($key))) { |
|
| 467 | 467 | $files = [$files]; |
| 468 | 468 | } |
| 469 | 469 | |
@@ -532,7 +532,7 @@ discard block |
||
| 532 | 532 | */ |
| 533 | 533 | public function flash($filter = null, $keys = []) |
| 534 | 534 | { |
| 535 | - $flash = (! is_null($filter)) ? $this->$filter($keys) : $this->input(); |
|
| 535 | + $flash = (!is_null($filter)) ? $this->$filter($keys) : $this->input(); |
|
| 536 | 536 | |
| 537 | 537 | $this->session()->flashInput($flash); |
| 538 | 538 | } |
@@ -621,7 +621,7 @@ discard block |
||
| 621 | 621 | */ |
| 622 | 622 | public function json($key = null, $default = null) |
| 623 | 623 | { |
| 624 | - if (! isset($this->json)) { |
|
| 624 | + if (!isset($this->json)) { |
|
| 625 | 625 | $this->json = new ParameterBag((array) json_decode($this->getContent(), true)); |
| 626 | 626 | } |
| 627 | 627 | |
@@ -741,7 +741,7 @@ discard block |
||
| 741 | 741 | foreach ($contentTypes as $contentType) { |
| 742 | 742 | $type = $contentType; |
| 743 | 743 | |
| 744 | - if (! is_null($mimeType = $this->getMimeType($contentType))) { |
|
| 744 | + if (!is_null($mimeType = $this->getMimeType($contentType))) { |
|
| 745 | 745 | $type = $mimeType; |
| 746 | 746 | } |
| 747 | 747 | |
@@ -848,7 +848,7 @@ discard block |
||
| 848 | 848 | */ |
| 849 | 849 | public function session() |
| 850 | 850 | { |
| 851 | - if (! $this->hasSession()) { |
|
| 851 | + if (!$this->hasSession()) { |
|
| 852 | 852 | throw new RuntimeException('Session store not set on request.'); |
| 853 | 853 | } |
| 854 | 854 | |
@@ -893,7 +893,7 @@ discard block |
||
| 893 | 893 | */ |
| 894 | 894 | public function fingerprint() |
| 895 | 895 | { |
| 896 | - if (! $this->route()) { |
|
| 896 | + if (!$this->route()) { |
|
| 897 | 897 | throw new RuntimeException('Unable to generate fingerprint. Route unavailable.'); |
| 898 | 898 | } |
| 899 | 899 | |
@@ -912,7 +912,7 @@ discard block |
||
| 912 | 912 | */ |
| 913 | 913 | public function getUserResolver() |
| 914 | 914 | { |
| 915 | - return $this->userResolver ?: function () { |
|
| 915 | + return $this->userResolver ?: function() { |
|
| 916 | 916 | // |
| 917 | 917 | }; |
| 918 | 918 | } |
@@ -937,7 +937,7 @@ discard block |
||
| 937 | 937 | */ |
| 938 | 938 | public function getRouteResolver() |
| 939 | 939 | { |
| 940 | - return $this->routeResolver ?: function () { |
|
| 940 | + return $this->routeResolver ?: function() { |
|
| 941 | 941 | // |
| 942 | 942 | }; |
| 943 | 943 | } |
@@ -1018,7 +1018,7 @@ discard block |
||
| 1018 | 1018 | */ |
| 1019 | 1019 | public function __isset($key) |
| 1020 | 1020 | { |
| 1021 | - return ! is_null($this->__get($key)); |
|
| 1021 | + return !is_null($this->__get($key)); |
|
| 1022 | 1022 | } |
| 1023 | 1023 | |
| 1024 | 1024 | /** |
@@ -299,7 +299,7 @@ |
||
| 299 | 299 | /** |
| 300 | 300 | * Format the parameters for the logger. |
| 301 | 301 | * |
| 302 | - * @param mixed $message |
|
| 302 | + * @param string $message |
|
| 303 | 303 | * @return mixed |
| 304 | 304 | */ |
| 305 | 305 | protected function formatMessage($message) |
@@ -271,7 +271,7 @@ |
||
| 271 | 271 | */ |
| 272 | 272 | public function listen(Closure $callback) |
| 273 | 273 | { |
| 274 | - if (! isset($this->dispatcher)) { |
|
| 274 | + if (!isset($this->dispatcher)) { |
|
| 275 | 275 | throw new RuntimeException('Events dispatcher has not been set.'); |
| 276 | 276 | } |
| 277 | 277 | |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | /** |
| 15 | 15 | * Create a new event instance. |
| 16 | 16 | * |
| 17 | - * @param \Swift_Message $messagse |
|
| 17 | + * @param \Swift_Message $message |
|
| 18 | 18 | * @return void |
| 19 | 19 | */ |
| 20 | 20 | public function __construct($message) |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | * |
| 119 | 119 | * @param string $text |
| 120 | 120 | * @param mixed $callback |
| 121 | - * @return void |
|
| 121 | + * @return integer |
|
| 122 | 122 | */ |
| 123 | 123 | public function raw($text, $callback) |
| 124 | 124 | { |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | * @param string $view |
| 132 | 132 | * @param array $data |
| 133 | 133 | * @param mixed $callback |
| 134 | - * @return void |
|
| 134 | + * @return integer |
|
| 135 | 135 | */ |
| 136 | 136 | public function plain($view, array $data, $callback) |
| 137 | 137 | { |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | * @param string|array $view |
| 145 | 145 | * @param array $data |
| 146 | 146 | * @param \Closure|string $callback |
| 147 | - * @return void |
|
| 147 | + * @return integer |
|
| 148 | 148 | */ |
| 149 | 149 | public function send($view, array $data, $callback) |
| 150 | 150 | { |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | * Send a Swift Message instance. |
| 376 | 376 | * |
| 377 | 377 | * @param \Swift_Message $message |
| 378 | - * @return void |
|
| 378 | + * @return integer |
|
| 379 | 379 | */ |
| 380 | 380 | protected function sendSwiftMessage($message) |
| 381 | 381 | { |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | */ |
| 260 | 260 | protected function buildQueueCallable($callback) |
| 261 | 261 | { |
| 262 | - if (! $callback instanceof Closure) { |
|
| 262 | + if (!$callback instanceof Closure) { |
|
| 263 | 263 | return $callback; |
| 264 | 264 | } |
| 265 | 265 | |
@@ -420,7 +420,7 @@ discard block |
||
| 420 | 420 | // If a global from address has been specified we will set it on every message |
| 421 | 421 | // instances so the developer does not have to repeat themselves every time |
| 422 | 422 | // they create a new message. We will just go ahead and push the address. |
| 423 | - if (! empty($this->from['address'])) { |
|
| 423 | + if (!empty($this->from['address'])) { |
|
| 424 | 424 | $message->from($this->from['address'], $this->from['name']); |
| 425 | 425 | } |
| 426 | 426 | |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | * Get the "to" payload field for the API request. |
| 84 | 84 | * |
| 85 | 85 | * @param \Swift_Mime_Message $message |
| 86 | - * @return array |
|
| 86 | + * @return string |
|
| 87 | 87 | */ |
| 88 | 88 | protected function getTo(Swift_Mime_Message $message) |
| 89 | 89 | { |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | * Set the domain being used by the transport. |
| 136 | 136 | * |
| 137 | 137 | * @param string $domain |
| 138 | - * @return void |
|
| 138 | + * @return string |
|
| 139 | 139 | */ |
| 140 | 140 | public function setDomain($domain) |
| 141 | 141 | { |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | * Pop the next job off of the queue. |
| 96 | 96 | * |
| 97 | 97 | * @param string $queue |
| 98 | - * @return \Illuminate\Contracts\Queue\Job|null |
|
| 98 | + * @return BeanstalkdJob|null |
|
| 99 | 99 | */ |
| 100 | 100 | public function pop($queue = null) |
| 101 | 101 | { |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | * Create a new event instance. |
| 30 | 30 | * |
| 31 | 31 | * @param string $connectionName |
| 32 | - * @param \Illuminate\Contracts\Jobs\Job $job |
|
| 32 | + * @param \Illuminate\Contracts\Queue\Job $job |
|
| 33 | 33 | * @param array $data |
| 34 | 34 | * @return void |
| 35 | 35 | */ |