From f2edb301d1f57cc0e768c8fc0ce9423136619c50 Mon Sep 17 00:00:00 2001 From: Stefan Herbrechtsmeier Date: Sat, 9 Mar 2013 13:46:27 +0100 Subject: [PATCH] codingguidelines: Don't use a different style for loops --- developer_manual/general/codingguidelines.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/developer_manual/general/codingguidelines.rst b/developer_manual/general/codingguidelines.rst index 7c921cea9..be0879be8 100644 --- a/developer_manual/general/codingguidelines.rst +++ b/developer_manual/general/codingguidelines.rst @@ -109,7 +109,6 @@ Control Structures * Always use { } for one line ifs * Split long ifs into multiple lines * Always use break in switch statements and prevent a default block with warnings if it shouldn't be accessed -* Do not put spaces between variable and assignments in for loops .. code-block:: php @@ -131,7 +130,7 @@ Control Structures } // for loop - for ($i=0; $i<4; $i++) { + for ($i = 0; $i < 4; $i++) { // your code } @@ -282,7 +281,6 @@ Control Structures * Always use { } for one line ifs * Split long ifs into multiple lines * Always use break in switch statements and prevent a default block with warnings if it shouldn't be accessed -* Do not put spaces between variable and assignments in for loops **DO**: @@ -304,7 +302,7 @@ Control Structures } // for loop - for (var i=0; i<4; i++) { + for (var i = 0; i < 4; i++) { // your code }