Skip to content

Commit c43e08f

Browse files
committed
formatting
1 parent 858ff9b commit c43e08f

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/Illuminate/Http/Concerns/InteractsWithInput.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,9 @@ protected function retrieveItem($source, $key, $default)
465465
}
466466

467467
/**
468-
* Dump the items and end the script.
468+
* Dump the request items and end the script.
469469
*
470-
* @param array|mixed $keys
470+
* @param array|mixed $keys
471471
* @return void
472472
*/
473473
public function dd(...$keys)
@@ -488,13 +488,7 @@ public function dump($keys = [])
488488
{
489489
$keys = is_array($keys) ? $keys : func_get_args();
490490

491-
if (count($keys) > 0) {
492-
$data = $this->only($keys);
493-
} else {
494-
$data = $this->all();
495-
}
496-
497-
VarDumper::dump($data);
491+
VarDumper::dump(count($keys) > 0 ? $this->only($keys) : $this->all());
498492

499493
return $this;
500494
}

0 commit comments

Comments
 (0)