Skip to content

Commit f0800fb

Browse files
committed
Add test coverage
1 parent 0848acf commit f0800fb

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

tests/_data/All/after.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php declare(strict_types = 1);
2+
3+
namespace PSR2R;
4+
5+
class FixMe {
6+
7+
public function notEnoughWhitespace() {
8+
if ($x > $y) {
9+
return;
10+
}
11+
if ($y > $z) {
12+
}
13+
}
14+
15+
public function tooMuchWhitespace() {
16+
if ($x > $y) {
17+
}
18+
if ($y > $z) {
19+
}
20+
}
21+
22+
}

tests/_data/All/before.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php declare(strict_types = 1);
2+
3+
namespace PSR2R;
4+
5+
class FixMe
6+
{
7+
public function notEnoughWhitespace()
8+
{
9+
if ($x >$y) {
10+
return ;;
11+
}
12+
if ($y> $z) {
13+
}
14+
}
15+
16+
public function tooMuchWhitespace()
17+
{
18+
if ($x > $y) {
19+
}
20+
if ($y > $z) {
21+
}
22+
}
23+
}

0 commit comments

Comments
 (0)