From 06f945f27840b53e57795dadbc38e76f7e11ab1c Mon Sep 17 00:00:00 2001 From: Horus3 Date: Mon, 24 Feb 2014 16:42:14 +0100 Subject: init --- .../en/coding-standard.php-file-formatting.html | 152 +++++++++++++++++++++ 1 file changed, 152 insertions(+) create mode 100644 zend/documentation/manual/core/en/coding-standard.php-file-formatting.html (limited to 'zend/documentation/manual/core/en/coding-standard.php-file-formatting.html') diff --git a/zend/documentation/manual/core/en/coding-standard.php-file-formatting.html b/zend/documentation/manual/core/en/coding-standard.php-file-formatting.html new file mode 100644 index 0000000..107f92a --- /dev/null +++ b/zend/documentation/manual/core/en/coding-standard.php-file-formatting.html @@ -0,0 +1,152 @@ + + + + + PHP File Formatting - Zend Framework Manual + + + + + + + + +
+ + + + + + + + +
+ Overview + + + + +
+
+

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. +

+ +

Note: + + 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, Zend Framework 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). +

+
+
+
+ + + + + + + + + +
+ Overview + + + + +
+
+ +
+ + \ No newline at end of file -- cgit v1.2.3