Skip to content

Commit

Permalink
Add test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Oct 7, 2023
1 parent 0848acf commit f0800fb
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/_data/All/after.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php declare(strict_types = 1);

namespace PSR2R;

class FixMe {

public function notEnoughWhitespace() {
if ($x > $y) {
return;
}
if ($y > $z) {
}
}

public function tooMuchWhitespace() {
if ($x > $y) {
}
if ($y > $z) {
}
}

}
23 changes: 23 additions & 0 deletions tests/_data/All/before.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php declare(strict_types = 1);

namespace PSR2R;

class FixMe
{
public function notEnoughWhitespace()
{
if ($x >$y) {
return ;;
}
if ($y> $z) {
}
}

public function tooMuchWhitespace()
{
if ($x > $y) {
}
if ($y > $z) {
}
}
}

0 comments on commit f0800fb

Please sign in to comment.