@@ -64,7 +64,7 @@ protected function init(InputInterface $input, OutputInterface $output, $env = n
6464 $ configDirectory = array (getcwd () . '/.php-database-migration/environments ' );
6565 $ locator = new FileLocator ($ configDirectory );
6666
67- if ($ env == null ) {
67+ if ($ env === null ) {
6868 $ env = $ input ->getArgument ('env ' );
6969 }
7070
@@ -86,9 +86,9 @@ protected function init(InputInterface $input, OutputInterface $output, $env = n
8686 if ($ driver == 'sqlite ' ) {
8787 $ uri .= ": $ dbname " ;
8888 } else {
89- $ uri .= ($ dbname == null ) ? '' : ":dbname= $ dbname " ;
90- $ uri .= ($ host == null ) ? '' : ";host= $ host " ;
91- $ uri .= ($ port == null ) ? '' : ";port= $ port " ;
89+ $ uri .= ($ dbname === null ) ? '' : ":dbname= $ dbname " ;
90+ $ uri .= ($ host === null ) ? '' : ";host= $ host " ;
91+ $ uri .= ($ port === null ) ? '' : ";port= $ port " ;
9292 }
9393 $ this ->db = new \PDO (
9494 $ uri ,
@@ -170,7 +170,6 @@ public function getToUpMigrations()
170170
171171 public function getToDownMigrations ()
172172 {
173- $ locales = $ this ->getLocalMigrations ();
174173 $ remotes = $ this ->getRemoteMigrations ();
175174
176175 ksort ($ remotes );
@@ -272,7 +271,7 @@ protected function filterMigrationsToExecute(InputInterface $input, OutputInterf
272271 }
273272
274273 $ only = $ input ->getOption ('only ' );
275- if ($ only != null ) {
274+ if ($ only !== null ) {
276275 if (! array_key_exists ($ only , $ toExecute )) {
277276 throw new \RuntimeException ("Impossible to execute migration $ only! " );
278277 }
@@ -281,7 +280,7 @@ protected function filterMigrationsToExecute(InputInterface $input, OutputInterf
281280 }
282281
283282 $ to = $ input ->getOption ('to ' );
284- if ($ to != null ) {
283+ if ($ to !== null ) {
285284 if (! array_key_exists ($ to , $ toExecute )) {
286285 throw new \RuntimeException ("Target migration $ to does not exists or has already been executed/downed! " );
287286 }
0 commit comments