@@ -186,7 +186,9 @@ |
||
| 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 | } |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | |
| 78 | 78 | return $data; |
| 79 | 79 | }else{ |
| 80 | - throw new BadRequestHttpException('required get param "i" cannot be empty.'); |
|
| 80 | + throw new BadRequestHttpException('required get param "i" cannot be empty.'); |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | } |
@@ -76,7 +76,7 @@ discard block |
||
| 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 |
||
| 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 |