@@ -66,7 +66,7 @@ |
||
| 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 | |
@@ -32,7 +32,7 @@ |
||
| 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); |
@@ -40,11 +40,11 @@ |
||
| 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 | } |