diff --git a/src/MsTeamsChannel.php b/src/MsTeamsChannel.php index edf775d..864fff8 100644 --- a/src/MsTeamsChannel.php +++ b/src/MsTeamsChannel.php @@ -110,7 +110,7 @@ public function send($notifiable, Notification $notification) * @param string $type * @return string */ - private function getNotificationType($type = 'info') : string + private function getNotificationType($type = 'info'): string { switch ($type) { case 'error': diff --git a/src/MsTeamsMessage.php b/src/MsTeamsMessage.php index c63da0e..62f2aab 100644 --- a/src/MsTeamsMessage.php +++ b/src/MsTeamsMessage.php @@ -23,19 +23,19 @@ public function to($url): self return $this; } - public function toUnknown() :bool + public function toUnknown(): bool { return empty($this->payload['url']); } - public function title($title) : self + public function title($title): self { $this->payload['title'] = $title; return $this; } - public function content($content) : self + public function content($content): self { if (! empty($content)) { $this->payload['text'] = $content; @@ -44,7 +44,7 @@ public function content($content) : self return $this; } - public function code($content) : self + public function code($content): self { if (! empty($content)) { $this->payload['code'][] = $content; @@ -53,7 +53,7 @@ public function code($content) : self return $this; } - public function type($type) : self + public function type($type): self { $this->payload['type'] = $type;