mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-25 22:36:06 +03:00
removed unreachable throw
This commit is contained in:
parent
58a3efd166
commit
fa9d53c6ff
@ -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 [
|
||||
|
@ -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 [
|
||||
|
Loading…
Reference in New Issue
Block a user