Skip to content

Commit 0d8b661

Browse files
cs
1 parent 0d5f2b2 commit 0d8b661

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Http/Response.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function morph($format = 'json')
144144

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

@@ -157,7 +157,7 @@ public function morph($format = 'json')
157157
} elseif (is_array($this->content) || $this->content instanceof ArrayObject || $this->content instanceof Arrayable) {
158158
$this->content = $formatter->formatArray($this->content);
159159
} else {
160-
if (!empty($defaultContentType)) {
160+
if (! empty($defaultContentType)) {
161161
$this->headers->set('Content-Type', $defaultContentType);
162162
}
163163
}

0 commit comments

Comments
 (0)