@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | public function setTemplateIds(array $templateIds) |
132 | 132 | { |
133 | 133 | $validation = \array_reduce($templateIds, |
134 | - function ($carry, $item) { |
|
134 | + function($carry, $item) { |
|
135 | 135 | if ($carry === false) { |
136 | 136 | return false; |
137 | 137 | } |
@@ -237,13 +237,13 @@ discard block |
||
237 | 237 | ); |
238 | 238 | } |
239 | 239 | // append title |
240 | - if (! empty($this->getTitle())) { |
|
240 | + if (!empty($this->getTitle())) { |
|
241 | 241 | $el->appendChild( |
242 | 242 | (new Title($this->getTitle()))->toDOMElement($doc) |
243 | 243 | ); |
244 | 244 | } |
245 | 245 | // append text |
246 | - if (! empty($this->getText())) { |
|
246 | + if (!empty($this->getText())) { |
|
247 | 247 | $el->appendChild( |
248 | 248 | (new Text($this->getText()))->toDOMElement($doc) |
249 | 249 | ); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function getReferenceType($ref) |
63 | 63 | { |
64 | - if (! array_key_exists($ref, $this->typeReferences)) { |
|
64 | + if (!array_key_exists($ref, $this->typeReferences)) { |
|
65 | 65 | $this->createReference($ref); |
66 | 66 | } |
67 | 67 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | */ |
76 | 76 | public function getReferenceElement($ref) |
77 | 77 | { |
78 | - if (! array_key_exists($ref, $this->elementReferences)) { |
|
78 | + if (!array_key_exists($ref, $this->elementReferences)) { |
|
79 | 79 | $this->createReference($ref); |
80 | 80 | } |
81 | 81 |
@@ -220,7 +220,7 @@ |
||
220 | 220 | foreach ($this->getEffectiveTime() as $time) { |
221 | 221 | $effectiveTime = new EffectiveTime($time); |
222 | 222 | |
223 | - if (! $first) { |
|
223 | + if (!$first) { |
|
224 | 224 | $effectiveTime->setOperatorAppend(); |
225 | 225 | } |
226 | 226 |
@@ -64,7 +64,7 @@ |
||
64 | 64 | return $el; |
65 | 65 | } |
66 | 66 | |
67 | - public function setValueToElement(\DOMElement &$el, \DOMDocument $doc = null) |
|
67 | + public function setValueToElement(\DOMElement&$el, \DOMDocument $doc = null) |
|
68 | 68 | { |
69 | 69 | $el->appendChild($this->toDOMElement($doc)); |
70 | 70 | } |
@@ -49,7 +49,7 @@ |
||
49 | 49 | function setActs(array $acts) |
50 | 50 | { |
51 | 51 | $validate = \array_reduce($acts, |
52 | - function ($previous, $item) { |
|
52 | + function($previous, $item) { |
|
53 | 53 | if ($previous === false) { |
54 | 54 | return false; |
55 | 55 | } |
@@ -49,7 +49,7 @@ |
||
49 | 49 | return $this->reference; |
50 | 50 | } |
51 | 51 | |
52 | - public function setValueToElement(\DOMElement &$el, \DOMDocument $doc = null) |
|
52 | + public function setValueToElement(\DOMElement&$el, \DOMDocument $doc = null) |
|
53 | 53 | { |
54 | 54 | $el->setAttribute('ID', $this->getReference()); |
55 | 55 | } |
@@ -91,11 +91,11 @@ |
||
91 | 91 | { |
92 | 92 | $el = $this->createElement($doc); |
93 | 93 | |
94 | - if (! $this->getThead()->isEmpty()) { |
|
94 | + if (!$this->getThead()->isEmpty()) { |
|
95 | 95 | $el->appendChild($this->getThead()->toDOMElement($doc)); |
96 | 96 | } |
97 | 97 | |
98 | - if (! $this->getTbody()->isEmpty()) { |
|
98 | + if (!$this->getTbody()->isEmpty()) { |
|
99 | 99 | $el->appendChild($this->getTbody()->toDOMElement($doc)); |
100 | 100 | } |
101 | 101 |
@@ -125,7 +125,7 @@ |
||
125 | 125 | { |
126 | 126 | $el = $this->createElement($doc); |
127 | 127 | |
128 | - foreach($this->getRows() as $row) { |
|
128 | + foreach ($this->getRows() as $row) { |
|
129 | 129 | $el->appendChild($row->toDOMElement($doc)); |
130 | 130 | } |
131 | 131 |