Completed
Pull Request — master (#5)
by Hannes
02:50
created
src/ParserFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
      */
67 67
     public function createParser(int $flags = 0): Parser
68 68
     {
69
-        $flag = function (int $needle) use ($flags) {
69
+        $flag = function(int $needle) use ($flags) {
70 70
             return ($needle & $flags) == $needle;
71 71
         };
72 72
 
Please login to merge, or discard this patch.
src/Tree/LayoutNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $this->setChild('opening', $opening);
33 33
 
34 34
         foreach ($content as $key => $node) {
35
-            $this->setChild('content_'.++$key, $node);
35
+            $this->setChild('content_' . ++$key, $node);
36 36
         }
37 37
 
38 38
         $this->setChild('closing', $closing);
Please login to merge, or discard this patch.
src/Processor/LayoutProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,11 +40,11 @@
 block discarded – undo
40 40
             );
41 41
         }
42 42
 
43
-        if ($node->getChild('closing')->getAttribute('nr_of_posts') != count($node->getChildren())-2 ) {
43
+        if ($node->getChild('closing')->getAttribute('nr_of_posts') != count($node->getChildren()) - 2) {
44 44
             $this->addError(
45 45
                 "Wrong record count in closing record (found: %s, expecting: %s) on line %s",
46 46
                 (string)$node->getChild('closing')->getAttribute('nr_of_posts'),
47
-                (string)(count($node->getChildren())-2),
47
+                (string)(count($node->getChildren()) - 2),
48 48
                 (string)$node->getChild('closing')->getLineNr()
49 49
             );
50 50
         }
Please login to merge, or discard this patch.