Skip to content

Commit 9863f5e

Browse files
committed
Add another test for single line declaration #32
1 parent f31f05d commit 9863f5e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/fixtures/function-body-start.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ function bar()
1616
return 'bar';
1717
}
1818

19+
// @phpcsWarningCodeOnNextLine WrongForSingleLineSignature
20+
function lorem() {
21+
22+
23+
return 'ipsum';
24+
}
25+
1926
// @phpcsWarningCodeOnNextLine WrongForMultiLineDeclaration
2027
function fooFoo(
2128
string $foo,
@@ -73,6 +80,13 @@ private function bar()
7380
return 'bar';
7481
}
7582

83+
// @phpcsWarningCodeOnNextLine WrongForSingleLineSignature
84+
public function lorem() {
85+
86+
87+
return 'ipsum';
88+
}
89+
7690
// @phpcsWarningCodeOnNextLine WrongForMultiLineDeclaration
7791
protected function fooFoo(
7892
string $foo,

0 commit comments

Comments
 (0)