summaryrefslogtreecommitdiffstats
path: root/lib/files
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-07-29 17:03:57 +0200
committerRobin Appelman <icewind@owncloud.com>2013-07-29 17:03:57 +0200
commit64774f30baad3165800aa27ebcd660903f7fa3e7 (patch)
tree4deb42594a12bca6ef9588d8993f8e1e0c0691c5 /lib/files
parent59bdba9bac531fb18b7026649e118ea4e3944e07 (diff)
downloadnextcloud-server-64774f30baad3165800aa27ebcd660903f7fa3e7.tar.gz
nextcloud-server-64774f30baad3165800aa27ebcd660903f7fa3e7.zip
dont need to explicitly pass by reference
Diffstat (limited to 'lib/files')
-rw-r--r--lib/files/utils/scanner.php4
1 files 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));
});
}