07.04
php
saved
davidpersson
Note
Put this in a file "whitespace.php" in the vendors/shells folder and run ./cake whitespace to run the check.
Put this in a file "whitespace.php" in the vendors/shells folder and run ./cake whitespace to run the check.
- <?php
- class WhitespaceShell extends Shell {
- function main() {
- $App = new Folder(APP);
- $r = $App->findRecursive('.*\.php');
- $this->out("Checking *.php in ".APP);
- foreach($r as $file) {
- $this->out('!!!contains leading whitespaces: '.$this->shortPath($file));
- }
- $this->out('!!!contains trailing whitespaces: '.$this->shortPath($file));
- }
- }
- }
- }
- ?>
Parsed in 0.042 seconds, using GeSHi 1.0.7.14