From 5877b114788636607600bb38e935fef8a4f2fed5 Mon Sep 17 00:00:00 2001 From: Kris Wallsmith Date: Tue, 17 May 2011 11:57:44 -0700 Subject: [PATCH] [AsseticBundle] fixed typo in dump --watch --- src/Symfony/Bundle/AsseticBundle/Command/DumpCommand.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Symfony/Bundle/AsseticBundle/Command/DumpCommand.php b/src/Symfony/Bundle/AsseticBundle/Command/DumpCommand.php index 8c22e38b64..447a749ac2 100644 --- a/src/Symfony/Bundle/AsseticBundle/Command/DumpCommand.php +++ b/src/Symfony/Bundle/AsseticBundle/Command/DumpCommand.php @@ -89,8 +89,8 @@ class DumpCommand extends Command while (true) { try { foreach ($this->am->getNames() as $name) { - if ($asset = $this->checkAsset($name, $previously)) { - $this->dumpAsset($asset, $output); + if ($this->checkAsset($name, $previously)) { + $this->dumpAsset($name, $output); } } @@ -117,7 +117,7 @@ class DumpCommand extends Command * @param string $name The asset name * @param array &$previously An array of previous visits * - * @return AssetInterface|Boolean The asset if it should be dumped + * @return Boolean Whether the asset should be dumped */ private function checkAsset($name, array &$previously) { @@ -133,7 +133,7 @@ class DumpCommand extends Command $previously[$name] = array('mtime' => $mtime, 'formula' => $formula); - return $changed ? $asset : false; + return $changed; } /**