@@ -48,10 +48,11 @@ discard block |
||
| 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 |
||
| 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 | |