Skip to content

Commit 51b4778

Browse files
committed
$rebuild renamed to $refreshed, typos
1 parent ec9d866 commit 51b4778

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
@@ -37,7 +37,7 @@ class RobotLoader
3737
private $classes = [];
3838

3939
/** @var bool */
40-
private $rebuilt = FALSE;
40+
private $refreshed = FALSE;
4141

4242
/** @var array of missing classes in this request */
4343
private $missing = [];
@@ -85,12 +85,12 @@ public function tryLoad($type)
8585
if ($this->autoRebuild) {
8686
if (!is_array($info) || !is_file($info['file'])) {
8787
$info = is_int($info) ? $info + 1 : 0;
88-
if ($this->rebuilt) {
88+
if ($this->refreshed) {
8989
$this->getCache()->save($this->getKey(), $this->classes);
9090
} else {
9191
$this->rebuild();
9292
}
93-
} elseif (!$this->rebuilt && filemtime($info['file']) !== $info['time']) {
93+
} elseif (!$this->refreshed && filemtime($info['file']) !== $info['time']) {
9494
$this->updateFile($info['file']);
9595
if (!isset($this->classes[$type])) {
9696
$this->classes[$type] = 0;
@@ -143,7 +143,7 @@ public function getIndexedClasses()
143143
*/
144144
public function rebuild()
145145
{
146-
$this->rebuilt = TRUE; // prevents calling rebuild() or updateFile() in tryLoad()
146+
$this->refreshed = TRUE; // prevents calling rebuild() or updateFile() in tryLoad()
147147
$this->getCache()->save($this->getKey(), Nette\Utils\Callback::closure($this, 'rebuildCallback'));
148148
}
149149

@@ -332,7 +332,7 @@ private function scanPhp($code)
332332
}
333333

334334

335-
/********************* backend ****************d*g**/
335+
/********************* caching ****************d*g**/
336336

337337

338338
/**
@@ -368,7 +368,7 @@ protected function getCache()
368368

369369

370370
/**
371-
* @return string
371+
* @return array
372372
*/
373373
protected function getKey()
374374
{

0 commit comments

Comments
 (0)