@@ -36,6 +36,9 @@ discard block |
||
36 | 36 | trait CommonBasic |
37 | 37 | { |
38 | 38 | |
39 | + /** |
|
40 | + * @param string $fullURL |
|
41 | + */ |
|
39 | 42 | protected function getContentFromUrlThroughCurlRawArray($fullURL, $features = null) |
40 | 43 | { |
41 | 44 | $chanel = curl_init(); |
@@ -70,7 +73,7 @@ discard block |
||
70 | 73 | * |
71 | 74 | * @param type $sourcePath |
72 | 75 | * @param type $targetPath |
73 | - * @return type |
|
76 | + * @return string |
|
74 | 77 | */ |
75 | 78 | protected function moveFilesIntoTargetFolder($sourcePath, $targetPath) |
76 | 79 | { |
@@ -186,7 +189,7 @@ discard block |
||
186 | 189 | /** |
187 | 190 | * Provides a list of all known JSON errors and their description |
188 | 191 | * |
189 | - * @return type |
|
192 | + * @return null|string |
|
190 | 193 | */ |
191 | 194 | protected function setJsonErrorInPlainEnglish() |
192 | 195 | { |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $rspJsonFromClient = curl_exec($chanel); |
53 | 53 | $aReturn = []; |
54 | 54 | if (curl_errno($chanel)) { |
55 | - $aReturn['info'] = $this->setArrayToJson([ |
|
55 | + $aReturn['info'] = $this->setArrayToJson([ |
|
56 | 56 | '#' => curl_errno($chanel), |
57 | 57 | 'description' => curl_error($chanel) |
58 | 58 | ]); |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | */ |
191 | 191 | protected function setJsonErrorInPlainEnglish() |
192 | 192 | { |
193 | - $knownErrors = [ |
|
193 | + $knownErrors = [ |
|
194 | 194 | JSON_ERROR_NONE => null, |
195 | 195 | JSON_ERROR_DEPTH => 'Maximum stack depth exceeded', |
196 | 196 | JSON_ERROR_STATE_MISMATCH => 'Underflow or the modes mismatch', |