CodingStyle.ZendCodingStandardFileFormatting History

Hide minor edits - Show changes to markup

 
 
June 04, 2009, at 11:04 AM by mlunzena -
 
 
June 04, 2009, at 11:03 AM by mlunzena -
Changed line 14 from:

The target line length is 100 characters. That is to say, ZF developers should strive keep each line of their code under 100 characters where possible and practical. However, longer lines are acceptable in some circumstances. The maximum length of any line of PHP code is 140 characters.

to:

The target line length is 80 characters. That is to say, ZF developers should strive keep each line of their code under 80 characters where possible and practical. However, longer lines are acceptable in some circumstances. The maximum length of any line of PHP code is 120 characters.

 
 
May 30, 2009, at 12:29 PM by tgloeggl -
Changed line 10 from:

Indentation should consist of tabs. Spaces are not allowed 4 spaces. Tabs are not allowed.

to:

Indentation should consist of 4 spaces. Tabs are not allowed.

 
 
May 30, 2009, at 12:28 PM by tgloeggl -
Changed line 10 from:

Indentation should consist of one tab. Spaces are not allowed 4 spaces. Tabs are not allowed.

to:

Indentation should consist of tabs. Spaces are not allowed 4 spaces. Tabs are not allowed.

 
 
May 30, 2009, at 12:27 PM by tgloeggl -
Changed line 14 from:

The target line length is 100 characters. That is to say, ZF developers should strive keep each line of their code under 80 characters where possible and practical. However, longer lines are acceptable in some circumstances. The maximum length of any line of PHP code is 140 characters.

to:

The target line length is 100 characters. That is to say, ZF developers should strive keep each line of their code under 100 characters where possible and practical. However, longer lines are acceptable in some circumstances. The maximum length of any line of PHP code is 140 characters.

 
 
May 30, 2009, at 12:27 PM by tgloeggl -
Changed lines 10-11 from:

Indentation should consist of 4 spaces. Tabs are not allowed.

to:

Indentation should consist of one tab. Spaces are not allowed 4 spaces. Tabs are not allowed.

Changed line 14 from:

The target line length is 80 characters. That is to say, ZF developers should strive keep each line of their code under 80 characters where possible and practical. However, longer lines are acceptable in some circumstances. The maximum length of any line of PHP code is 120 characters.

to:

The target line length is 100 characters. That is to say, ZF developers should strive keep each line of their code under 80 characters where possible and practical. However, longer lines are acceptable in some circumstances. The maximum length of any line of PHP code is 140 characters.

 
 
May 26, 2009, at 09:12 PM by mlunzena -
Changed lines 10-11 from:

Indentation should consist of one tab. 4 spaces. Tabs are not allowed.

to:

Indentation should consist of 4 spaces. Tabs are not allowed.

Changed line 14 from:

The target line length is 100 80 characters. That is to say, ZF developers should strive keep each line of their code under 80 characters where possible and practical. However, longer lines are acceptable in some circumstances. The maximum length of any line of PHP code is 140 120 characters.

to:

The target line length is 80 characters. That is to say, ZF developers should strive keep each line of their code under 80 characters where possible and practical. However, longer lines are acceptable in some circumstances. The maximum length of any line of PHP code is 120 characters.

 
 
May 22, 2009, at 02:02 PM by tgloeggl -
Changed line 14 from:

The target line length is 80 characters. That is to say, ZF developers should strive keep each line of their code under 80 characters where possible and practical. However, longer lines are acceptable in some circumstances. The maximum length of any line of PHP code is 120 characters.

to:

The target line length is 100 80 characters. That is to say, ZF developers should strive keep each line of their code under 80 characters where possible and practical. However, longer lines are acceptable in some circumstances. The maximum length of any line of PHP code is 140 120 characters.

 
 
May 22, 2009, at 01:32 PM by tgloeggl -
Changed line 10 from:

Indentation should consist of 4 spaces. Tabs are not allowed.

to:

Indentation should consist of one tab. 4 spaces. Tabs are not allowed.

 
 
April 22, 2009, at 09:37 AM by mlunzena -
Added lines 1-20:

PHP File Formatting

General

For files that contain only PHP code, the closing tag ("?>") is never permitted. It is not required by PHP, and omitting it prevents the accidental injection of trailing white space into the response.

IMPORTANT: Inclusion of arbitrary binary data as permitted by __HALT_COMPILER() is prohibited from PHP files in the Zend Framework project or files derived from them. Use of this feature is only permitted for some installation scripts.

Indentation

Indentation should consist of 4 spaces. Tabs are not allowed.

Maximum Line Length

The target line length is 80 characters. That is to say, ZF developers should strive keep each line of their code under 80 characters where possible and practical. However, longer lines are acceptable in some circumstances. The maximum length of any line of PHP code is 120 characters.

Line Termination

Line termination follows the Unix text file convention. Lines must end with a single linefeed (LF) character. Linefeed characters are represented as ordinal 10, or hexadecimal 0x0A.

Note: Do not use carriage returns (CR) as is the convention in Apple OS's (0x0D) or the carriage return/linefeed combination (CRLF) as is standard for the Windows OS (0x0D, 0x0A).

 

 

Source: Basis-Wiki-Hilfe | Last change: June 04, 2009, at 11:04 AM, mlunzena | Local view: Basis-Hilfe