From d4f798c71cf4a0da12dfcb4048b6f741c92ac730 Mon Sep 17 00:00:00 2001 From: Baha'a Odeh Date: Thu, 10 Oct 2019 14:34:21 +0300 Subject: [PATCH 1/2] Fix PHP Warning "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2" --- src/Message/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Message/Client.php b/src/Message/Client.php index f088dd5..6a3072e 100755 --- a/src/Message/Client.php +++ b/src/Message/Client.php @@ -58,7 +58,7 @@ public function send($message) foreach($data['messages'] as $part){ switch($part['status']){ case '0': - continue; //all okay + continue 2; //all okay case '1': if(preg_match('#\[\s+(\d+)\s+\]#', $part['error-text'], $match)){ usleep($match[1] + 1); @@ -202,4 +202,4 @@ public function __call($name, $arguments) return $this->send($message); } -} \ No newline at end of file +} From 1e6c7f9f56e4b62b8b5b538b1211dea17679ad6c Mon Sep 17 00:00:00 2001 From: Baha'a Odeh Date: Thu, 10 Oct 2019 15:18:01 +0300 Subject: [PATCH 2/2] Update composer.json --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 4b3586a..34669a5 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "dpodium/yii2-nexmo", + "name": "baha2odeh/yii2-nexmo", "description": "Yii2 nexmo is a wrapper for the Nexmo PHP library. Allow yii2 application to use nexmo services.", "keywords": ["yii2", "nexmo", "sms"], "type": "yii2-extension", @@ -32,4 +32,4 @@ "Nexmo\\" : "src/" } } -} \ No newline at end of file +}