mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-26 06:46:08 +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;
|
$filename = isset($filePath['filename']) ? $filePath['filename'] : null;
|
||||||
|
|
||||||
|
$resource = null;
|
||||||
|
|
||||||
if (isset($filePath['fileContent'])) {
|
if (isset($filePath['fileContent'])) {
|
||||||
// File from memory
|
// File from memory
|
||||||
$resource = fopen('php://temp', 'r+');
|
$resource = fopen('php://temp', 'r+');
|
||||||
@ -255,8 +257,6 @@ class EmailValidationV4 extends HttpApi
|
|||||||
}
|
}
|
||||||
|
|
||||||
$resource = fopen($path, 'r');
|
$resource = fopen($path, 'r');
|
||||||
} else {
|
|
||||||
throw new InvalidArgumentException('When using a file you need to specify parameter "fileContent" or "filePath"');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
@ -144,6 +144,8 @@ class Message extends HttpApi
|
|||||||
}
|
}
|
||||||
|
|
||||||
$resource = fopen($path, 'r');
|
$resource = fopen($path, 'r');
|
||||||
|
} else {
|
||||||
|
throw new InvalidArgumentException('When using a file you need to specify parameter "fileContent" or "filePath"');
|
||||||
}
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
Loading…
Reference in New Issue
Block a user