Commit: 27c4efffbdcbed5fe1ac6cd8f5193f13b35f4dd3

Author: David Persson | Date: 2010-02-12 14:12:17 +0100
Adding support for verbose output. Makin non verbose output default.
diff --git a/extensions/command/Syntax.php b/extensions/command/Syntax.php index d352e81..14ab7d8 100644 --- a/extensions/command/Syntax.php +++ b/extensions/command/Syntax.php @@ -40,6 +40,13 @@ class Syntax extends \lithium\console\Command implements \spriebsch\PHPca\Progre */ public $php; + /** + * Enables verbose output. + * + * @var boolean + */ + public $v; + protected $_project; protected $_vcs; @@ -97,7 +104,7 @@ class Syntax extends \lithium\console\Command implements \spriebsch\PHPca\Progre public function showProgress($file, Result $result, Application $application) { $message = 'syntax check of `' . str_replace($this->_project . '/', null, $file) . '`'; - if ($result->wasSkipped($file)) { + if ($result->wasSkipped($file) && $this->v) { $this->out("[Skipped] {$message}"); } elseif ($result->hasLintError($file)) { $this->out("[Error ] {$message}"); @@ -125,7 +132,7 @@ class Syntax extends \lithium\console\Command implements \spriebsch\PHPca\Progre $violation->getMessage() ?: '??' )); } - } else { + } elseif ($this->v) { $this->out("[Passed ] {$message}"); } }