Skip to content

Commit b662794

Browse files
authored
Merge pull request #41 from laravel-notification-channels/analysis-XW071e
Apply fixes from StyleCI
2 parents 7392fcc + 0aa3bb3 commit b662794

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Twilio.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ protected function makeCall(TwilioCallMessage $message, $to)
131131
*/
132132
protected function getFrom(TwilioMessage $message)
133133
{
134-
if (!$from = $message->getFrom() ?: $this->config->getFrom()) {
134+
if (! $from = $message->getFrom() ?: $this->config->getFrom()) {
135135
throw CouldNotSendNotification::missingFrom();
136136
}
137137

src/TwilioSmsMessage.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ class TwilioSmsMessage extends TwilioMessage
2020
public $maxPrice = null;
2121

2222
/**
23-
* @var null|boolean
23+
* @var null|bool
2424
*/
2525
public $provideFeedback = null;
2626

2727
/**
28-
* @var null|integer
28+
* @var null|int
2929
*/
3030
public $validityPeriod = null;
3131

@@ -87,7 +87,7 @@ public function maxPrice($maxPrice)
8787
/**
8888
* Set the provide feedback option.
8989
*
90-
* @param boolean $provideFeedback
90+
* @param bool $provideFeedback
9191
* @return $this
9292
*/
9393
public function provideFeedback($provideFeedback)
@@ -100,7 +100,7 @@ public function provideFeedback($provideFeedback)
100100
/**
101101
* Set the validity period (in seconds).
102102
*
103-
* @param integer $validityPeriod
103+
* @param int $validityPeriod
104104
* @return $this
105105
*/
106106
public function validityPeriod($validityPeriod)

tests/TwilioTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace NotificationChannels\Twilio\Test;
44

55
use Mockery;
6-
use NotificationChannels\Twilio\TwilioMmsMessage;
76
use Services_Twilio_Rest_Calls;
87
use Services_Twilio_Rest_Messages;
98
use NotificationChannels\Twilio\Twilio;
@@ -12,6 +11,7 @@
1211
use Mockery\Adapter\Phpunit\MockeryTestCase;
1312
use NotificationChannels\Twilio\TwilioConfig;
1413
use NotificationChannels\Twilio\TwilioMessage;
14+
use NotificationChannels\Twilio\TwilioMmsMessage;
1515
use NotificationChannels\Twilio\TwilioSmsMessage;
1616
use NotificationChannels\Twilio\TwilioCallMessage;
1717
use NotificationChannels\Twilio\Exceptions\CouldNotSendNotification;

0 commit comments

Comments
 (0)