From 0bbf586e6ce1e465364b78d3c3f646269a17c37d Mon Sep 17 00:00:00 2001 From: LogMANOriginal Date: Mon, 5 Nov 2018 13:32:41 +0100 Subject: [PATCH] Created Operators (markdown) --- Operators.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Operators.md diff --git a/Operators.md b/Operators.md new file mode 100644 index 0000000..72919e9 --- /dev/null +++ b/Operators.md @@ -0,0 +1,21 @@ +# Operators must have a space around them + +Operators must be readable and therefore should have spaces around them. + +
Example

+ +**Bad** + +```PHP +$text='Hello '.$name.'!'; +``` + +**Good** + +```PHP +$text = 'Hello ' . $name . '!'; +``` + +

+ +_Reference_: [`Squiz.WhiteSpace.OperatorSpacing`](https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Standards/Squiz/Sniffs/WhiteSpace/OperatorSpacingSniff.php) \ No newline at end of file