Passed
Branch develop (236e77)
by Raoul
01:52
created
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/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.
src/toHtml.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Teein\Html\ToHtml;
5 5
 
6 6
 use Teein\Html\VirtualDom\Document;
7 7
 
8
-function toHtml (Document $document) : string
8
+function toHtml(Document $document) : string
9 9
 {
10 10
     return $document->toHtml();
11 11
 }
Please login to merge, or discard this patch.
src/beautify.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\Beautifier;
5 5
 
Please login to merge, or discard this patch.
src/foreign.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\Elements;
5 5
 
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 use Teein\Html\VirtualDom\Attribute;
8 8
 use Teein\Html\VirtualDom\Node;
9 9
 
10
-function foreign (string $localName) : callable
10
+function foreign(string $localName) : callable
11 11
 {
12 12
     return function (Attribute ...$attributes) use ($localName) : callable {
13 13
         return function (Node ...$childNodes) use ($localName, $attributes) : NormalElement {
Please login to merge, or discard this patch.
src/custom.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\Elements;
5 5
 
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 use Teein\Html\VirtualDom\Attribute;
8 8
 use Teein\Html\VirtualDom\Node;
9 9
 
10
-function custom (string $localName) : callable
10
+function custom(string $localName) : callable
11 11
 {
12 12
     return function (Attribute ...$attributes) use ($localName) : callable {
13 13
         return function (Node ...$childNodes) use ($localName, $attributes) : NormalElement {
Please login to merge, or discard this patch.
src/elements.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\Elements;
5 5
 
@@ -1259,7 +1259,7 @@  discard block
 block discarded – undo
1259 1259
         return new RawTextElement(
1260 1260
             'style',
1261 1261
             $attributes,
1262
-            $text ?? new Text ('')
1262
+            $text ?? new Text('')
1263 1263
         );
1264 1264
     };
1265 1265
 }
Please login to merge, or discard this patch.
src/Ast/NormalElement.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
 
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
         $indentChild = new Text("\n" . str_repeat("    ", $level + 1));
52 52
         $indentClosingTag = new Text("\n" . str_repeat("    ", $level));
53 53
         $children = array_merge(array_reduce($this->childNodes, function ($children, $child) use ($level, $indentChild) {
54
-            return array_merge($children, [$indentChild, $child->beautify($level + 1)]);
55
-        }, []), [$indentClosingTag]);
54
+            return array_merge($children, [ $indentChild, $child->beautify($level + 1) ]);
55
+        }, [ ]), [ $indentClosingTag ]);
56 56
         return new NormalElement($this->localName, $this->attributes, $children);
57 57
     }
58 58
 
Please login to merge, or discard this patch.
src/Ast/Element.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.