@@ -47,7 +47,7 @@ |
||
| 47 | 47 | |
| 48 | 48 | protected function getBody() |
| 49 | 49 | { |
| 50 | - if(!empty($this->btns)) { |
|
| 50 | + if (!empty($this->btns)) { |
|
| 51 | 51 | $this->body['btns'] = $this->btns; |
| 52 | 52 | } else { |
| 53 | 53 | throw new \InvalidArgumentException("wrong btns"); |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | return; |
| 44 | 44 | } |
| 45 | 45 | foreach ($this->bodyFields() as $field => $config) { |
| 46 | - $content = isset($this->body[$field]) ? $this->body[$field] : null; |
|
| 46 | + $content = isset($this->body[$field]) ? $this->body[$field] : null; |
|
| 47 | 47 | if ($config['required'] && $content === null) { |
| 48 | 48 | throw new \InvalidArgumentException("{$field} is required"); |
| 49 | 49 | } |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | */ |
| 65 | 65 | public function send($wen_hook = '', RequesterContract $requester = null) |
| 66 | 66 | { |
| 67 | - $wen_hook = $wen_hook? $wen_hook : d_web_hook(); |
|
| 67 | + $wen_hook = $wen_hook ? $wen_hook : d_web_hook(); |
|
| 68 | 68 | |
| 69 | 69 | if (!$wen_hook) { |
| 70 | 70 | throw new \InvalidArgumentException("set web hook"); |