@@ -37,7 +37,7 @@ |
||
37 | 37 | continue; |
38 | 38 | } |
39 | 39 | |
40 | - if (! preg_match("/{$this->filePattern}/", $file->getFilename())) { |
|
40 | + if (!preg_match("/{$this->filePattern}/", $file->getFilename())) { |
|
41 | 41 | continue; |
42 | 42 | } |
43 | 43 |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | abstract class FileSystemTest extends PHPUnit_Framework_TestCase |
4 | 4 | { |
5 | 5 | |
6 | - protected $path = __DIR__ . '/temp'; |
|
6 | + protected $path = __DIR__ . '/temp'; |
|
7 | 7 | |
8 | 8 | protected function createTempFolder() |
9 | 9 | { |
@@ -20,13 +20,13 @@ discard block |
||
20 | 20 | |
21 | 21 | public function setup() |
22 | 22 | { |
23 | - parent::setup(); |
|
23 | + parent::setup(); |
|
24 | 24 | $this->createTempFolder(); |
25 | 25 | } |
26 | 26 | |
27 | 27 | public function teardown() |
28 | 28 | { |
29 | - parent::teardown(); |
|
29 | + parent::teardown(); |
|
30 | 30 | $this->removeTempFolder(); |
31 | 31 | } |
32 | 32 | } |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | abstract class FileSystemTest extends PHPUnit_Framework_TestCase |
4 | 4 | { |
5 | 5 | |
6 | - protected $path = __DIR__ . '/temp'; |
|
6 | + protected $path = __DIR__.'/temp'; |
|
7 | 7 | |
8 | 8 | protected function createTempFolder() |
9 | 9 | { |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | |
17 | 17 | |
18 | 18 | // var_dump(glob($this->path . '/' . '{,.}[!.,!..]*',GLOB_MARK|GLOB_BRACE));exit; |
19 | - array_map('unlink', glob($this->path . '/' . '{,.}[!.,!..]*',GLOB_MARK|GLOB_BRACE)); |
|
19 | + array_map('unlink', glob($this->path.'/'.'{,.}[!.,!..]*', GLOB_MARK | GLOB_BRACE)); |
|
20 | 20 | rmdir($this->path); |
21 | 21 | } |
22 | 22 | } |
@@ -7,7 +7,7 @@ |
||
7 | 7 | */ |
8 | 8 | public function it_can_get_a_php_file_from_a_folder() |
9 | 9 | { |
10 | - file_put_contents("{$this->path}/foobar.php", 'foobar.txt'); |
|
10 | + file_put_contents("{$this->path}/foobar.php", 'foobar.txt'); |
|
11 | 11 | $files = $this->fileCollector |
12 | 12 | ->get('.php') |
13 | 13 | ->from($this->path); |