Skip to content

Commit 36860cd

Browse files
committed
[TASK] Remove the deprecated OutputFormat::level()
This method is an inconsistently-named alias of `OutputFormat::getIndentationLevel()`. Fixes #869
1 parent 19cccef commit 36860cd

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Please also have a look at our
2828

2929
### Removed
3030

31+
- Remove `OutputFormat::level()` (#874))
3132
- Remove expansion of shorthand properties (#838)
3233
- Remove `Parser::setCharset/getCharset` (#808)
3334
- Remove `Rule::getValues()` (#582)

src/OutputFormat.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -291,14 +291,6 @@ public function getFormatter()
291291
return $this->oFormatter;
292292
}
293293

294-
/**
295-
* @return int
296-
*/
297-
public function level()
298-
{
299-
return $this->iIndentationLevel;
300-
}
301-
302294
/**
303295
* Creates an instance of this class without any particular formatting settings.
304296
*/

src/OutputFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,6 @@ private function prepareSpace($sSpaceString): string
208208
*/
209209
private function indent(): string
210210
{
211-
return \str_repeat($this->oFormat->sIndentation, $this->oFormat->level());
211+
return \str_repeat($this->oFormat->sIndentation, $this->oFormat->getIndentationLevel());
212212
}
213213
}

0 commit comments

Comments
 (0)