Skip to content

Commit 0a9816a

Browse files
committed
coding style: removed space after reference &
1 parent f23f888 commit 0a9816a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/RobotLoader/RobotLoader.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function tryLoad($type)
7777
$type = $orig = ltrim($type, '\\'); // PHP namespace bug #49143
7878
$type = strtolower($type);
7979

80-
$info = & $this->classes[$type];
80+
$info = &$this->classes[$type];
8181
if (isset($this->missing[$type]) || (is_int($info) && $info >= self::RETRY_LIMIT)) {
8282
return;
8383
}
@@ -179,7 +179,7 @@ public function rebuildCallback()
179179
$files[$file] = ['classes' => [], 'time' => filemtime($file)];
180180

181181
foreach ($classes as $class) {
182-
$info = & $this->classes[strtolower($class)];
182+
$info = &$this->classes[strtolower($class)];
183183
if (isset($info['file'])) {
184184
throw new Nette\InvalidStateException("Ambiguous class $class resolution; defined in {$info['file']} and in $file.");
185185
}
@@ -212,12 +212,12 @@ private function createFileIterator($dir)
212212
}
213213

214214
$iterator = Nette\Utils\Finder::findFiles(is_array($this->acceptFiles) ? $this->acceptFiles : preg_split('#[,\s]+#', $this->acceptFiles))
215-
->filter(function (SplFileInfo $file) use (& $disallow) {
215+
->filter(function (SplFileInfo $file) use (&$disallow) {
216216
return !isset($disallow[$file->getPathname()]);
217217
})
218218
->from($dir)
219219
->exclude($ignoreDirs)
220-
->filter($filter = function (SplFileInfo $dir) use (& $disallow) {
220+
->filter($filter = function (SplFileInfo $dir) use (&$disallow) {
221221
$path = $dir->getPathname();
222222
if (is_file("$path/netterobots.txt")) {
223223
foreach (file("$path/netterobots.txt") as $s) {
@@ -247,10 +247,10 @@ private function updateFile($file)
247247

248248
if (is_file($file)) {
249249
foreach ($this->scanPhp(file_get_contents($file)) as $class) {
250-
$info = & $this->classes[strtolower($class)];
250+
$info = &$this->classes[strtolower($class)];
251251
if (isset($info['file']) && @filemtime($info['file']) !== $info['time']) { // @ file may not exists
252252
$this->updateFile($info['file']);
253-
$info = & $this->classes[strtolower($class)];
253+
$info = &$this->classes[strtolower($class)];
254254
}
255255
if (isset($info['file'])) {
256256
throw new Nette\InvalidStateException("Ambiguous class $class resolution; defined in {$info['file']} and in $file.");

0 commit comments

Comments
 (0)