<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Coding_guidelines</title><link>https://sourceforge.net/p/postfixadmin/wiki/Coding_guidelines/</link><description>Recent changes to Coding_guidelines</description><atom:link href="https://sourceforge.net/p/postfixadmin/wiki/Coding_guidelines/feed" rel="self"/><language>en</language><lastBuildDate>Fri, 09 Mar 2018 10:07:45 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/postfixadmin/wiki/Coding_guidelines/feed" rel="self" type="application/rss+xml"/><item><title>Coding_guidelines modified by GingerDog</title><link>https://sourceforge.net/p/postfixadmin/wiki/Coding_guidelines/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,38 +1,3 @@
-Postfixadmin doesn't have a tons of papers describing coding guidelines ;-) however there are some basic things you should honor:
+Postfixadmin doesn't have a tons of papers describing coding guidelines ;-). It's recently migrated to PSR2 via PHPCS ( See: https://github.com/postfixadmin/postfixadmin/commit/15df6c1d7b5b1e254a9e478fca21de2b13a704b0 etc).

-Programming style
----
-
-* include the opening curly brackets in the statement's line. Example:
-
-
-        function fred($arg1, $arg2) {
-            if($arg1 == false) {
-                  return true;
-            }
-            # etc.
-        }
-
-
-* avoid copying code
-    * that creates a maintenance hell
-    * instead move the code to a file/function that can be used from everywhere
-    * if you need a slightly different behaviour, use if() (and maybe a function parameter).
-* Again: Avoid copying code.
-
-Technical details
----
-
-* spaces, not tabs
-* 4 space indentation (some files still use 3 spaces for historical reasons)
-    * if you use vim as editor, it will automatically honor this by using the vim: comments in every file
-    * of course you can use any text editor you like ;-)
-
-SVN directory layout
----
-
-* _trunk/_ is the development version - most work is done here.
-* _branches/postfixadmin-X.Y/_ (where X and Y are numbers) are maintenance branches for PostfixAdmin X.Y.* releases
-* _branches/*/_ (anything except "postfixadmin-X.Y") can be used for developing bigger changes etc.
-* _tags/_ contains a fixed version of every PostfixAdmin release. Never commit to this directory!
-* _website/_ contains the postfixadmin.sf.net website
+Code however you want to, then run 'composer check-format' ... 
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">GingerDog</dc:creator><pubDate>Fri, 09 Mar 2018 10:07:45 -0000</pubDate><guid>https://sourceforge.net8ad88fada2c7170cb34177fa8ac3570c147022e6</guid></item><item><title>Coding_guidelines modified by Christian Boltz</title><link>https://sourceforge.net/p/postfixadmin/wiki/Coding_guidelines/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Postfixadmin doesn't have a tons of papers describing coding guidelines ;-) however there are some basic things you should honor:&lt;/p&gt;
&lt;h2 id="programming-style"&gt;Programming style&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;include the opening curly brackets in the statement's line. Example:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;fred&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;$arg1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;$arg2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;$arg1&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="err"&gt;#&lt;/span&gt; &lt;span class="nx"&gt;etc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;avoid copying code&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;that creates a maintenance hell&lt;/li&gt;
&lt;li&gt;instead move the code to a file/function that can be used from everywhere&lt;/li&gt;
&lt;li&gt;if you need a slightly different behaviour, use if() (and maybe a function parameter).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Again: Avoid copying code.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="technical-details"&gt;Technical details&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;spaces, not tabs&lt;/li&gt;
&lt;li&gt;4 space indentation (some files still use 3 spaces for historical reasons)&lt;ul&gt;
&lt;li&gt;if you use vim as editor, it will automatically honor this by using the vim: comments in every file&lt;/li&gt;
&lt;li&gt;of course you can use any text editor you like ;-)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="svn-directory-layout"&gt;SVN directory layout&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;trunk/&lt;/em&gt; is the development version - most work is done here.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;branches/postfixadmin-X.Y/&lt;/em&gt; (where X and Y are numbers) are maintenance branches for PostfixAdmin X.Y.* releases&lt;/li&gt;
&lt;li&gt;&lt;em&gt;branches/*/&lt;/em&gt; (anything except "postfixadmin-X.Y") can be used for developing bigger changes etc.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;tags/&lt;/em&gt; contains a fixed version of every PostfixAdmin release. Never commit to this directory!&lt;/li&gt;
&lt;li&gt;&lt;em&gt;website/&lt;/em&gt; contains the postfixadmin.sf.net website&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Boltz</dc:creator><pubDate>Sat, 25 Oct 2014 20:42:16 -0000</pubDate><guid>https://sourceforge.net07a284fed90a906982fa2ecce9393fdbd157d387</guid></item></channel></rss>