Passed
Push — master ( a35214...e794f9 )
by Vince
01:30
created
src/core/throttle/limiter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
         $this->setUnlimited($options);
106 106
 
107
-        if( isset($this->account->scope) &&
107
+        if (isset($this->account->scope) &&
108 108
             ($this->account->scope == 'anonymous' || $this->account->scope == 'public')
109 109
         ) {
110 110
            $this->scope = $this->account->scope;
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
      */
253 253
     public function getAccount()
254 254
     {
255
-        if(is_null($this->account)) {
255
+        if (is_null($this->account)) {
256 256
             (new exception\errorException)
257 257
                 ->setOptions($this->getOptions())
258 258
                 ->error('UNAUTHORIZED');
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
         $hasCapacityOption = $this->hasOptionProperty($options, 'rateLimit');
308 308
 
309 309
         if ($hasCapacityOption) {
310
-            if (!is_integer($hasCapacityOption)||empty($hasCapacityOption)) {
310
+            if (!is_integer($hasCapacityOption) || empty($hasCapacityOption)) {
311 311
                 $hasCapacityOption = false;
312 312
             }
313 313
         }
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
     {
401 401
         $unlimited = false;
402 402
 
403
-        if(isset($options['unlimited']) && ($options['unlimited'] == 1 || $options['unlimited'] == true)) {
403
+        if (isset($options['unlimited']) && ($options['unlimited'] == 1 || $options['unlimited'] == true)) {
404 404
             $unlimited = true;
405 405
         }
406 406
 
Please login to merge, or discard this patch.