@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | yield [ |
| 124 | 124 | new Dsn('ses+sdk', 'us-west-1', self::USER, self::PASSWORD), |
| 125 | 125 | new SesSdkTransport( |
| 126 | - $this->createConfig(self::USER, self::PASSWORD,'us-west-1'), |
|
| 126 | + $this->createConfig(self::USER, self::PASSWORD, 'us-west-1'), |
|
| 127 | 127 | $dispatcher, |
| 128 | 128 | $logger |
| 129 | 129 | ), |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | yield [ |
| 155 | 155 | new Dsn('ses+sdk', 'eu-west-1', null, null, null, ['credentials' => 'ecs']), |
| 156 | 156 | new SesSdkTransport( |
| 157 | - $this->createConfig(self::ECS_USER, self::ECS_PASSWORD,'eu-west-1'), |
|
| 157 | + $this->createConfig(self::ECS_USER, self::ECS_PASSWORD, 'eu-west-1'), |
|
| 158 | 158 | $dispatcher, |
| 159 | 159 | $logger |
| 160 | 160 | ), |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | yield [ |
| 164 | 164 | new Dsn('ses+sdk', 'eu-west-1', null, null, null), |
| 165 | 165 | new SesSdkTransport( |
| 166 | - $this->createConfig(self::DEFAULT_USER, self::DEFAULT_PASSWORD,'eu-west-1'), |
|
| 166 | + $this->createConfig(self::DEFAULT_USER, self::DEFAULT_PASSWORD, 'eu-west-1'), |
|
| 167 | 167 | $dispatcher, |
| 168 | 168 | $logger |
| 169 | 169 | ), |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | |
| 190 | 190 | private function createCredentialsResolver($key, $secret) |
| 191 | 191 | { |
| 192 | - return function () use ($key, $secret) { |
|
| 192 | + return function() use ($key, $secret) { |
|
| 193 | 193 | $promise = new Promise(); |
| 194 | 194 | $promise->resolve(new Credentials($key, $secret)); |
| 195 | 195 | return $promise; |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | ->addBcc('[email protected]') |
| 33 | 33 | ->text('This is a test email'); |
| 34 | 34 | |
| 35 | - $mockHandler = function (CommandInterface $cmd) use ($email) { |
|
| 35 | + $mockHandler = function(CommandInterface $cmd) use ($email) { |
|
| 36 | 36 | $data = $cmd->toArray(); |
| 37 | 37 | $this->assertEquals($email->getFrom(), [new Address($data['FromEmailAddress'])]); |
| 38 | 38 | $this->assertArrayHasKey('Destination', $data); |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | ->addTo('[email protected]') |
| 67 | 67 | ->text('Test'); |
| 68 | 68 | |
| 69 | - $mockHandler = function (CommandInterface $cmd) { |
|
| 69 | + $mockHandler = function(CommandInterface $cmd) { |
|
| 70 | 70 | throw new \Aws\Ses\Exception\SesException('ERRR', $cmd); |
| 71 | 71 | }; |
| 72 | 72 | |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | ->addTo('[email protected]') |
| 89 | 89 | ->text('Test'); |
| 90 | 90 | |
| 91 | - $mockHandler = function (CommandInterface $cmd) { |
|
| 91 | + $mockHandler = function(CommandInterface $cmd) { |
|
| 92 | 92 | $data = $cmd->toArray(); |
| 93 | 93 | $this->assertArrayHasKey('ConfigurationSetName', $data); |
| 94 | 94 | $this->assertEquals('MyConfigSet', $data['ConfigurationSetName']); |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | ]; |
| 132 | 132 | |
| 133 | 133 | yield [ |
| 134 | - new SesSdkTransport(new SesSdkTransportConfig(function () { |
|
| 134 | + new SesSdkTransport(new SesSdkTransportConfig(function() { |
|
| 135 | 135 | return new \GuzzleHttp\Promise\RejectedPromise('bad things happened'); |
| 136 | 136 | }, 'eu-west-1')), |
| 137 | 137 | 'ses+sdk://:@eu-west-1' |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | private function createConfig($key, $secret, $region, $options = []) |
| 149 | 149 | { |
| 150 | 150 | return new SesSdkTransportConfig( |
| 151 | - function () use ($key, $secret) { |
|
| 151 | + function() use ($key, $secret) { |
|
| 152 | 152 | $promise = new Promise(); |
| 153 | 153 | $promise->resolve(new Credentials($key, $secret)); |
| 154 | 154 | return $promise; |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | urlencode($credentials->getAccessKeyId()), |
| 47 | 47 | urlencode($credentials->getSecretKey()), |
| 48 | 48 | $this->client->getRegion(), |
| 49 | - !empty($parameters) ? '?'.$parameters : '' |
|
| 49 | + !empty($parameters) ? '?' . $parameters : '' |
|
| 50 | 50 | ); |
| 51 | 51 | } |
| 52 | 52 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | try { |
| 74 | 74 | $email = MessageConverter::toEmail($message->getOriginalMessage()); |
| 75 | 75 | $response = $this->doSendSdk($email, $message->getEnvelope()); |
| 76 | - $message->setMessageId((string) $response->get('MessageId')); |
|
| 76 | + $message->setMessageId((string)$response->get('MessageId')); |
|
| 77 | 77 | } catch (SesException $exception) { |
| 78 | 78 | $message = $exception->getAwsErrorMessage() ?: $exception->getMessage(); |
| 79 | 79 | $code = $exception->getStatusCode() ?: $exception->getCode(); |