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 +} 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 +}