@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | $missing_tests = array(); |
| 47 | 47 | $src_path_parent_path = dirname($src_path) . '/'; |
| 48 | 48 | |
| 49 | - foreach ( $finder as $source_file ) { |
|
| 49 | + foreach ($finder as $source_file) { |
|
| 50 | 50 | $source_file_path = $source_file->getPathname(); |
| 51 | 51 | $test_file_path = preg_replace( |
| 52 | 52 | '/^' . preg_quote($src_path, '/') . '(.*)\.php$/', |
@@ -54,18 +54,18 @@ discard block |
||
| 54 | 54 | $source_file_path |
| 55 | 55 | ); |
| 56 | 56 | |
| 57 | - if ( !file_exists($test_file_path) ) { |
|
| 57 | + if (!file_exists($test_file_path)) { |
|
| 58 | 58 | $missing_tests[] = str_replace($src_path_parent_path, '', $source_file_path); |
| 59 | 59 | } |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | - if ( !$missing_tests ) { |
|
| 62 | + if (!$missing_tests) { |
|
| 63 | 63 | $this->io->writeln('<info>Tests for all source files are found.</info>'); |
| 64 | 64 | } |
| 65 | 65 | else { |
| 66 | 66 | $this->io->writeln(array('<error>Tests for following source files are missing:</error>', '')); |
| 67 | 67 | |
| 68 | - foreach ( $missing_tests as $missing_test ) { |
|
| 68 | + foreach ($missing_tests as $missing_test) { |
|
| 69 | 69 | $this->io->writeln(' * ' . $missing_test); |
| 70 | 70 | } |
| 71 | 71 | } |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | $raw_path = $this->io->getArgument($argument_name); |
| 85 | 85 | $path = realpath($raw_path); |
| 86 | 86 | |
| 87 | - if ( !$path || !file_exists($path) || !is_dir($path) ) { |
|
| 87 | + if (!$path || !file_exists($path) || !is_dir($path)) { |
|
| 88 | 88 | throw new \InvalidArgumentException('The "' . $raw_path . '" path is invalid.'); |
| 89 | 89 | } |
| 90 | 90 | |