mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2025-02-18 05:43:15 +03:00
Code Style fixes
This commit is contained in:
parent
5df697e17f
commit
b6d0ace9f3
@ -74,12 +74,12 @@ class Domain extends HttpApi
|
||||
*
|
||||
* @see https://documentation.mailgun.com/en/latest/api-domains.html#domains
|
||||
*
|
||||
* @param string $domain name of the domain
|
||||
* @param string $smtpPass password for SMTP authentication
|
||||
* @param string $spamAction `disable` or `tag` - inbound spam filtering
|
||||
* @param bool $wildcard domain will accept email for subdomains
|
||||
* @param string $domain name of the domain
|
||||
* @param string $smtpPass password for SMTP authentication
|
||||
* @param string $spamAction `disable` or `tag` - inbound spam filtering
|
||||
* @param bool $wildcard domain will accept email for subdomains
|
||||
* @param bool $forceDkimAuthority force DKIM authority
|
||||
* @param string[] $ips an array of ips to be assigned to the domain
|
||||
* @param string[] $ips an array of ips to be assigned to the domain
|
||||
*
|
||||
* @return CreateResponse|array|ResponseInterface
|
||||
*/
|
||||
|
@ -76,7 +76,7 @@ class MailingList extends HttpApi
|
||||
'name' => $name,
|
||||
'description' => $description,
|
||||
'access_level' => $accessLevel,
|
||||
'reply_preference' => $replyPreference
|
||||
'reply_preference' => $replyPreference,
|
||||
];
|
||||
|
||||
$response = $this->httpPost('/v3/lists', $params);
|
||||
|
@ -12,7 +12,6 @@ declare(strict_types=1);
|
||||
namespace Mailgun\Api;
|
||||
|
||||
use Mailgun\Assert;
|
||||
use Mailgun\Model\Stats\AllResponse;
|
||||
use Mailgun\Model\Stats\TotalResponse;
|
||||
|
||||
/**
|
||||
|
@ -85,8 +85,8 @@ class MessageBuilder
|
||||
|
||||
/**
|
||||
* @var string
|
||||
* @var string $first
|
||||
* @var string $last
|
||||
* @var string
|
||||
* @var string
|
||||
* }
|
||||
*/
|
||||
protected function parseAddress(string $address, array $variables): string
|
||||
|
@ -195,9 +195,6 @@ final class Event
|
||||
return $this->method;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLogLevel(): string
|
||||
{
|
||||
return $this->logLevel;
|
||||
|
@ -31,7 +31,7 @@ final class IndexResponse implements ApiResponse
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
private $assignableToPools;
|
||||
private $assignableToPools;
|
||||
|
||||
private function __construct()
|
||||
{
|
||||
|
@ -249,11 +249,11 @@ JSON
|
||||
$this->setRequestBody([
|
||||
'name' => 'example.com',
|
||||
'smtp_password' => 'foo',
|
||||
'ips' => "127.0.0.1,127.0.0.2",
|
||||
'ips' => '127.0.0.1,127.0.0.2',
|
||||
]);
|
||||
$this->setHydrateClass(CreateResponse::class);
|
||||
|
||||
$api = $this->getApiInstance();
|
||||
$api->create('example.com', 'foo', null, null, null, ["127.0.0.1", "127.0.0.2"]);
|
||||
$api->create('example.com', 'foo', null, null, null, ['127.0.0.1', '127.0.0.2']);
|
||||
}
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ JSON
|
||||
$this->assertEquals('192.168.0.2', $response->getItems()[1]);
|
||||
$this->assertEquals('192.168.0.1', $response->getAssignableToPools()[0]);
|
||||
}
|
||||
|
||||
|
||||
public function testIndexOnlyDedicated()
|
||||
{
|
||||
$this->setRequestMethod('GET');
|
||||
@ -66,7 +66,7 @@ JSON
|
||||
$this->assertEquals('192.161.0.1', $response->getItems()[0]);
|
||||
$this->assertEquals('192.168.0.1', $response->getAssignableToPools()[0]);
|
||||
}
|
||||
|
||||
|
||||
public function testIndexOnlyShared()
|
||||
{
|
||||
$this->setRequestMethod('GET');
|
||||
|
@ -11,7 +11,6 @@ declare(strict_types=1);
|
||||
|
||||
namespace Mailgun\Tests\Api;
|
||||
|
||||
use GuzzleHttp\Psr7\Response;
|
||||
use Mailgun\Api\Ip;
|
||||
use Mailgun\Model\Ip\UpdateResponse;
|
||||
|
||||
|
@ -48,7 +48,7 @@ class MailingListTest extends TestCase
|
||||
'name' => 'Foo',
|
||||
'description' => 'Description',
|
||||
'access_level' => 'readonly',
|
||||
'reply_preference' => 'list'
|
||||
'reply_preference' => 'list',
|
||||
];
|
||||
|
||||
$api = $this->getApiMock();
|
||||
|
Loading…
x
Reference in New Issue
Block a user