Skip to content
Permalink
Browse files

No else statement required.

  • Loading branch information...
ndm2
ndm2 committed Jul 28, 2018
1 parent bbf07b4 commit 0aeef36d2859be1b626697a3de6e328f1b340fa8
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/Validation/Validation.php
@@ -783,7 +783,8 @@ public static function extension($check, $extensions = ['gif', 'jpeg', 'png', 'j
{
if ($check instanceof UploadedFileInterface) {
return static::extension($check->getClientFilename(), $extensions);
} elseif (is_array($check)) {
}
if (is_array($check)) {
$check = isset($check['name']) ? $check['name'] : array_shift($check);
return static::extension($check, $extensions);

0 comments on commit 0aeef36

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