Skip to content

Commit

Permalink
Reduce method responsibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mapogolions committed Aug 4, 2019
1 parent 7936bf9 commit a46ac36
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,6 @@ public function withStatus($code, $reasonPhrase = '')

$clone = clone $this;
$clone->status = $code;

if ($reasonPhrase === '' && isset(static::$messages[$code])) {
$reasonPhrase = static::$messages[$code];
}

$clone->reasonPhrase = $reasonPhrase;

return $clone;
Expand Down

0 comments on commit a46ac36

Please sign in to comment.