From a46ac362c79bfc4d2015374ac8e2c2db41345dc4 Mon Sep 17 00:00:00 2001 From: mapogolions Date: Sun, 4 Aug 2019 16:30:47 +0500 Subject: [PATCH] Reduce method responsibility --- src/Response.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Response.php b/src/Response.php index 4b9de74..ce071a9 100644 --- a/src/Response.php +++ b/src/Response.php @@ -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;