Completed
Push — master ( e6b149...7e9947 )
by Владислав
02:09
created
src/core/DeCaptchaAbstract.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
      * Узнаём путь до файла
108 108
      * Если передана ссылка, то скачиваем и кладём во временную директорию
109 109
      *
110
-     * @param $fileName
110
+     * @param string $fileName
111 111
      * @return string
112 112
      * @throws Exception
113 113
      */
Please login to merge, or discard this patch.
src/core/DeCaptchaBase.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -90,6 +90,9 @@
 block discarded – undo
90 90
         $this->getResponse('reportbad');
91 91
     }
92 92
 
93
+    /**
94
+     * @param string $filePath
95
+     */
93 96
     protected function getPostData($filePath){
94 97
         return [
95 98
             'method' => 'post',
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,8 +112,9 @@
 block discarded – undo
112 112
         ];
113 113
         switch ($this->responseType) {
114 114
             case self::RESPONSE_TYPE_STRING:
115
-                if ($type)
116
-                    $array = explode('|', $this->responseType);
115
+                if ($type) {
116
+                                    $array = explode('|', $this->responseType);
117
+                }
117 118
 
118 119
                 break;
119 120
         }
Please login to merge, or discard this patch.
src/core/DeCaptchaErrors.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
     ];
105 105
 
106 106
     /**
107
-     * @param $name
107
+     * @param string $name
108 108
      * @return null|int
109 109
      */
110 110
     public function isThereSuch($name) {
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
         if (is_null($code)) {
127 127
             $message = $alias;
128 128
             $code = 0;
129
-        }else {
129
+        } else {
130 130
             $message = $this->errorsMessages[$code][$lang];
131 131
         }
132 132
         if ($additionalText) {
Please login to merge, or discard this patch.