1 | <?php |
||
13 | class StorageManager |
||
14 | { |
||
15 | /** |
||
16 | * @var Storage |
||
17 | */ |
||
18 | protected $storage; |
||
19 | |||
20 | /** |
||
21 | * @var ImagineFactory |
||
22 | */ |
||
23 | protected $imagineFactory; |
||
24 | |||
25 | /** |
||
26 | * Construct |
||
27 | * |
||
28 | * @param Storage $storage |
||
29 | * @param ImagineFactory $imagineFactory |
||
30 | */ |
||
31 | 27 | public function __construct(Storage $storage, ImagineFactory $imagineFactory = null) |
|
36 | |||
37 | /** |
||
38 | * File Exists |
||
39 | * |
||
40 | * @param string $filename Path File |
||
41 | * |
||
42 | * @return bool |
||
43 | */ |
||
44 | 12 | public function exists($filename) |
|
53 | |||
54 | /** |
||
55 | * Get Size |
||
56 | * |
||
57 | * @param string $filename Path File |
||
58 | * |
||
59 | * @return bool |
||
60 | */ |
||
61 | 2 | public function size($filename) |
|
70 | |||
71 | /** |
||
72 | * Get MimeType File |
||
73 | * |
||
74 | * @param string $filename Path File |
||
75 | * |
||
76 | * @return bool |
||
77 | */ |
||
78 | 12 | public function mimeType($filename) |
|
87 | |||
88 | /** |
||
89 | * Path is Directory |
||
90 | * |
||
91 | * @param string $path Path Directory |
||
92 | * |
||
93 | * @return bool |
||
94 | */ |
||
95 | 10 | public function isDir($path) |
|
105 | |||
106 | /** |
||
107 | * Is File |
||
108 | * |
||
109 | * @param string $filename Path File |
||
110 | * |
||
111 | * @return bool |
||
112 | */ |
||
113 | 6 | public function isFile($filename) |
|
117 | |||
118 | /** |
||
119 | * Get Meta Data |
||
120 | * |
||
121 | * @param string $filename Path File |
||
122 | * |
||
123 | * @return bool |
||
124 | */ |
||
125 | 2 | public function metaData($filename) |
|
134 | |||
135 | /** |
||
136 | * Read Content File |
||
137 | * |
||
138 | * @param string $filename Path File |
||
139 | * |
||
140 | * @return bool |
||
141 | */ |
||
142 | 1 | public function readFile($filename) |
|
146 | |||
147 | /** |
||
148 | * Delete File |
||
149 | * |
||
150 | * @param string $filename Path File |
||
151 | * |
||
152 | * @return bool |
||
153 | */ |
||
154 | 2 | public function deleteFile($filename) |
|
162 | |||
163 | /** |
||
164 | * Delete Folder |
||
165 | * |
||
166 | * @param string $folder |
||
167 | * |
||
168 | * @return bool |
||
169 | */ |
||
170 | 2 | public function deleteFolder($folder) |
|
178 | |||
179 | /** |
||
180 | * Files in Folder |
||
181 | * |
||
182 | * @param string $path |
||
183 | * @param bool $recursive |
||
184 | * |
||
185 | * @return array |
||
186 | 1 | */ |
|
187 | public function files($path, $recursive = false) |
||
195 | |||
196 | /** |
||
197 | * UploadFile |
||
198 | 1 | * |
|
199 | * @param UploadedFile $file Uploaded File |
||
200 | 1 | * @param string $folder String Folder |
|
201 | * @param string $name String Name |
||
202 | * @param bool $override Boolean Over Ride |
||
203 | * @param array $config Array Config Upload |
||
204 | * |
||
205 | * @return bool |
||
206 | */ |
||
207 | public function uploadFile(UploadedFile $file, $folder = null, $name = null, $override = false, array $config = []) |
||
219 | |||
220 | /** |
||
221 | * Upload Image |
||
222 | * |
||
223 | * @param UploadedFile $file Uploaded File |
||
224 | * @param string $folder String Folder |
||
225 | * @param string $name String Name |
||
226 | * @param array $options Array Options |
||
227 | * @param bool $override Boolean Over Ride |
||
228 | * @param array $config Array Config Upload |
||
229 | * |
||
230 | 2 | * @return bool |
|
231 | */ |
||
232 | 2 | public function uploadImage( |
|
270 | 1 | ||
271 | /** |
||
272 | 1 | * Parse Filename |
|
273 | 1 | * |
|
274 | 1 | * @param UploadedFile $file Uploaded File |
|
275 | 1 | * @param string $name String Name |
|
276 | * @param string $folder String Folder |
||
277 | 1 | * @param bool $override Boolean Over Ride |
|
278 | 1 | * |
|
279 | 1 | * @return bool|array |
|
280 | 1 | */ |
|
281 | 3 | protected function parseFile($file, $folder = null, $name = null, $override = false) |
|
309 | 6 | ||
310 | 6 | /** |
|
311 | * Dynamically handle calls into the query instance. |
||
312 | 6 | * |
|
313 | 1 | * @param string $method |
|
314 | 1 | * @param array $parameters |
|
315 | 6 | * @return mixed |
|
316 | 6 | */ |
|
317 | 6 | public function __call($method, $parameters) |
|
321 | } |
||
322 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.