Skip to content

Commit

Permalink
Merge pull request #27955 from richardkeep/patch-1
Browse files Browse the repository at this point in the history
[5.8] Use Null coalescing operator to refactor
  • Loading branch information
taylorotwell authored Mar 21, 2019
2 parents e5164f8 + 7a7cacc commit 427365a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Illuminate/Http/Concerns/InteractsWithInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,7 @@ public function allFiles()
{
$files = $this->files->all();

return $this->convertedFiles
? $this->convertedFiles
: $this->convertedFiles = $this->convertUploadedFiles($files);
return $this->convertedFiles = $this->convertedFiles ?? $this->convertUploadedFiles($files);
}

/**
Expand Down

0 comments on commit 427365a

Please sign in to comment.