11<?php
2+
23declare (strict_types=1 );
34
45/**
@@ -112,7 +113,7 @@ protected function parse_common(object $object, array &$dependencies): void
112113 $ this ->description = htmlentities ($ object ->meta ->description );
113114 }
114115 if ($ this ->description !== null ) {
115- $ encoded = htmlentities ($ this ->description , ENT_COMPAT , null , FALSE );
116+ $ encoded = htmlentities ($ this ->description , ENT_COMPAT , null , false );
116117 $ this ->description = MarkdownExtra::defaultTransform ($ encoded );
117118 }
118119
@@ -133,7 +134,7 @@ protected function parse_common(object $object, array &$dependencies): void
133134 $ this ->status = join (', ' , $ object ->attributes ->typeAttributes );
134135 }
135136
136- if (!in_array ($ this ->type , self ::DEFAULTS ) && $ this ->type !== NULL ) {
137+ if (!in_array ($ this ->type , self ::DEFAULTS ) && $ this ->type !== null ) {
137138 $ dependencies [] = $ this ->type ;
138139 }
139140 }
@@ -162,18 +163,18 @@ protected function get_element_as_html($element): string
162163 *
163164 * @return string
164165 */
165- public function string_value ($ flat = FALSE )
166+ public function string_value ($ flat = false )
166167 {
167168 if (is_array ($ this ->value )) {
168169 $ value_key = rand (0 , count ($ this ->value ));
169- if (is_subclass_of ($ this ->value [$ value_key ], StructureElement::class) && $ flat === FALSE ) {
170+ if (is_subclass_of ($ this ->value [$ value_key ], StructureElement::class) && $ flat === false ) {
170171 return $ this ->value [$ value_key ]->string_value ($ flat );
171172 }
172173
173174 return $ this ->value [$ value_key ];
174175 }
175176
176- if (is_subclass_of ($ this ->value , BasicStructureElement::class) && $ flat === TRUE ) {
177+ if (is_subclass_of ($ this ->value , BasicStructureElement::class) && $ flat === true ) {
177178 return is_array ($ this ->value ->value ) ? array_keys ($ this ->value ->value )[0 ] : $ this ->value ->value ;
178179 }
179180 return $ this ->value ;
0 commit comments