From 029fada6dad8814fbf5ca15833bb668575b742c9 Mon Sep 17 00:00:00 2001 From: ARCANEDEV Date: Thu, 24 Sep 2015 15:15:36 +0100 Subject: [PATCH] Fixing a minor bug (Stupid scrutinizer) --- src/Utilities/Negotiator.php | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/Utilities/Negotiator.php b/src/Utilities/Negotiator.php index ff608dd..0096ed2 100644 --- a/src/Utilities/Negotiator.php +++ b/src/Utilities/Negotiator.php @@ -61,24 +61,6 @@ public function __construct($defaultLocale, $supportedLanguages) $this->supportedLocales = $supportedLanguages; } - /* ------------------------------------------------------------------------------------------------ - | Getters & Setters - | ------------------------------------------------------------------------------------------------ - */ - /** - * Set request instance. - * - * @param Request $request - * - * @return self - */ - private function setRequest(Request $request) - { - $this->request = $request; - - return $this; - } - /* ------------------------------------------------------------------------------------------------ | Main Functions | ------------------------------------------------------------------------------------------------ @@ -92,7 +74,7 @@ private function setRequest(Request $request) */ public function negotiate(Request $request) { - $this->setRequest($request); + $this->request = $request; $locale = $this->getFromAcceptedLanguagesHeader();