From 64774f30baad3165800aa27ebcd660903f7fa3e7 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 29 Jul 2013 17:03:57 +0200 Subject: [PATCH] dont need to explicitly pass by reference --- lib/files/utils/scanner.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/files/utils/scanner.php b/lib/files/utils/scanner.php index da0cbd75f65..7e1bc80bbc4 100644 --- a/lib/files/utils/scanner.php +++ b/lib/files/utils/scanner.php @@ -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)); }); } -- 2.39.5