Completed
Push — master ( 44753c...7d9c12 )
by Владислав
02:17
created
src/services/RuCaptcha.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@
 block discarded – undo
196 196
      */
197 197
     public function getBalance()
198 198
     {
199
-        return (float)$this->requestUniversal('getbalance')[static::DECODE_PARAM_RESPONSE];
199
+        return (float) $this->requestUniversal('getbalance')[static::DECODE_PARAM_RESPONSE];
200 200
     }
201 201
 
202 202
     /**
Please login to merge, or discard this patch.
src/core/DeCaptchaBase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@
 block discarded – undo
240 240
         $this->causeAnError = $causeAnError;
241 241
     }
242 242
 
243
-    public function getWiki($lang = 'en'){
243
+    public function getWiki($lang = 'en') {
244 244
         $this->wiki->setLang($lang);
245 245
         return $this->wiki;
246 246
     }
Please login to merge, or discard this patch.
src/core/DeCaptchaWiki.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     private $class;
15 15
     private $lang = 'en';
16 16
 
17
-    public function setLang($lang){
17
+    public function setLang($lang) {
18 18
         $this->lang = $lang;
19 19
     }
20 20
 
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
      * @return string
207 207
      */
208 208
     public function getText($name, $separator = '; ') {
209
-        $getResult = function ($name, $texts) {
209
+        $getResult = function($name, $texts) {
210 210
             if (is_array($name)) {
211 211
                 $name = implode('_', $name);
212 212
             }
@@ -230,8 +230,8 @@  discard block
 block discarded – undo
230 230
 
231 231
     public function viewFields()
232 232
     {
233
-        echo ' Название | Код | Тип | Обязательное | По умолчания | Возможные значения | Описание '.PHP_EOL;
234
-        echo ' --- | --- | --- | --- | --- | ---| --- '.PHP_EOL;
233
+        echo ' Название | Код | Тип | Обязательное | По умолчания | Возможные значения | Описание ' . PHP_EOL;
234
+        echo ' --- | --- | --- | --- | --- | ---| --- ' . PHP_EOL;
235 235
         $rr = (new \ReflectionClass($this->class))->getConstants();
236 236
         foreach ($this->class->actions[($this->class)::ACTION_RECOGNIZE][($this->class)::ACTION_FIELDS] as $param => $setting) {
237 237
             if (array_key_exists(($this->class)::ACTION_FIELDS, $setting) && is_array($setting[($this->class)::ACTION_FIELDS])) {
@@ -251,13 +251,13 @@  discard block
 block discarded – undo
251 251
 
252 252
     public function line($rr, $param, $setting)
253 253
     {
254
-        echo " {$this->getText(['field', 'main','name',$param])} |";
254
+        echo " {$this->getText(['field', 'main', 'name', $param])} |";
255 255
         echo " {$this->ggg($rr, 'ACTION_FIELD_', $param)} |";
256
-        echo ' '.substr($this->ggg($rr, 'PARAM_FIELD_TYPE_', $setting[($this->class)::PARAM_SLUG_TYPE]), 17).' |';
257
-        echo ' '.(array_key_exists(($this->class)::PARAM_SLUG_REQUIRE, $setting) ? '+' : '-').' |';
258
-        echo ' '.(array_key_exists(($this->class)::PARAM_SLUG_DEFAULT, $setting) ? $setting[($this->class)::PARAM_SLUG_DEFAULT] : '').' |';
259
-        echo " {$this->getText(['field', 'slug', ($this->class)::PARAM_SLUG_ENUM,$param])} |";
260
-        echo " {$this->getText(['field', 'main','desc',$param])} |";
256
+        echo ' ' . substr($this->ggg($rr, 'PARAM_FIELD_TYPE_', $setting[($this->class)::PARAM_SLUG_TYPE]), 17) . ' |';
257
+        echo ' ' . (array_key_exists(($this->class)::PARAM_SLUG_REQUIRE, $setting) ? '+' : '-') . ' |';
258
+        echo ' ' . (array_key_exists(($this->class)::PARAM_SLUG_DEFAULT, $setting) ? $setting[($this->class)::PARAM_SLUG_DEFAULT] : '') . ' |';
259
+        echo " {$this->getText(['field', 'slug', ($this->class)::PARAM_SLUG_ENUM, $param])} |";
260
+        echo " {$this->getText(['field', 'main', 'desc', $param])} |";
261 261
         echo PHP_EOL;
262 262
     }
263 263
 
Please login to merge, or discard this patch.