Skip to content

Commit

Permalink
Merge pull request #6 from talvbansal/analysis-x0BgP0
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
talvbansal authored Mar 5, 2020
2 parents 13bc152 + 51fa587 commit 85302bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/MsTeamsChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down
10 changes: 5 additions & 5 deletions src/MsTeamsMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;

Expand Down

0 comments on commit 85302bf

Please sign in to comment.