Code Style fixes

This commit is contained in:
David Garcia 2020-10-08 12:47:18 +01:00 committed by David Garcia
parent 5df697e17f
commit b6d0ace9f3
10 changed files with 14 additions and 19 deletions

View File

@ -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
*/

View File

@ -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);

View File

@ -12,7 +12,6 @@ declare(strict_types=1);
namespace Mailgun\Api;
use Mailgun\Assert;
use Mailgun\Model\Stats\AllResponse;
use Mailgun\Model\Stats\TotalResponse;
/**

View File

@ -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

View File

@ -195,9 +195,6 @@ final class Event
return $this->method;
}
/**
* @return string
*/
public function getLogLevel(): string
{
return $this->logLevel;

View File

@ -31,7 +31,7 @@ final class IndexResponse implements ApiResponse
/**
* @var string[]
*/
private $assignableToPools;
private $assignableToPools;
private function __construct()
{

View File

@ -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']);
}
}

View File

@ -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');

View File

@ -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;

View File

@ -48,7 +48,7 @@ class MailingListTest extends TestCase
'name' => 'Foo',
'description' => 'Description',
'access_level' => 'readonly',
'reply_preference' => 'list'
'reply_preference' => 'list',
];
$api = $this->getApiMock();