| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 56 | public function alreadyUpdated(): bool |
||
| 57 | { |
||
| 58 | $migrations = $this->getMigrations(); |
||
| 59 | $dbMigrations = $this->getExecutedMigrations(); |
||
| 60 | |||
| 61 | // If the count of migrations and dbMigrations is equal, |
||
| 62 | // then the update as already been updated. |
||
| 63 | if (count($migrations) == count($dbMigrations)) { |
||
| 64 | return true; |
||
| 65 | } |
||
| 66 | |||
| 67 | // Continue, the app needs an update |
||
| 68 | return false; |
||
| 69 | } |
||
| 71 |