Test Failed
Push — master ( 96b4e0...1f74b1 )
by Sergio
06:51
created
widgets/hitCounter/HitCounterWidget.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -186,7 +186,9 @@
 block discarded – undo
186 186
     {
187 187
         $defOpts = [];
188 188
         $defOpts['target'] = '_blank';
189
-        if($this->counterOptions['type'] === self::COUNTER_VIEW_INVISIBLE) $defOpts['style'] = 'position:absolute; left:-9999px;';
189
+        if($this->counterOptions['type'] === self::COUNTER_VIEW_INVISIBLE) {
190
+            $defOpts['style'] = 'position:absolute; left:-9999px;';
191
+        }
190 192
         $this->clientLinkOptions = array_merge($defOpts, $this->clientLinkOptions);
191 193
 
192 194
     }
Please login to merge, or discard this patch.
services/HitCounterService.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             $data['js_processor_ram']   = ArrayHelper::getValue($array, 'ram');
77 77
 
78 78
             return $data;
79
-        }else{
79
+        } else{
80 80
            throw new BadRequestHttpException('required get param "i" cannot be empty.'); 
81 81
         }
82 82
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
         if ($request->cookies->has($name)){
127 127
             return $request->cookies->getValue($name);
128
-        }else{
128
+        } else{
129 129
             $str = Yii::$app->getSecurity()->generateRandomString();
130 130
             
131 131
             // add to HTTP
Please login to merge, or discard this patch.