removed unreachable throw

This commit is contained in:
Artem Bondarenko 2021-01-28 17:10:14 +02:00 committed by David Garcia
parent 58a3efd166
commit fa9d53c6ff
2 changed files with 4 additions and 2 deletions

View File

@ -240,6 +240,8 @@ class EmailValidationV4 extends HttpApi
{
$filename = isset($filePath['filename']) ? $filePath['filename'] : null;
$resource = null;
if (isset($filePath['fileContent'])) {
// File from memory
$resource = fopen('php://temp', 'r+');
@ -255,8 +257,6 @@ class EmailValidationV4 extends HttpApi
}
$resource = fopen($path, 'r');
} else {
throw new InvalidArgumentException('When using a file you need to specify parameter "fileContent" or "filePath"');
}
return [

View File

@ -144,6 +144,8 @@ class Message extends HttpApi
}
$resource = fopen($path, 'r');
} else {
throw new InvalidArgumentException('When using a file you need to specify parameter "fileContent" or "filePath"');
}
return [