Passed
Push — main ( 17b55f...a10d7b )
by jaber
04:39
created
src/Drivers/farazsms.php 1 patch
Braces   +8 added lines, -6 removed lines patch added patch discarded remove patch
@@ -48,10 +48,11 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function send()
50 50
     {
51
-        if ($this->method == 'pattern')
52
-            $res = $this->sendPattern();
53
-        else
54
-            $res = $this->message($this->text);
51
+        if ($this->method == 'pattern') {
52
+                    $res = $this->sendPattern();
53
+        } else {
54
+                    $res = $this->message($this->text);
55
+        }
55 56
         return $res;
56 57
     }
57 58
 
@@ -73,8 +74,9 @@  discard block
 block discarded – undo
73 74
     public function pattern($pattern_code = null)
74 75
     {
75 76
         $this->method = 'pattern';
76
-        if ($pattern_code)
77
-            $this->pattern_code = $pattern_code;
77
+        if ($pattern_code) {
78
+                    $this->pattern_code = $pattern_code;
79
+        }
78 80
         return $this;
79 81
     }
80 82
 
Please login to merge, or discard this patch.