Skip to content

Commit 78c0330

Browse files
authored
Merge pull request #4 from laravel-notification-channels/analysis-XZQelD
Applied fixes from StyleCI
2 parents b64f2fa + 0d1d1c0 commit 78c0330

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

src/CmsmsClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function send(CmsmsMessage $message, $recipient)
4848
// API returns an empty string on success
4949
// On failure, only the error string is passed
5050
$body = $response->getBody()->getContents();
51-
if (!empty($body)) {
51+
if (! empty($body)) {
5252
throw CouldNotSendNotification::serviceRespondedWithAnError($body);
5353
}
5454
}

src/CmsmsMessage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class CmsmsMessage
88
{
9-
/** @var string */
9+
/** @var string */
1010
protected $body;
1111

1212
/** @var string */
@@ -57,7 +57,7 @@ public function originator($originator)
5757
*/
5858
public function reference($reference)
5959
{
60-
if (empty($reference) || strlen($reference) > 32 || !ctype_alnum($reference)) {
60+
if (empty($reference) || strlen($reference) > 32 || ! ctype_alnum($reference)) {
6161
throw InvalidMessage::invalidReference($reference);
6262
}
6363

src/CmsmsServiceProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Illuminate\Support\ServiceProvider;
66
use GuzzleHttp\Client as GuzzleClient;
7-
use NotificationChannels\Cmsms\CmsmsChannel;
87
use NotificationChannels\Cmsms\Exceptions\InvalidConfiguration;
98

109
class CmsmsServiceProvider extends ServiceProvider

tests/CmsmsClientTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use NotificationChannels\Cmsms\CmsmsMessage;
1010
use NotificationChannels\Cmsms\Exceptions\CouldNotSendNotification;
1111
use Orchestra\Testbench\TestCase;
12-
use PHPUnit_Framework_TestCase;
1312

1413
class CmsmsClientTest extends TestCase
1514
{

0 commit comments

Comments
 (0)