[TYPO3-core] RFC: #9416: Code Cleanup for lang.php

Stefano Kowalke blueduck at gmx.net
Mon Oct 27 23:41:25 CET 2008


Hey,

i update the patch according to the inoffical CGL from Dmitrys blog

Besides the changes before:
> * Add spaces
> * changing boolean '0' to 'false'
> * changing boolean '1' to 'true'
> * remove reset() before foreach()
> * remove 'var', take public or protected instead
> * Array() -> array()
> * while(list() = each()) -> foreach()
> * global $TCA_DESCR; -> $GLOBALS['TCA_DESCR']
> * switch: remove 'break' in default case

i give the inline comments same idention like the code and if was necessary
put them one line above the dedicated code, not behind.

Break long lines

Stefano

-- 
Seit dem 1.1.2008 werden Daten zu jeder E-Mail verdachtsunabhängig gespeichert! 
Weitere Informationen: www.vorratsdatenspeicherung.de
GPG-ID: 0x2B08936D
Key-Fingerprint: 7F31 BCF0 70C0 B3B1 1235 07E9 1777 D7A0 2B08 936D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2_lang.php.diff
Type: text/x-diff
Size: 23087 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20081027/fb3a9325/attachment-0001.diff 


More information about the TYPO3-team-core mailing list