Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit f7deb7e

Browse files
committed
Fix CS
1 parent 40c3c0c commit f7deb7e

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

src/Card.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ public function addAttribute($attribute)
356356
}
357357

358358
throw new InvalidArgumentException(
359-
'Invalid attribute type. Expected '.CardAttribute::class.' or '. Closure::class.'.'
359+
'Invalid attribute type. Expected '.CardAttribute::class.' or '.Closure::class.'.'
360360
);
361361
}
362362

src/Exceptions/CouldNotSendNotification.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ public static function invalidMessageObject($message)
5555
*/
5656
public static function internalError($exception = null)
5757
{
58-
return new static("Error occurred while sending the message.", 0, $exception);
58+
return new static('Error occurred while sending the message.', 0, $exception);
5959
}
6060
}

src/HipChatMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public function card($card)
257257
}
258258

259259
throw new InvalidArgumentException(
260-
'Invalid Card type. Expected '.Card::class.' or '. Closure::class.'.'
260+
'Invalid Card type. Expected '.Card::class.' or '.Closure::class.'.'
261261
);
262262
}
263263

tests/HipChatChannelTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
namespace NotificationChannels\HipChat\Test;
44

5-
use Illuminate\Notifications\Notifiable;
65
use Mockery;
7-
use NotificationChannels\HipChat\Exceptions\CouldNotSendNotification;
6+
use stdClass;
7+
use Illuminate\Notifications\Notifiable;
88
use NotificationChannels\HipChat\HipChat;
99
use Illuminate\Notifications\Notification;
1010
use NotificationChannels\HipChat\HipChatFile;
1111
use NotificationChannels\HipChat\HipChatChannel;
1212
use NotificationChannels\HipChat\HipChatMessage;
13-
use stdClass;
13+
use NotificationChannels\HipChat\Exceptions\CouldNotSendNotification;
1414

1515
class HipChatChannelTest extends TestCase
1616
{
@@ -58,7 +58,6 @@ public function test_it_throws_exception_if_invalid_message_given()
5858
CouldNotSendNotification::invalidMessageObject(new stdClass())->getMessage()
5959
);
6060

61-
6261
$channel = new HipChatChannel($hipChat);
6362
$channel->send(new TestNotifiable(), new TestInvalidNotification());
6463
}

0 commit comments

Comments
 (0)