Passed
Push — master ( 517e0c...e2aca6 )
by Clinton
01:42
created
src/Guzzler.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,9 @@  discard block
 block discarded – undo
33 33
         $ms = microtime();
34 34
         do {
35 35
             $this->curl->tick();
36
-	    if ($this->concurrent >= $this->maxConcurrent) usleep(max(1, min(1000000, $this->usleep)));
36
+	    if ($this->concurrent >= $this->maxConcurrent) {
37
+	        usleep(max(1, min(1000000, $this->usleep)));
38
+	    }
37 39
         } while ($this->concurrent >= $this->maxConcurrent);
38 40
         return max(0, microtime() - $ms);
39 41
     }
@@ -95,7 +97,9 @@  discard block
 block discarded – undo
95 97
         $redis = isset($setup['etag']) ? $setup['etag'] : null;
96 98
         if ($redis !== null && $params['callType'] == 'GET') {
97 99
             $etag = $redis->get("guzzler:etags:" . $params['uri']);
98
-            if ($etag != "") $setup['If-None-Match'] = $etag;
100
+            if ($etag != "") {
101
+                $setup['If-None-Match'] = $etag;
102
+            }
99 103
         }
100 104
         unset($setup['etag']);
101 105
 	return $redis;
Please login to merge, or discard this patch.