Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Nov 27, 2020
1 parent 858ff9b commit c43e08f
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/Illuminate/Http/Concerns/InteractsWithInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,9 @@ protected function retrieveItem($source, $key, $default)
}

/**
* Dump the items and end the script.
* Dump the request items and end the script.
*
* @param array|mixed $keys
* @param array|mixed $keys
* @return void
*/
public function dd(...$keys)
Expand All @@ -488,13 +488,7 @@ public function dump($keys = [])
{
$keys = is_array($keys) ? $keys : func_get_args();

if (count($keys) > 0) {
$data = $this->only($keys);
} else {
$data = $this->all();
}

VarDumper::dump($data);
VarDumper::dump(count($keys) > 0 ? $this->only($keys) : $this->all());

return $this;
}
Expand Down

0 comments on commit c43e08f

Please sign in to comment.