8000 fix some coding standards · symfony/symfony@9403b2e · GitHub
[go: up one dir, main page]

Skip to content

Commit 9403b2e

Browse files
committed
fix some coding standards
1 parent 3ff8906 commit 9403b2e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Symfony/Component/Notifier/Bridge/RocketChat/RocketChatOptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(array $attachments = [])
3939
public function toArray(): array
4040
{
4141
return [
42-
'attachments' => [$this->attachments]
42+
'attachments' => [$this->attachments],
4343
];
4444
}
4545

src/Symfony/Component/Notifier/Bridge/RocketChat/RocketChatTransport.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct(
4141
) {
4242
$this->accessToken = $accessToken;
4343
$this->chatChannel = $chatChannel;
44-
$this->client = $client;
44+
$this->client = $client;
4545

4646
parent::__construct($client, $dispatcher);
4747
}
@@ -61,16 +61,16 @@ public function supports(MessageInterface $message): bool
6161
*/
6262
protected function doSend(MessageInterface $message): void
6363
{
64-
if (! $message instanceof ChatMessage) {
64+
if (!$message instanceof ChatMessage) {
6565
throw new LogicException(sprintf('The "%s" transport only supports instances of "%s" (instance of "%s" given).', __CLASS__, ChatMessage::class, \get_class($message)));
6666
}
67-
if ($message->getOptions() && ! $message->getOptions() instanceof RocketChatOptions) {
67+
if ($message->getOptions() && !$message->getOptions() instanceof RocketChatOptions) {
6868
throw new LogicException(sprintf('The "%s" transport only supports instances of "%s" for options.', __CLASS__, RocketChatOptions::class));
6969
}
7070

7171
$options = $message->getOptions()->toArray();
7272

73-
if (! isset($options['channel'])) {
73+
if (!isset($options['channel'])) {
7474
$options['channel'] = $message->getRecipientId() ?: $this->chatChannel;
7575
}
7676
$options['text'] = $message->getSubject();
@@ -88,7 +88,7 @@ protected function doSend(MessageInterface $message): void
8888
}
8989

9090
$result = $response->toArray(false);
91-
if (! $result['success']) {
91+
if (!$result['success']) {
9292
throw new TransportException(sprintf('Unable to post the RocketChat message: %s.', $result['error']), $response);
9393
}
9494
}

0 commit comments

Comments
 (0)
0