@@ -12,5 +12,5 @@ |
||
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 | } |
@@ -24,7 +24,7 @@ discard block |
||
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 |
||
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; |
@@ -34,9 +34,9 @@ discard block |
||
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 |
||
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 | { |
@@ -33,9 +33,9 @@ discard block |
||
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 |
||
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 | { |