Because the string returned by file_get_contents has a trailing whitespace.
I use trim because otherwise array_search is not working properly. It took
me 2 days to find the problem :p


2014-03-22 2:09 GMT+02:00 Dionysis Zindros <notifications@github.com>:

> In models/migration.php:
>
> >              }
> > -            catch ( MigrationException $e ) {
> > -                throw $e;
> > +            $migrations = self::findAll();
> > +            $position = array_search( trim( $last ), $migrations );
>
> Why trim?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/dionyziz/endofcodes/pull/147/files#r10859058>
> .
>