Skip to content

Commit

Permalink
Merge pull request #19 from gruberro/scrutinizer-upgrade
Browse files Browse the repository at this point in the history
Migrate to new PHP Analysis version
  • Loading branch information
Robert Gruber authored Sep 11, 2019
2 parents d3c7a1a + f35afdf commit 1832755
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
build:
nodes:
analysis:
tests:
override:
- php-scrutinizer-run

imports:
- php

Expand Down
2 changes: 1 addition & 1 deletion lib/Console/Command/MigrationsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected function execute(Console\Input\InputInterface $input, Console\Output\O
}

if (!$migration instanceof MongoDbMigrations\RunAlwaysMigrationInterface) {
if ($databaseMigrationsCollection->count(['migration_id' => $id]) > 0) {
if ($databaseMigrationsCollection->countDocuments(['migration_id' => $id]) > 0) {
continue;
}
}
Expand Down

0 comments on commit 1832755

Please sign in to comment.