Skip to content

Commit 53bec27

Browse files
committed
Automatic fixes and baseline
1 parent c6c160b commit 53bec27

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

config/phpstan-baseline.neon

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
parameters:
2-
ignoreErrors:
3-
-
4-
message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:setIndentation\(\)\.$#'
5-
identifier: method.notFound
6-
count: 2
7-
path: ../src/OutputFormat.php
2+
ignoreErrors: []
83

src/OutputFormat.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,7 @@ class OutputFormat
161161
*/
162162
private $iIndentationLevel = 0;
163163

164-
public function __construct()
165-
{
166-
}
164+
public function __construct() {}
167165

168166
/**
169167
* @param string $sName
@@ -671,7 +669,7 @@ public function setIndentationLevel(int $iIndentationLevel): self
671669
*
672670
* @return self
673671
*/
674-
public function indentWithTabs($iNumber = 1)
672+
public function indentWithTabs($iNumber = 1): \Sabberworm\CSS\OutputFormat
675673
{
676674
return $this->setIndentation(\str_repeat("\t", $iNumber));
677675
}
@@ -681,7 +679,7 @@ public function indentWithTabs($iNumber = 1)
681679
*
682680
* @return self
683681
*/
684-
public function indentWithSpaces($iNumber = 2)
682+
public function indentWithSpaces($iNumber = 2): \Sabberworm\CSS\OutputFormat
685683
{
686684
return $this->setIndentation(\str_repeat(' ', $iNumber));
687685
}

0 commit comments

Comments
 (0)