From 66bdb0b8dca5d3df224ba94bce23eeb4eb5f1362 Mon Sep 17 00:00:00 2001 From: Deniz Berktunali Date: Wed, 1 Nov 2017 13:44:40 +0100 Subject: [PATCH] Revert "Fix the unused local variable issue" This reverts commit a386bf546aee0bcc8bda1a63ebc02b713f1bb533 as it does not fix the issue as expected. --- src/Rest.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/Rest.php b/src/Rest.php index a92d08a..585ddaf 100644 --- a/src/Rest.php +++ b/src/Rest.php @@ -284,13 +284,6 @@ private static function getRetryDecider() Response $response = null, RequestException $exception = null ) { - /** - * @var mixed This variable has the sole purpose of shutting codeclimate up. - * Listen codeclimate, I know it's stupid, but play stupid games, win stupid prizes, eh? - * Can be removed safely after codeclimate is configured to ignore this single instance of - * "avoid unused local variables such as $request" - */ - $garbage = $request; $returnValue = null; // if we failed more than MAX_RETRIES times, we give up if ($retries >= self::MAX_RETRIES) {