1 | <?php declare(strict_types=1); |
||
41 | 3 | class FileSystem implements FileSystemInterface |
|
42 | { |
||
43 | 3 | /** |
|
44 | 3 | * @inheritdoc |
|
45 | */ |
||
46 | 3 | public function exists(string $path): bool |
|
50 | |||
51 | /** |
||
52 | 2 | * @inheritdoc |
|
53 | */ |
||
54 | 2 | public function read(string $filePath): string |
|
61 | 5 | ||
62 | /** |
||
63 | 5 | * @inheritdoc |
|
64 | 5 | */ |
|
65 | public function write(string $filePath, string $contents): void |
||
70 | 2 | ||
71 | /** |
||
72 | 2 | * @inheritdoc |
|
73 | */ |
||
74 | public function delete(string $filePath): void |
||
79 | |||
80 | /** |
||
81 | 2 | * @inheritdoc |
|
82 | */ |
||
83 | 2 | public function scanFolder(string $folderPath): array |
|
100 | |||
101 | 1 | /** |
|
102 | * @inheritdoc |
||
103 | */ |
||
104 | public function isFolder(string $path): bool |
||
108 | |||
109 | 1 | /** |
|
110 | 1 | * @inheritdoc |
|
111 | */ |
||
112 | public function isWritable(string $path): bool |
||
116 | 3 | ||
117 | /** |
||
118 | 3 | * @inheritdoc |
|
119 | 3 | */ |
|
120 | public function createFolder(string $folderPath): void |
||
125 | 3 | ||
126 | /** |
||
127 | 3 | * @inheritdoc |
|
128 | 3 | */ |
|
129 | public function deleteFolder(string $folderPath): void |
||
134 | |||
135 | /** |
||
136 | * @inheritdoc |
||
137 | 1 | */ |
|
138 | public function deleteFolderRecursive(string $folderPath): void |
||
146 | 2 | ||
147 | /** |
||
148 | * @inheritdoc |
||
149 | 2 | */ |
|
150 | public function symlink(string $targetPath, string $linkPath): void |
||
155 | |||
156 | /** |
||
157 | * @inheritdoc |
||
158 | */ |
||
159 | 2 | public function requireFile(string $path) |
|
166 | |||
167 | /** |
||
168 | * @param FileSystemException $exception |
||
169 | * |
||
170 | * @return void |
||
|
|||
171 | */ |
||
172 | protected function throwEx(FileSystemException $exception): void |
||
176 | } |
||
177 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.