Skip to content

Commit 9bb897a

Browse files
committed
renamed $scanDirs -> $scanPaths
1 parent d47058c commit 9bb897a

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
@@ -34,7 +34,7 @@ class RobotLoader extends Nette\Object
3434
public $autoRebuild = TRUE;
3535

3636
/** @var array */
37-
private $scanDirs = array();
37+
private $scanPaths = array();
3838

3939
/** @var array of lowered-class => [file, time, orig] or num-of-retry */
4040
private $classes = array();
@@ -110,13 +110,13 @@ public function tryLoad($type)
110110

111111

112112
/**
113-
* Add directory (or directories) to list.
114-
* @param string|array absolute path
113+
* Add path or paths to list.
114+
* @param string|string[] absolute path
115115
* @return self
116116
*/
117117
public function addDirectory($path)
118118
{
119-
$this->scanDirs = array_merge($this->scanDirs, (array) $path);
119+
$this->scanPaths = array_merge($this->scanPaths, (array) $path);
120120
return $this;
121121
}
122122

@@ -163,7 +163,7 @@ public function rebuildCallback()
163163
}
164164

165165
$this->classes = array();
166-
foreach ($this->scanDirs as $path) {
166+
foreach ($this->scanPaths as $path) {
167167
foreach (is_file($path) ? array(new SplFileInfo($path)) : $this->createFileIterator($path) as $file) {
168168
$file = $file->getPathname();
169169
if (isset($files[$file]) && $files[$file]['time'] == filemtime($file)) {
@@ -373,7 +373,7 @@ protected function getCache()
373373
*/
374374
protected function getKey()
375375
{
376-
return array($this->ignoreDirs, $this->acceptFiles, $this->scanDirs);
376+
return array($this->ignoreDirs, $this->acceptFiles, $this->scanPaths);
377377
}
378378

379379
}

0 commit comments

Comments
 (0)