Код, стиль и PHP

Вот ненавижу я PHP код, когда он отформатирован типа:

if ([condition]) 
{
	<statement>
		<statement>
<statement>
}
else
{
<statement>
	<statement>
		<statement>
}

И обьяснить немогу, почему. Но читать немогу совсем.
Зато такой:

if ([condition])  {

	<statement>
	<statement>
	<statement>

} else {

	<statement>
	<statement>
	<statement>

}

читаю без проблем.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.