Skip to content

Commit

Permalink
Fix PHPCS errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Sep 5, 2016
1 parent 96630e2 commit 7222b45
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Network/Request.php
Expand Up @@ -19,9 +19,9 @@
use Cake\Core\Configure;
use Cake\Network\Exception\MethodNotAllowedException;
use Cake\Utility\Hash;
use InvalidArgumentException;
use Psr\Http\Message\UploadedFileInterface;
use Zend\Diactoros\UploadedFile;
use InvalidArgumentException;

/**
* A class that helps wrap Request information and particulars about a single request.
Expand Down Expand Up @@ -557,6 +557,7 @@ protected function _normalizeNestedFiles(array $files = [])
];
$normalizedFiles[$key] = $this->_createUploadedFile($spec);
}

return $normalizedFiles;
}

Expand Down Expand Up @@ -1736,11 +1737,12 @@ public function withUploadedFiles(array $files)
/**
* Recursively validate uploaded file data.
*
* @param array $uploadedFiles
* @param array $uploadedFiles The new files array to validate.
* @param string $path The path thus far.
* @return void
* @throws InvalidArgumentException If any leaf elements are not valid files.
*/
private function validateUploadedFiles(array $uploadedFiles, $path)
protected function validateUploadedFiles(array $uploadedFiles, $path)
{
foreach ($uploadedFiles as $key => $file) {
if (is_array($file)) {
Expand Down

0 comments on commit 7222b45

Please sign in to comment.