8000 Fixing some Coding Standards complaints by fabbot (again) · symfony/symfony@5b94a32 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5b94a32

Browse files
committed
Fixing some Coding Standards complaints by fabbot (again)
1 parent 36b936e commit 5b94a32

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Symfony/Component/Notifier/Bridge/Matrix/MatrixTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ protected function connect(
220220
throw new TransportException('Could not reach the Matrix server.', $response, 0, $e);
221221
}
222222

223-
if (\in_array($statusCode, [400,403,405])) {
223+
if (\in_array($statusCode, [400, 403, 405])) {
224224
$result = $response->toArray(false);
225225
throw new TransportException(\sprintf('Error: Matrix responded with "%s (%s)"', $result['error'], $result['errcode']), $response);
226226
}

src/Symfony/Component/Notifier/Bridge/Matrix/Tests/MatrixTransportTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ public function testUnsupportedRecipients()
5353
$transport->send(new ChatMessage('Hello!', new MatrixOptions(['recipient_id' => '+testchannelalias:matrix.io'])));
5454
}
5555

56-
public function testUnsupportedMsgType(){
56+
public function testUnsupportedMsgType()
57+
{
5758
$transport = self::createTransport();
5859
$this->expectException(UnsupportesMsgTypeByAPIException::class);
5960
$transport->send(new ChatMessage('Hello!', new MatrixOptions(['recipient_id' => '@user:matrix.io', 'msgtype' => 'm.anything'])));

0 commit comments

Comments
 (0)
0