@@ -75,6 +75,10 @@ discard block |
||
| 75 | 75 | return false; |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | + /** |
|
| 79 | + * @param string[] $output |
|
| 80 | + * @param string $path |
|
| 81 | + */ |
|
| 78 | 82 | public function checkForError($output, $path) { |
| 79 | 83 | if (strpos($output[0], 'does not exist')) { |
| 80 | 84 | throw new NotFoundException($path); |
@@ -130,6 +134,9 @@ discard block |
||
| 130 | 134 | return $result; |
| 131 | 135 | } |
| 132 | 136 | |
| 137 | + /** |
|
| 138 | + * @param string[] $output |
|
| 139 | + */ |
|
| 133 | 140 | public function parseStat($output) { |
| 134 | 141 | $data = []; |
| 135 | 142 | foreach ($output as $line) { |
@@ -151,6 +158,10 @@ discard block |
||
| 151 | 158 | ]; |
| 152 | 159 | } |
| 153 | 160 | |
| 161 | + /** |
|
| 162 | + * @param string[] $output |
|
| 163 | + * @param string $basePath |
|
| 164 | + */ |
|
| 154 | 165 | public function parseDir($output, $basePath, callable $aclCallback) { |
| 155 | 166 | //last line is used space |
| 156 | 167 | array_pop($output); |