Skip to content

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
specialtactics committed May 1, 2021
1 parent 0d5f2b2 commit 0d8b661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function morph($format = 'json')

// If we have no content, we don't want to set this header, as it will be blank
$contentType = $formatter->getContentType();
if (!empty($contentType)) {
if (! empty($contentType)) {
$this->headers->set('Content-Type', $formatter->getContentType());
}

Expand All @@ -157,7 +157,7 @@ public function morph($format = 'json')
} elseif (is_array($this->content) || $this->content instanceof ArrayObject || $this->content instanceof Arrayable) {
$this->content = $formatter->formatArray($this->content);
} else {
if (!empty($defaultContentType)) {
if (! empty($defaultContentType)) {
$this->headers->set('Content-Type', $defaultContentType);
}
}
Expand Down

0 comments on commit 0d8b661

Please sign in to comment.