diff --git a/src/Sms/SmsSender.php b/src/Sms/SmsSender.php index 9460b74..626b1a1 100644 --- a/src/Sms/SmsSender.php +++ b/src/Sms/SmsSender.php @@ -24,7 +24,7 @@ public function __construct( $this->db = $db; } - public function send($number,$message) + public function send($number, $message) { if (strlen($message) > 160) { $messageParts = str_split($message, 160); diff --git a/src/SmsConnector/DebugConnector.php b/src/SmsConnector/DebugConnector.php index d878f45..027378b 100644 --- a/src/SmsConnector/DebugConnector.php +++ b/src/SmsConnector/DebugConnector.php @@ -11,8 +11,9 @@ public function checkConfig(array $config) public function respond() { } + public function send($number, $text) { - echo $number. ' -> ' . $text .PHP_EOL; + echo $number . ' -> ' . $text . PHP_EOL; } } diff --git a/tests/Sms/SmsSenderTest.php b/tests/Sms/SmsSenderTest.php index e1b1de8..c80efc5 100644 --- a/tests/Sms/SmsSenderTest.php +++ b/tests/Sms/SmsSenderTest.php @@ -43,6 +43,9 @@ public function testSendShort() $this->smsSender->send($number, $message); } + /** + * @phpcs:disable Generic.LineLengthSniff + */ public function testSendBig() { $number = '123456789'; diff --git a/tests/SmsConnector/DebugConnectorTest.php b/tests/SmsConnector/DebugConnectorTest.php index 0d1eb35..61c033c 100644 --- a/tests/SmsConnector/DebugConnectorTest.php +++ b/tests/SmsConnector/DebugConnectorTest.php @@ -11,6 +11,6 @@ public function testSend() { $debugConnector = new DebugConnector(); $debugConnector->send('123456789', 'Hello, World!'); - $this->expectOutputString('123456789 -> Hello, World!'.PHP_EOL); + $this->expectOutputString('123456789 -> Hello, World!' . PHP_EOL); } }