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

Stefano Kowalke blueduck at gmx.net
Tue Sep 23 22:22:30 CEST 2008


Hey,

This is an SVN patch request.

Type: Code Cleanup

Bugtracker reference: http://bugs.typo3.org/view.php?id=9416

Branches: 4.2, trunk

Problem:
Code in file typo3/sysext/lang/lang.php don't match with the Coding
Guidlines.

Solution:
* 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


Saludos
Stefano
-- 
GPG-ID: 0x2B08936D
Key-Fingerprint: 7F31 BCF0 70C0 B3B1 1235 07E9 1777 D7A0 2B08 936D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lang.php.diff
Type: text/x-diff
Size: 18530 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080923/790b6907/attachment.diff 


More information about the TYPO3-team-core mailing list