| @@ 101-107 (lines=7) @@ | ||
| 98 | return true; |
|
| 99 | }; |
|
| 100 | ||
| 101 | foreach ($files as $file) { |
|
| 102 | if (is_file($file)) { |
|
| 103 | $finder->in(dirname($file))->name(basename($file)); |
|
| 104 | } else { |
|
| 105 | $finder->in($file); |
|
| 106 | } |
|
| 107 | } |
|
| 108 | ||
| 109 | $finder->ignoreDotFiles(true)->filter($filter); |
|
| 110 | ||
| @@ 88-94 (lines=7) @@ | ||
| 85 | ||
| 86 | if (is_null($inputFile)) { |
|
| 87 | // normal way - file arguments.. |
|
| 88 | foreach ($files as $file) { |
|
| 89 | if (is_file($file)) { |
|
| 90 | $finder->in(dirname($file))->name(basename($file)); |
|
| 91 | } else { |
|
| 92 | $finder->in($file); |
|
| 93 | } |
|
| 94 | } |
|
| 95 | } else { |
|
| 96 | // file list via input file |
|
| 97 | if (!file_exists($inputFile)) { |
|