Skip to content
Permalink
Browse files

Fix PHPCS errors.

  • Loading branch information...
markstory committed Sep 5, 2016
1 parent 96630e2 commit 7222b4593a01da2a7e318ca3716c53ab3ea305b9
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/Network/Request.php
@@ -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.
@@ -557,6 +557,7 @@ protected function _normalizeNestedFiles(array $files = [])
];
$normalizedFiles[$key] = $this->_createUploadedFile($spec);
}
return $normalizedFiles;
}
@@ -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)) {

0 comments on commit 7222b45

Please sign in to comment.
You can’t perform that action at this time.