Skip to content

Commit a454edd

Browse files
authored
Change $sadbox to $sandbox
1 parent 2db27a3 commit a454edd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Phug/WatcherExtension.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,12 @@ public function watch($interval = 1000000, $timeout = null, callable $callback =
5353

5454
$watcher->setChangeEventCallback(function ($event, $resource, $path) {
5555
if (file_exists($path)) {
56-
$sadbox = Phug::getRenderer()->getNewSandBox(function () use ($path) {
56+
$sandbox = Phug::getRenderer()->getNewSandBox(function () use ($path) {
5757
return Phug::cacheFile($path);
5858
});
59+
5960
echo "Changes detected in $path\n";
60-
echo ' - '.($sadbox->getResult()
61+
echo ' - '.($sandbox->getResult()
6162
? 'template cached successfully'
6263
: 'cache failure'
6364
)."\n";

0 commit comments

Comments
 (0)