Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
- trailing whitespace, braces
  • Loading branch information
weierophinney committed Mar 12, 2013
1 parent 98da0af commit 9d40ad7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions test/PHPUnit/Controller/AbstractControllerTestCaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ public function tearDownCacheDir()
}
}

public static function rmdir($dir) {
public static function rmdir($dir)
{
$files = array_diff(scandir($dir), array('.','..'));
foreach ($files as $file) {
(is_dir("$dir/$file")) ? static::rmdir("$dir/$file") : unlink("$dir/$file");
}
return rmdir($dir);
}
return rmdir($dir);
}

public function setUp()
{
Expand Down
7 changes: 4 additions & 3 deletions test/PHPUnit/Util/ModuleLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ public function tearDownCacheDir()
}
}

public static function rmdir($dir) {
public static function rmdir($dir)
{
$files = array_diff(scandir($dir), array('.','..'));
foreach ($files as $file) {
(is_dir("$dir/$file")) ? static::rmdir("$dir/$file") : unlink("$dir/$file");
}
return rmdir($dir);
}
return rmdir($dir);
}

public function setUp()
{
Expand Down

0 comments on commit 9d40ad7

Please sign in to comment.