@@ -148,7 +148,7 @@ |
||
148 | 148 | */ |
149 | 149 | protected function setJsonErrorInPlainEnglish() |
150 | 150 | { |
151 | - $knownErrors = [ |
|
151 | + $knownErrors = [ |
|
152 | 152 | JSON_ERROR_NONE => null, |
153 | 153 | JSON_ERROR_DEPTH => 'Maximum stack depth exceeded', |
154 | 154 | JSON_ERROR_STATE_MISMATCH => 'Underflow or the modes mismatch', |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | * |
42 | 42 | * @param type $sourcePath |
43 | 43 | * @param type $targetPath |
44 | - * @return type |
|
44 | + * @return string |
|
45 | 45 | */ |
46 | 46 | protected function moveFilesIntoTargetFolder($sourcePath, $targetPath) |
47 | 47 | { |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | /** |
158 | 158 | * Provides a list of all known JSON errors and their description |
159 | 159 | * |
160 | - * @return type |
|
160 | + * @return null|string |
|
161 | 161 | */ |
162 | 162 | protected function setJsonErrorInPlainEnglish() |
163 | 163 | { |
@@ -62,6 +62,9 @@ discard block |
||
62 | 62 | return $difference; |
63 | 63 | } |
64 | 64 | |
65 | + /** |
|
66 | + * @param resource $chanel |
|
67 | + */ |
|
65 | 68 | private function buildArrayForCurlInterogation($chanel) |
66 | 69 | { |
67 | 70 | if (curl_errno($chanel)) { |
@@ -81,7 +84,7 @@ discard block |
||
81 | 84 | * |
82 | 85 | * @param string $fullURL |
83 | 86 | * @param array $features |
84 | - * @return blob |
|
87 | + * @return string |
|
85 | 88 | */ |
86 | 89 | protected function getContentFromUrlThroughCurl($fullURL, $features = null) |
87 | 90 | { |
@@ -122,6 +125,9 @@ discard block |
||
122 | 125 | return $result; |
123 | 126 | } |
124 | 127 | |
128 | + /** |
|
129 | + * @param string $fullURL |
|
130 | + */ |
|
125 | 131 | protected function getContentFromUrlThroughCurlRawArray($fullURL, $features = null) |
126 | 132 | { |
127 | 133 | $chanel = curl_init(); |
@@ -276,6 +282,9 @@ discard block |
||
276 | 282 | return $this->lclMsgCmn('i18n_Error_GivenInputIsNotJson'); |
277 | 283 | } |
278 | 284 | |
285 | + /** |
|
286 | + * @param string $keyToWorkWith |
|
287 | + */ |
|
279 | 288 | private function packIntoJson($aReturn, $keyToWorkWith) |
280 | 289 | { |
281 | 290 | if ($this->isJsonByDanielGP($aReturn[$keyToWorkWith])) { |
@@ -320,6 +329,9 @@ discard block |
||
320 | 329 | } |
321 | 330 | } |
322 | 331 | |
332 | + /** |
|
333 | + * @param string $postingString |
|
334 | + */ |
|
323 | 335 | protected function sendBackgroundPrepareData($pUrlParts, $postingString) |
324 | 336 | { |
325 | 337 | $this->initializeSprGlbAndSession(); |
@@ -341,7 +353,7 @@ discard block |
||
341 | 353 | * |
342 | 354 | * @param float $fAbove |
343 | 355 | * @param float $fBelow |
344 | - * @param mixed $mArguments |
|
356 | + * @param integer $mArguments |
|
345 | 357 | * @return decimal |
346 | 358 | */ |
347 | 359 | protected function setDividedResult($fAbove, $fBelow, $mArguments = 0) |