]> source.dussan.org Git - nextcloud-server.git/commitdiff
dont need to explicitly pass by reference
authorRobin Appelman <icewind@owncloud.com>
Mon, 29 Jul 2013 15:03:57 +0000 (17:03 +0200)
committerRobin Appelman <icewind@owncloud.com>
Mon, 29 Jul 2013 15:03:57 +0000 (17:03 +0200)
lib/files/utils/scanner.php

index da0cbd75f6535e96be4feade14aa56d6b1b91a54..7e1bc80bbc46eed15da525f29463c7fb8f4849a9 100644 (file)
@@ -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));
                });
        }