@@ -94,9 +94,9 @@ discard block |
||
94 | 94 | public function __construct($id = null, $code = null, $title = null, $text = null, $entry = []) |
95 | 95 | { |
96 | 96 | $this->setAcceptableClassCodes(ClassCodeInterface::ActClass) |
97 | - ->setAcceptableMoodCodes(MoodCodeInterface::ActMood) |
|
98 | - ->setClassCode(ClassCodeInterface::DOCUMENT_SECTION) |
|
99 | - ->setMoodCode(MoodCodeInterface::EVENT); |
|
97 | + ->setAcceptableMoodCodes(MoodCodeInterface::ActMood) |
|
98 | + ->setClassCode(ClassCodeInterface::DOCUMENT_SECTION) |
|
99 | + ->setMoodCode(MoodCodeInterface::EVENT); |
|
100 | 100 | |
101 | 101 | $this->entries = []; |
102 | 102 | |
@@ -155,17 +155,17 @@ discard block |
||
155 | 155 | { |
156 | 156 | $el = $this->createElement($doc); |
157 | 157 | $this->renderId($el, $doc) |
158 | - ->renderCode($el, $doc) |
|
159 | - ->renderTitle($el, $doc) |
|
160 | - ->renderText($el, $doc) |
|
161 | - ->renderConfidentialityCode($el, $doc) |
|
162 | - ->renderLanguageCode($el, $doc) |
|
163 | - ->renderSubject($el, $doc) |
|
164 | - ->renderAuthor($el, $doc) |
|
165 | - ->renderInformants($el, $doc) |
|
166 | - ->renderEntries($el, $doc) |
|
167 | - ->renderComponents($el, $doc) |
|
168 | - ->renderExtCoverage2($el, $doc); |
|
158 | + ->renderCode($el, $doc) |
|
159 | + ->renderTitle($el, $doc) |
|
160 | + ->renderText($el, $doc) |
|
161 | + ->renderConfidentialityCode($el, $doc) |
|
162 | + ->renderLanguageCode($el, $doc) |
|
163 | + ->renderSubject($el, $doc) |
|
164 | + ->renderAuthor($el, $doc) |
|
165 | + ->renderInformants($el, $doc) |
|
166 | + ->renderEntries($el, $doc) |
|
167 | + ->renderComponents($el, $doc) |
|
168 | + ->renderExtCoverage2($el, $doc); |
|
169 | 169 | return $el; |
170 | 170 | } |
171 | 171 |
@@ -67,12 +67,12 @@ |
||
67 | 67 | { |
68 | 68 | if (! |
69 | 69 | ( |
70 | - $quantity instanceof PhysicalQuantity |
|
70 | + $quantity instanceof PhysicalQuantity |
|
71 | 71 | || $quantity instanceof AbstractInterval |
72 | 72 | ) |
73 | 73 | ) { |
74 | 74 | throw new \UnexpectedValueException(sprintf('The value of quantity should be an instance of %s or %s', |
75 | - PhysicalQuantity::class, AbstractInterval::class)); |
|
75 | + PhysicalQuantity::class, AbstractInterval::class)); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | $this->quantity = $quantity; |
@@ -65,8 +65,7 @@ |
||
65 | 65 | */ |
66 | 66 | public function setQuantity($quantity): self |
67 | 67 | { |
68 | - if (! |
|
69 | - ( |
|
68 | + if (!( |
|
70 | 69 | $quantity instanceof PhysicalQuantity |
71 | 70 | || $quantity instanceof AbstractInterval |
72 | 71 | ) |