Passed
Push — master ( c28222...9253d7 )
by Sebastian
02:41
created
src/Mailcode/Interfaces/Commands/URLDecode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,5 +12,5 @@
 block discarded – undo
12 12
      * @param bool $decode
13 13
      * @return $this
14 14
      */
15
-    public function setURLDecoding(bool $decode=true);
15
+    public function setURLDecoding(bool $decode = true);
16 16
 }
Please login to merge, or discard this patch.
src/Mailcode/Traits/Commands/ProtectedContent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
     public function protectContent(string $string, Mailcode_Parser_Safeguard_Placeholder $open, Mailcode_Parser_Safeguard_Placeholder $end) : string
26 26
     {
27
-        if(!$end->getCommand() instanceof Mailcode_Commands_Command_End)
27
+        if (!$end->getCommand() instanceof Mailcode_Commands_Command_End)
28 28
         {
29 29
             throw new Mailcode_Exception(
30 30
                 'Invalid commands nesting',
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         $start = strpos($string, $open->getReplacementText()) + $open->getReplacementLength();
37 37
         $end = strpos($string, $end->getReplacementText());
38 38
 
39
-        $content = substr($string, $start, ($end-$start));
39
+        $content = substr($string, $start, ($end - $start));
40 40
 
41 41
         /**
42 42
         echo PHP_EOL;
Please login to merge, or discard this patch.
src/Mailcode/Traits/Commands/Validation/URLEncode.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@  discard block
 block discarded – undo
34 34
     {
35 35
         $keywords = $this->params->getInfo()->getKeywords();
36 36
 
37
-        foreach($keywords as $keyword)
37
+        foreach ($keywords as $keyword)
38 38
         {
39
-            if($keyword->isURLEncoded())
39
+            if ($keyword->isURLEncoded())
40 40
             {
41 41
                 $this->urlencodeToken = $keyword;
42 42
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      * @param bool $encoding
52 52
      * @return $this
53 53
      */
54
-    abstract public function setURLEncoding(bool $encoding=true);
54
+    abstract public function setURLEncoding(bool $encoding = true);
55 55
 
56 56
     public function getURLEncodeToken() : ?Mailcode_Parser_Statement_Tokenizer_Token_Keyword
57 57
     {
Please login to merge, or discard this patch.
src/Mailcode/Traits/Commands/Validation/URLDecode.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,9 +33,9 @@  discard block
 block discarded – undo
33 33
     {
34 34
         $keywords = $this->params->getInfo()->getKeywords();
35 35
 
36
-        foreach($keywords as $keyword)
36
+        foreach ($keywords as $keyword)
37 37
         {
38
-            if($keyword->isURLDecode())
38
+            if ($keyword->isURLDecode())
39 39
             {
40 40
                 $this->urldecodeToken = $keyword;
41 41
                 break;
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         }
44 44
     }
45 45
 
46
-    abstract public function setURLDecoding(bool $decode=true);
46
+    abstract public function setURLDecoding(bool $decode = true);
47 47
 
48 48
     public function getURLDecodeToken() : ?Mailcode_Parser_Statement_Tokenizer_Token_Keyword
49 49
     {
Please login to merge, or discard this patch.