File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ class OutputFormat
173173 /**
174174 * @var OutputFormat|null
175175 */
176- private $ oNextLevelFormat ;
176+ private $ nextLevelFormat ;
177177
178178 /**
179179 * @var int
@@ -737,12 +737,12 @@ public function indentWithSpaces(int $numberOfSpaces = 2): self
737737 */
738738 public function nextLevel (): self
739739 {
740- if ($ this ->oNextLevelFormat === null ) {
741- $ this ->oNextLevelFormat = clone $ this ;
742- $ this ->oNextLevelFormat ->iIndentationLevel ++;
743- $ this ->oNextLevelFormat ->outputFormatter = null ;
740+ if ($ this ->nextLevelFormat === null ) {
741+ $ this ->nextLevelFormat = clone $ this ;
742+ $ this ->nextLevelFormat ->iIndentationLevel ++;
743+ $ this ->nextLevelFormat ->outputFormatter = null ;
744744 }
745- return $ this ->oNextLevelFormat ;
745+ return $ this ->nextLevelFormat ;
746746 }
747747
748748 public function beLenient (): void
Original file line number Diff line number Diff line change @@ -270,20 +270,20 @@ protected function renderRules(OutputFormat $outputFormat)
270270 {
271271 $ result = '' ;
272272 $ isFirst = true ;
273- $ oNextLevel = $ outputFormat ->nextLevel ();
273+ $ nextLevelFormat = $ outputFormat ->nextLevel ();
274274 foreach ($ this ->rules as $ rules ) {
275275 foreach ($ rules as $ rule ) {
276- $ sRendered = $ oNextLevel ->safely (static function () use ($ rule , $ oNextLevel ): string {
277- return $ rule ->render ($ oNextLevel );
276+ $ sRendered = $ nextLevelFormat ->safely (static function () use ($ rule , $ nextLevelFormat ): string {
277+ return $ rule ->render ($ nextLevelFormat );
278278 });
279279 if ($ sRendered === null ) {
280280 continue ;
281281 }
282282 if ($ isFirst ) {
283283 $ isFirst = false ;
284- $ result .= $ oNextLevel ->spaceBeforeRules ();
284+ $ result .= $ nextLevelFormat ->spaceBeforeRules ();
285285 } else {
286- $ result .= $ oNextLevel ->spaceBetweenRules ();
286+ $ result .= $ nextLevelFormat ->spaceBetweenRules ();
287287 }
288288 $ result .= $ sRendered ;
289289 }
You can’t perform that action at this time.
0 commit comments