Passed
Branch feature/initial-api-design (bb8864)
by Raoul
03:07
created
src/Ast/Element.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }, '');
Please login to merge, or discard this patch.
src/Ast/VoidElement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Teein\Html\Ast;
5 5
 
Please login to merge, or discard this patch.
src/Ast/Attribute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Teein\Html\Ast;
5 5
 
Please login to merge, or discard this patch.
src/Ast/TextElement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Teein\Html\Ast;
5 5
 
Please login to merge, or discard this patch.
src/Ast/Comment.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Ast/Text.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 = [
Please login to merge, or discard this patch.
src/Ast/RawTextElement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Teein\Html\Ast;
5 5
 
Please login to merge, or discard this patch.