@@ -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"); |