Completed
Push — master ( 593b4a...384d45 )
by Владислав
05:42
created
src/core/DeCaptchaBase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,8 @@
 block discarded – undo
45 45
                     sleep($this->requestTimeout);
46 46
                 } else {
47 47
                     $ex = explode('|', $result);
48
-                    if (trim($ex[ 0 ]) == 'OK') {
49
-                        $this->result = trim($ex[ 1 ]);
48
+                    if (trim($ex[0]) == 'OK') {
49
+                        $this->result = trim($ex[1]);
50 50
 
51 51
                         return true;
52 52
                     }
Please login to merge, or discard this patch.
src/core/DeCaptchaErrors.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
             $message = $alias;
128 128
             $code = 0;
129 129
         } else {
130
-            $message = $this->errorsMessages[ $code ][ $lang ];
130
+            $message = $this->errorsMessages[$code][$lang];
131 131
         }
132 132
         if ($additionalText) {
133 133
             $message .= ": $additionalText";
Please login to merge, or discard this patch.
src/services/Rucaptcha.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@
 block discarded – undo
57 57
                     sleep($this->requestTimeout);
58 58
                 } else {
59 59
                     $ex = explode('|', $result);
60
-                    if (trim($ex[ 0 ]) == 'OK') {
61
-                        $this->result = trim($ex[ 1 ]);
60
+                    if (trim($ex[0]) == 'OK') {
61
+                        $this->result = trim($ex[1]);
62 62
 
63 63
                         return true;
64 64
                     }
Please login to merge, or discard this patch.