Passed
Push — master ( d36a5d...7af382 )
by Hergen
19:16 queued 14:06
created
src/Middleware/IfMatch.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     public function handle(Request $request, Closure $next)
22 22
     {
23 23
         // Next unless method is PATCH and If-Match header is set
24
-        if (! ($request->isMethod('PATCH') && $request->hasHeader('If-Match'))) {
24
+        if (!($request->isMethod('PATCH') && $request->hasHeader('If-Match'))) {
25 25
             return $next($request);
26 26
         }
27 27
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
         // Compare current and request hashes
51 51
         // Also allow wildcard (*) values
52
-        if (! (in_array($getEtag, $ifMatchArray) || in_array('"*"', $ifMatchArray))) {
52
+        if (!(in_array($getEtag, $ifMatchArray) || in_array('"*"', $ifMatchArray))) {
53 53
             return response(null, 412);
54 54
         }
55 55
 
Please login to merge, or discard this patch.