src/Command/ValidationCommand.php 1 location
|
@@ 94-99 (lines=6) @@
|
| 91 |
|
* @param SplFileInfo $file |
| 92 |
|
* @return bool |
| 93 |
|
*/ |
| 94 |
|
$filter = function (SplFileInfo $file) { |
| 95 |
|
if (!in_array($file->getExtension(), ['yml','json']) || $file->isDir()) { |
| 96 |
|
return false; |
| 97 |
|
} |
| 98 |
|
return true; |
| 99 |
|
}; |
| 100 |
|
|
| 101 |
|
foreach ($files as $file) { |
| 102 |
|
if (is_file($file)) { |
src/Command/ImportCommandAbstract.php 1 location
|
@@ 79-84 (lines=6) @@
|
| 76 |
|
* @param SplFileInfo $file |
| 77 |
|
* @return bool |
| 78 |
|
*/ |
| 79 |
|
$filter = function (SplFileInfo $file) { |
| 80 |
|
if (!in_array($file->getExtension(), ['yml','json']) || $file->isDir()) { |
| 81 |
|
return false; |
| 82 |
|
} |
| 83 |
|
return true; |
| 84 |
|
}; |
| 85 |
|
|
| 86 |
|
if (is_null($inputFile)) { |
| 87 |
|
// normal way - file arguments.. |