06.03
php
saved
AevumDecessus
Note
Put this in a file "whitespace.php" in the vendors/shells folder and run ./cake whitespace to run the check.
*Added leading and trailing PHP declarations --Aevum Decessus
Put this in a file "whitespace.php" in the vendors/shells folder and run ./cake whitespace to run the check.
*Added leading and trailing PHP declarations --Aevum Decessus
- <?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