Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

fixed a typo in classes/phing/tasks/ext/PhpCodeSnifferTask.php #112

Merged
merged 1 commit into from Apr 10, 2012
Jump to file or symbol
Failed to load files and symbols.
+4 −4
Split
@@ -197,7 +197,7 @@ public function setTabWidth($width)
{
$this->tabWidth = (int)$width;
}
-
+
/**
* Sets file encoding
* @param string $encoding
@@ -301,7 +301,7 @@ public function setHaltonwarning($value)
{
$this->haltonwarning = $value;
}
-
+
/**
* Sets the skipversioncheck flag
* @param boolean $value
@@ -317,7 +317,7 @@ public function setSkipVersionCheck($value)
public function main() {
if (!class_exists('PHP_CodeSniffer')) {
@include_once 'PHP/CodeSniffer.php';
-
+
if (!class_exists('PHP_CodeSniffer')) {
throw new BuildException("This task requires the PHP_CodeSniffer package installed and available on the include path", $this->getLocation());
}
@@ -546,7 +546,7 @@ protected function outputCustomFormat($report) {
$totalErrors = $report['totals']['errors'];
$totalWarnings = $report['totals']['warnings'];
- $this->log(count($files) . ' files where checked', Project::MSG_INFO);
+ $this->log(count($files) . ' files were checked', Project::MSG_INFO);
if ($totalErrors > 0) {
$this->log($totalErrors . ' error' . ($totalErrors > 1 ? 's' : '') . ' detected', Project::MSG_ERR);
} else {