mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 18:11:41 -04:00
dont need to explicitly pass by reference
This commit is contained in:
parent
59bdba9bac
commit
64774f30ba
1 changed files with 2 additions and 2 deletions
|
|
@ -62,10 +62,10 @@ class Scanner extends PublicEmitter {
|
|||
protected function attachListener($mount) {
|
||||
$scanner = $mount->getStorage()->getScanner();
|
||||
$emitter = $this;
|
||||
$scanner->listen('\OC\Files\Cache\Scanner', 'scanFile', function ($path) use ($mount, &$emitter) {
|
||||
$scanner->listen('\OC\Files\Cache\Scanner', 'scanFile', function ($path) use ($mount, $emitter) {
|
||||
$emitter->emit('\OC\Files\Utils\Scanner', 'scanFile', array($mount->getMountPoint() . $path));
|
||||
});
|
||||
$scanner->listen('\OC\Files\Cache\Scanner', 'scanFolder', function ($path) use ($mount, &$emitter) {
|
||||
$scanner->listen('\OC\Files\Cache\Scanner', 'scanFolder', function ($path) use ($mount, $emitter) {
|
||||
$emitter->emit('\OC\Files\Utils\Scanner', 'scanFolder', array($mount->getMountPoint() . $path));
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue