Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 6120357

Browse files
committed
Provides formatting of complex conditional
- Uses newlines and indentation to group conditional statements
1 parent d0316a1 commit 6120357

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/File/Upload.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ public function getFiles($file = null)
110110
*/
111111
public function setFiles($files = [])
112112
{
113-
if (null === $files || ((is_array($files) || $files instanceof Countable) && count($files) === 0)) {
113+
if (null === $files
114+
|| ((is_array($files) || $files instanceof Countable)
115+
&& count($files) === 0)
116+
) {
114117
$this->options['files'] = $_FILES;
115118
} else {
116119
$this->options['files'] = $files;

0 commit comments

Comments
 (0)