For some reason it returns a boolean type variable. I cannot find out why.


2014-03-18 23:57 GMT+02:00 Dionysis Zindros <notifications@github.com>:

> In models/migration/base.php:
>
> > +            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" ) {
> > +                    $array[] = $entry;
> > +                }
> > +            }
> > +            array_multisort( $array, SORT_ASC, $array );
>
> Why not?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/dionyziz/endofcodes/pull/147/files#r10728164>
> .
>