+
+**Bad** (the total length of the line is **340** characters - from [Lorem Ipsum](https://www.lipsum.com/feed/html))
+
+```PHP
+$longtext = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse condimentum nec est eget posuere. Proin at sagittis risus. Fusce faucibus lectus leo, eu ornare velit tristique eu. Curabitur elementum facilisis ultricies. Praesent dictum fermentum lectus a rhoncus. Donec vitae justo metus. Sed molestie faucibus egestas.';
+```
+
+**Good** (use `heredoc` syntax - this will add line-breaks)
+
+```PHP
+$longtext = <<
+
+_Reference_: [`Generic.Files.LineLength`](https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Standards/Generic/Sniffs/Files/LineLengthSniff.php)
+
+# Calling functions
+
+Function calls must follow a few rules in order to maintain readability throughout the project:
+
+**Do not add whitespace before the opening parenthesis**
+
+Example
+
+**Bad**
+
+```PHP
+$result = my_function ($param);
+```
+
+**Good**
+
+```PHP
+$result = my_function($param);
+```
+
+
+
+**Do not add whitespace after the opening parenthesis**
+
+Example
+
+**Bad**
+
+```PHP
+$result = my_function( $param);
+```
+
+**Good**
+
+```PHP
+$result = my_function($param);
+```
+
+
+
+**Do not add a space before the closing parenthesis**
+
+Example
+
+**Bad**
+
+```PHP
+$result = my_function($param );
+```
+
+**Good**
+
+```PHP
+$result = my_function($param);
+```
+
+
+
+**Do not add a space before a comma**
+
+Example
+
+**Bad**
+
+```PHP
+$result = my_function($param1 ,$param2);
+```
+
+**Good**
+
+```PHP
+$result = my_function($param1, $param2);
+```
+
+
+
+**Add a space after a comma**
+
+Example
+
+**Bad**
+
+```PHP
+$result = my_function($param1,$param2);
+```
+
+**Good**
+
+```PHP
+$result = my_function($param1, $param2);
+```
+
+
+
+_Reference_: [`Generic.Functions.FunctionCallArgumentSpacing`](https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Standards/Generic/Sniffs/Functions/FunctionCallArgumentSpacingSniff.php)
+
+# Use UPPERCASE for constants
+
+As in most languages, constants should be written in UPPERCASE. This does not apply to keywords (see below)!
+
+Example
+
+**Bad**
+
+```PHP
+const pi = 3.14;
+```
+
+**Good**
+
+```PHP
+const PI = 3.14;
+```
+
+
+
+_Reference_: [`Generic.NamingConventions.UpperCaseConstantName`](https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Standards/Generic/Sniffs/NamingConventions/UpperCaseConstantNameSniff.php)
+
+# Use lowercase for `true`, `false` and `null`
+
+`true`, `false` and `null` must be written in lower case letters.
+
+Example
+
+**Bad**
+
+```PHP
+if($condition === TRUE && $error === FALSE) {
+ return NULL;
+}
+```
+
+**Good**
+
+```PHP
+if($condition === true && $error === false) {
+ return null;
+}
+```
+
+
+
+_Reference_: [`Generic.PHP.LowerCaseConstant`](https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Standards/Generic/Sniffs/PHP/LowerCaseConstantSniff.php)
+
+# Use a single string instead of concatenating
+
+Concatenation is useful for combining variables with other variables or static text. It should not be used to combine two sets of static text. See also: [Maximum line length](#maximum-line-length)
+
+Example
+
+**Bad**
+
+```PHP
+$text = 'This is' . 'a bad idea!';
+```
+
+**Good**
+
+```PHP
+$text = 'This is a good idea!';
+```
+
+
+
+_Reference_: [`Generic.Strings.UnnecessaryStringConcat`](https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Standards/Generic/Sniffs/Strings/UnnecessaryStringConcatSniff.php)
+
# Do not write empty statements
Empty statements are considered bad practice and must be avoided.
@@ -34,6 +262,36 @@ if(!$condition) {
_Reference_: [`Generic.CodeAnalysis.EmptyStatement`](https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Standards/Generic/Sniffs/CodeAnalysis/EmptyStatementSniff.php)
+# Use 'elseif' instead of 'else if'
+
+For sake of consistency `else if` is considered bad practice.
+
+Example
+
+**Bad**
+
+```PHP
+if($conditionA) {
+
+} else if($conditionB) {
+
+}
+```
+
+**Good**
+
+```PHP
+if($conditionA) {
+
+} elseif($conditionB) {
+
+}
+```
+
+
+
+_Reference_: [`PSR2.ControlStructures.ElseIfDeclaration`](https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Standards/PSR2/Sniffs/ControlStructures/ElseIfDeclarationSniff.php)
+
# Do not write unconditional if-statements
If-statements without conditions are considered bad practice and must be avoided.
@@ -106,4 +364,48 @@ class MyClass extends BaseClass {