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

Commit

Permalink
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Transfer/Adapter/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ public function isValid($files = null)
$validator->setTranslator($translator);
}

if (($class === 'Zend\Validator\File\Upload') and (empty($content['tmp_name']))) {
if (($class === 'Zend\Validator\File\Upload') && (empty($content['tmp_name']))) {
$tocheck = $key;
} else {
$tocheck = $content['tmp_name'];
Expand All @@ -632,16 +632,16 @@ public function isValid($files = null)
$fileerrors += $validator->getMessages();
}

if (!empty($content['options']['ignoreNoFile']) and (isset($fileerrors['fileUploadErrorNoFile']))) {
if (!empty($content['options']['ignoreNoFile']) && (isset($fileerrors['fileUploadErrorNoFile']))) {
unset($fileerrors['fileUploadErrorNoFile']);
break;
}

if (($class === 'Zend\Validator\File\Upload') and (count($fileerrors) > 0)) {
if (($class === 'Zend\Validator\File\Upload') && (count($fileerrors) > 0)) {
break;
}

if (($this->break[$class]) and (count($fileerrors) > 0)) {
if (($this->break[$class]) && (count($fileerrors) > 0)) {
$break = true;
break;
}
Expand Down

0 comments on commit 6371934

Please sign in to comment.