@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | */ |
| 113 | 113 | public function getTestWithSegFault() |
| 114 | 114 | { |
| 115 | - if ( ! extension_loaded('sigsegv')) { |
|
| 115 | + if (!extension_loaded('sigsegv')) { |
|
| 116 | 116 | $this->markTestIncomplete('The segfault cannot be reproduced in this environment'); |
| 117 | 117 | } |
| 118 | 118 | |
@@ -153,8 +153,8 @@ discard block |
||
| 153 | 153 | $it = new \RecursiveDirectoryIterator($dir, \RecursiveDirectoryIterator::SKIP_DOTS); |
| 154 | 154 | $files = new \RecursiveIteratorIterator($it, \RecursiveIteratorIterator::CHILD_FIRST); |
| 155 | 155 | |
| 156 | - foreach($files as $file) { |
|
| 157 | - if ($file->isDir()){ |
|
| 156 | + foreach ($files as $file) { |
|
| 157 | + if ($file->isDir()) { |
|
| 158 | 158 | rmdir($file->getRealPath()); |
| 159 | 159 | } else { |
| 160 | 160 | unlink($file->getRealPath()); |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | */ |
| 96 | 96 | private static function mkdirIfNotExists($path) |
| 97 | 97 | { |
| 98 | - if ( ! file_exists($path)) { |
|
| 98 | + if (!file_exists($path)) { |
|
| 99 | 99 | mkdir($path); |
| 100 | 100 | } |
| 101 | 101 | } |