@@ -52,6 +52,9 @@ discard block |
||
52 | 52 | } |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param string $keyToWorkWith |
|
57 | + */ |
|
55 | 58 | private function packIntoJson($aReturn, $keyToWorkWith) |
56 | 59 | { |
57 | 60 | if ($this->isJsonByDanielGP($aReturn[$keyToWorkWith])) { |
@@ -133,7 +136,7 @@ discard block |
||
133 | 136 | /** |
134 | 137 | * Provides a list of all known JSON errors and their description |
135 | 138 | * |
136 | - * @return type |
|
139 | + * @return null|string |
|
137 | 140 | */ |
138 | 141 | protected function setJsonErrorInPlainEnglish() |
139 | 142 | { |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | ->ignoreUnreadableDirs(true) |
87 | 87 | ->followLinks() |
88 | 88 | ->in($inputArray['path']); |
89 | - $aFiles = null; |
|
89 | + $aFiles = null; |
|
90 | 90 | foreach ($iterator as $file) { |
91 | 91 | if ($file->getATime() < strtotime($inputArray['dateRule'])) { |
92 | 92 | $aFiles[] = $file->getRealPath(); |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | */ |
138 | 138 | protected function setJsonErrorInPlainEnglish() |
139 | 139 | { |
140 | - $knownErrors = [ |
|
140 | + $knownErrors = [ |
|
141 | 141 | JSON_ERROR_NONE => null, |
142 | 142 | JSON_ERROR_DEPTH => 'Maximum stack depth exceeded', |
143 | 143 | JSON_ERROR_STATE_MISMATCH => 'Underflow or the modes mismatch', |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | curl_setopt($chanel, CURLOPT_FAILONERROR, true); |
94 | 94 | $rspJsonFromClient = curl_exec($chanel); |
95 | 95 | if (curl_errno($chanel)) { |
96 | - $aReturn['info'] = $this->setArrayToJson([ |
|
96 | + $aReturn['info'] = $this->setArrayToJson([ |
|
97 | 97 | '#' => curl_errno($chanel), |
98 | 98 | 'description' => curl_error($chanel) |
99 | 99 | ]); |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | ->ignoreUnreadableDirs(true) |
270 | 270 | ->followLinks() |
271 | 271 | ->in($sourcePath); |
272 | - $sFiles = []; |
|
272 | + $sFiles = []; |
|
273 | 273 | foreach ($iterator as $file) { |
274 | 274 | $relativePathFile = str_replace($sourcePath, '', $file->getRealPath()); |
275 | 275 | if (!file_exists($targetPath . $relativePathFile)) { |