1 | <?php |
||
37 | class MountProviderCollection implements IMountProviderCollection, Emitter { |
||
38 | use EmitterTrait; |
||
39 | |||
40 | /** |
||
41 | * @var \OCP\Files\Config\IHomeMountProvider[] |
||
42 | */ |
||
43 | private $homeProviders = []; |
||
44 | |||
45 | /** |
||
46 | * @var \OCP\Files\Config\IMountProvider[] |
||
47 | */ |
||
48 | private $providers = array(); |
||
49 | |||
50 | /** |
||
51 | * @var \OCP\Files\Storage\IStorageFactory |
||
52 | */ |
||
53 | private $loader; |
||
54 | |||
55 | /** |
||
56 | * @var \OCP\Files\Config\IUserMountCache |
||
57 | */ |
||
58 | private $mountCache; |
||
59 | |||
60 | /** @var callable[] */ |
||
61 | private $mountFilters = []; |
||
62 | |||
63 | /** |
||
64 | * @param \OCP\Files\Storage\IStorageFactory $loader |
||
65 | * @param IUserMountCache $mountCache |
||
66 | */ |
||
67 | public function __construct(IStorageFactory $loader, IUserMountCache $mountCache) { |
||
71 | |||
72 | /** |
||
73 | * Get all configured mount points for the user |
||
74 | * |
||
75 | * @param \OCP\IUser $user |
||
76 | * @return \OCP\Files\Mount\IMountPoint[] |
||
77 | */ |
||
78 | public function getMountsForUser(IUser $user) { |
||
91 | |||
92 | public function addMountForUser(IUser $user, IMountManager $mountManager) { |
||
124 | |||
125 | /** |
||
126 | * Get the configured home mount for this user |
||
127 | * |
||
128 | * @param \OCP\IUser $user |
||
129 | * @return \OCP\Files\Mount\IMountPoint |
||
130 | * @since 9.1.0 |
||
131 | */ |
||
132 | public function getHomeMountForUser(IUser $user) { |
||
143 | |||
144 | /** |
||
145 | * Add a provider for mount points |
||
146 | * |
||
147 | * @param \OCP\Files\Config\IMountProvider $provider |
||
148 | */ |
||
149 | public function registerProvider(IMountProvider $provider) { |
||
154 | |||
155 | public function registerMountFilter(callable $filter) { |
||
158 | |||
159 | private function filterMounts(IUser $user, array $mountPoints) { |
||
169 | |||
170 | /** |
||
171 | * Add a provider for home mount points |
||
172 | * |
||
173 | * @param \OCP\Files\Config\IHomeMountProvider $provider |
||
174 | * @since 9.1.0 |
||
175 | */ |
||
176 | public function registerHomeProvider(IHomeMountProvider $provider) { |
||
180 | |||
181 | /** |
||
182 | * Cache mounts for user |
||
183 | * |
||
184 | * @param IUser $user |
||
185 | * @param IMountPoint[] $mountPoints |
||
186 | */ |
||
187 | public function registerMounts(IUser $user, array $mountPoints) { |
||
190 | |||
191 | /** |
||
192 | * Get the mount cache which can be used to search for mounts without setting up the filesystem |
||
193 | * |
||
194 | * @return IUserMountCache |
||
195 | */ |
||
196 | public function getMountCache() { |
||
199 | } |
||
200 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.