@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Teein\Html\Ast; |
| 5 | 5 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | protected function attributesToHtml() |
| 24 | 24 | { |
| 25 | - return array_reduce($this->attributes, function ($html, $attribute) { |
|
| 25 | + return array_reduce($this->attributes, function($html, $attribute) { |
|
| 26 | 26 | $htmlAttribute = $attribute->toHtml(); |
| 27 | 27 | return "$html $htmlAttribute"; |
| 28 | 28 | }, ''); |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Teein\Html\Ast; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Teein\Html\Ast; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Teein\Html\Ast; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Teein\Html\Ast; |
| 5 | 5 | |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | /** |
| 29 | 29 | * Get the html-representation of this Comment |
| 30 | 30 | */ |
| 31 | - public function toHtml () : string |
|
| 31 | + public function toHtml() : string |
|
| 32 | 32 | { |
| 33 | 33 | $test = '/-->/ium'; // test for forbidden closing comment-tag |
| 34 | 34 | $replacement = '--\\>'; |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | * |
| 51 | 51 | * @param int $level The current level of indentation |
| 52 | 52 | */ |
| 53 | - public function beautify (int $level = 0) : Beautifier |
|
| 53 | + public function beautify(int $level = 0) : Beautifier |
|
| 54 | 54 | { |
| 55 | 55 | $indent = "\n" . str_repeat(" ", $level); |
| 56 | 56 | $beautified = $indent . str_replace("\n", $indent, $this->comment) . $indent; |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Teein\Html\Ast; |
| 5 | 5 | |
@@ -41,11 +41,11 @@ discard block |
||
| 41 | 41 | * @param string $localName A localName, that is escaped inside the |
| 42 | 42 | * text-content of this Text. |
| 43 | 43 | */ |
| 44 | - public function toRawText (string $localName) : string |
|
| 44 | + public function toRawText(string $localName) : string |
|
| 45 | 45 | { |
| 46 | 46 | $tests = [ |
| 47 | 47 | '/<(' . $localName . ')/ium', // test for forbidden opening tags |
| 48 | - '/<\/(' .$localName. ')/ium', // test for forbidden closing tags |
|
| 48 | + '/<\/(' . $localName . ')/ium', // test for forbidden closing tags |
|
| 49 | 49 | '/<!--/ium' // test for forbidden opening comments |
| 50 | 50 | ]; |
| 51 | 51 | $replacements = [ |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Teein\Html\Ast; |
| 5 | 5 | |