@@ -63,6 +63,9 @@ discard block |
||
63 | 63 | return $aDetails; |
64 | 64 | } |
65 | 65 | |
66 | + /** |
|
67 | + * @param string $fileGiven |
|
68 | + */ |
|
66 | 69 | protected function getFileDetailsRawStatistic(\SplFileInfo $info, $fileGiven) |
67 | 70 | { |
68 | 71 | return [ |
@@ -81,6 +84,9 @@ discard block |
||
81 | 84 | ]; |
82 | 85 | } |
83 | 86 | |
87 | + /** |
|
88 | + * @param integer $timeAsPhpNumber |
|
89 | + */ |
|
84 | 90 | private function getFileTimes($timeAsPhpNumber) |
85 | 91 | { |
86 | 92 | return [ |
@@ -94,7 +100,7 @@ discard block |
||
94 | 100 | * |
95 | 101 | * @param type $sourcePath |
96 | 102 | * @param type $targetPath |
97 | - * @return type |
|
103 | + * @return string |
|
98 | 104 | */ |
99 | 105 | protected function moveFilesIntoTargetFolder($sourcePath, $targetPath) |
100 | 106 | { |
@@ -210,7 +216,7 @@ discard block |
||
210 | 216 | /** |
211 | 217 | * Provides a list of all known JSON errors and their description |
212 | 218 | * |
213 | - * @return type |
|
219 | + * @return null|string |
|
214 | 220 | */ |
215 | 221 | protected function setJsonErrorInPlainEnglish() |
216 | 222 | { |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | 'Name' => $info->getRealPath(), |
59 | 59 | 'Type' => $info->getType(), |
60 | 60 | ]; |
61 | - $aDetails = array_merge($aFileBasicDetails, $this->getFileDetailsRawStatistic($info, $fileGiven)); |
|
61 | + $aDetails = array_merge($aFileBasicDetails, $this->getFileDetailsRawStatistic($info, $fileGiven)); |
|
62 | 62 | ksort($aDetails); |
63 | 63 | return $aDetails; |
64 | 64 | } |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | */ |
215 | 215 | protected function setJsonErrorInPlainEnglish() |
216 | 216 | { |
217 | - $knownErrors = [ |
|
217 | + $knownErrors = [ |
|
218 | 218 | JSON_ERROR_NONE => null, |
219 | 219 | JSON_ERROR_DEPTH => 'Maximum stack depth exceeded', |
220 | 220 | JSON_ERROR_STATE_MISMATCH => 'Underflow or the modes mismatch', |