From 9ed4bee52c683c0703755a1bc7506d9c09c3f4c1 Mon Sep 17 00:00:00 2001 From: Hergen Dillema Date: Wed, 18 Aug 2021 14:45:11 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Middleware/IfMatch.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Middleware/IfMatch.php b/src/Middleware/IfMatch.php index 52b12d8..f9f824d 100644 --- a/src/Middleware/IfMatch.php +++ b/src/Middleware/IfMatch.php @@ -36,17 +36,17 @@ public function handle(Request $request, Closure $next) $getEtag = EtagConditionals::getEtag($request, $getResponse); $ifMatch = $request->header('If-Match'); - if($ifMatch === null){ + if ($ifMatch === null) { return response(null, 412); } - $ifMatchArray = (is_string($ifMatch))? - explode(',', $ifMatch): + $ifMatchArray = (is_string($ifMatch)) ? + explode(',', $ifMatch) : $ifMatch; // Strip W/ if weak comparison algorithm can be used if (config('etagconditionals.if_match_weak')) { - foreach($ifMatchArray as &$match){ + foreach ($ifMatchArray as &$match) { $match = str_replace('W/', '', $match); } unset($match);