projects/packages/changelogger/src/Utils.php 1 location
|
@@ 169-174 (lines=6) @@
|
| 166 |
|
$ret = array(); |
| 167 |
|
|
| 168 |
|
$allFiles = array(); |
| 169 |
|
foreach ( new \DirectoryIterator( $dir ) as $file ) { |
| 170 |
|
$name = $file->getBasename(); |
| 171 |
|
if ( '.' !== $name[0] ) { |
| 172 |
|
$allFiles[ $name ] = $file->getPathname(); |
| 173 |
|
} |
| 174 |
|
} |
| 175 |
|
asort( $allFiles ); |
| 176 |
|
foreach ( $allFiles as $name => $path ) { |
| 177 |
|
$diagnostics = null; |
projects/packages/changelogger/src/ValidateCommand.php 1 location
|
@@ 200-205 (lines=6) @@
|
| 197 |
|
$files = $input->getArgument( 'files' ); |
| 198 |
|
if ( ! $files ) { |
| 199 |
|
$files = array(); |
| 200 |
|
foreach ( new \DirectoryIterator( Config::changesDir() ) as $file ) { |
| 201 |
|
$name = $file->getBasename(); |
| 202 |
|
if ( '.' !== $name[0] ) { |
| 203 |
|
$files[] = $file->getPathname(); |
| 204 |
|
} |
| 205 |
|
} |
| 206 |
|
sort( $files ); |
| 207 |
|
} |
| 208 |
|
|