@@ 140-146 (lines=7) @@ | ||
137 | $sortedMigrations = clone $migrations; |
|
138 | ||
139 | $sortedMigrations->uasort( |
|
140 | function ($a, $b) { |
|
141 | if ($a['version'] == $b['version']) { |
|
142 | return 0; |
|
143 | } |
|
144 | ||
145 | return ($a['version'] > $b['version']) ? -1 : 1; |
|
146 | } |
|
147 | ); |
|
148 | ||
149 | return $sortedMigrations; |
@@ 70-76 (lines=7) @@ | ||
67 | } |
|
68 | ||
69 | $classes->uasort( |
|
70 | function ($a, $b) { |
|
71 | if ($a['version'] == $b['version']) { |
|
72 | return 0; |
|
73 | } |
|
74 | ||
75 | return ($a['version'] < $b['version']) ? -1 : 1; |
|
76 | } |
|
77 | ); |
|
78 | ||
79 | return $classes; |