| // | Your Name | // +----------------------------------------------------------------------+ // // \$Id: error_reporting(E_ALL|E_STRICT); /* this scripts show itself beautified */ require_once ('PHP/Beautifier.php'); require_once ('PHP/Beautifier/Batch.php'); try { $oBeaut = new PHP_Beautifier(); $oBeaut->setIndentNumber(4); /* default */ $oBeaut->setIndentChar(' '); /* default */ $oBeaut->setNewLine("\n"); /* default */ $oBeaut->addFilter('ArrayNested'); $oBeaut->addFilter('ListClassFunction'); $oBeaut->addFilter('Pear', array( 'add_header'=>'php' )); $oBeaut->setInputFile(__FILE__); $oBeaut->process(); if (php_sapi_name() == 'cli') { $oBeaut->show(); } else { echo '
'.$oBeaut->show() .'
'; } } catch(Exception $oExp) { echo ($oExp); } ?>