How should I do that? I tried something like !="*.php" but it didn't work.


2014-03-16 12:11 GMT+02:00 Dionysis Zindros <notifications@github.com>:

> In models/migration/base.php:
>
> > +        }
> > +
> > +        public static function getLast( $env = 'development' ) {
> > +            ob_start();
> > +            include 'database/migration/' . $env . '.txt';
> > +            $log = ob_get_clean();
> > +            if ( empty( $log ) ) {
> > +                throw new ModelNotFoundException();
> > +            }
> > +        }
> > +
> > +        public static function findAll() {
> > +            $array = [];
> > +            $handle = opendir( 'database/migration/' );
> > +            while ( false !== ( $entry = readdir( $handle ) ) ) {
> > +                if ( $entry != "." && $entry != ".." && $entry != "development.txt" && $entry != "test.txt" ) {
>
> Only look at files ending in PHP
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/dionyziz/endofcodes/pull/147/files#r10638826>
> .
>