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
173
173
/**
174
174
* @var OutputFormat|null
175
175
*/
176
- private $ oNextLevelFormat ;
176
+ private $ nextLevelFormat ;
177
177
178
178
/**
179
179
* @var int
@@ -737,12 +737,12 @@ public function indentWithSpaces(int $numberOfSpaces = 2): self
737
737
*/
738
738
public function nextLevel (): self
739
739
{
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 ;
744
744
}
745
- return $ this ->oNextLevelFormat ;
745
+ return $ this ->nextLevelFormat ;
746
746
}
747
747
748
748
public function beLenient (): void
Original file line number Diff line number Diff line change @@ -270,20 +270,20 @@ protected function renderRules(OutputFormat $outputFormat)
270
270
{
271
271
$ result = '' ;
272
272
$ isFirst = true ;
273
- $ oNextLevel = $ outputFormat ->nextLevel ();
273
+ $ nextLevelFormat = $ outputFormat ->nextLevel ();
274
274
foreach ($ this ->rules as $ rules ) {
275
275
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 );
278
278
});
279
279
if ($ sRendered === null ) {
280
280
continue ;
281
281
}
282
282
if ($ isFirst ) {
283
283
$ isFirst = false ;
284
- $ result .= $ oNextLevel ->spaceBeforeRules ();
284
+ $ result .= $ nextLevelFormat ->spaceBeforeRules ();
285
285
} else {
286
- $ result .= $ oNextLevel ->spaceBetweenRules ();
286
+ $ result .= $ nextLevelFormat ->spaceBetweenRules ();
287
287
}
288
288
$ result .= $ sRendered ;
289
289
}
You can’t perform that action at this time.
0 commit comments