| Conditions | 6 |
| Paths | 5 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 48 | protected function getLatestSuccessMigrationVersions() |
||
| 49 | { |
||
| 50 | $result = []; |
||
| 51 | foreach ($this->migrations as $migration) { |
||
| 52 | if (!$migration->isSuccessful() || !$migration->getVersion()) { |
||
| 53 | continue; |
||
| 54 | } |
||
| 55 | if (isset($result[$migration->getBundleName()])) { |
||
| 56 | if (version_compare($result[$migration->getBundleName()], $migration->getVersion()) === -1) { |
||
| 57 | $result[$migration->getBundleName()] = $migration->getVersion(); |
||
| 58 | } |
||
| 59 | } else { |
||
| 60 | $result[$migration->getBundleName()] = $migration->getVersion(); |
||
| 61 | } |
||
| 62 | } |
||
| 63 | |||
| 64 | return $result; |
||
| 65 | } |
||
| 66 | } |
||
| 67 |