about code cleanup / coding standard

From: Date: Wed, 13 Jun 2007 07:19:40 +0000
Subject: about code cleanup / coding standard
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-3024@lists.php.net to get a copy of this message
Hi, i have read through "[patch] code clenaup" and i think it owuld be nice if Smarty would follow some clearly defined coding standard, i think PEAR is well one, i personally prefer over zend framework i think Smarty code base is close to PEAR coding standard in most places there are just some inconsistencies, f.e. 'string' . $var vs. 'string'.$var "string $var" vs. 'string ' . $var if( vs. if ( array( el); vs. array( el ); missing ',' after last array element i also know all the trouble that such a code cleanup does (diff between versions with minor code cahnges but huge formating changes are blowed up) but doing this is a relatively easy step - just use some source formating tool, f.e.: http://www.waterproof.fr/products/phpCodeBeautifier/manual.php -- Sebastian Mendel www.sebastianmendel.de

« previous php.smarty.dev (#3024) next »