Lines Matching refs:major
104 foreach ($GLOBALS['OLDRELEASES'] as $major => $releases) {
109 …if (!isset($branches[$major][$branch]) || version_compare($version, $branches[$major][$branch]['ve…
110 $branches[$major][$branch] = $release;
111 $branches[$major][$branch]['version'] = $version;
117 foreach ($GLOBALS['RELEASES'] as $major => $releases) {
122 …if (!isset($branches[$major][$branch]) || version_compare($version, $branches[$major][$branch]['ve…
123 $branches[$major][$branch] = $release;
124 $branches[$major][$branch]['version'] = $version;
142 foreach ($GLOBALS['RELEASES'] as $major => $releases) {
156 $branches[$major][$branch] = $release;
157 $branches[$major][$branch]['version'] = $version;
161 if (!empty($branches[$major])) {
162 ksort($branches[$major]);
179 foreach ($GLOBALS['OLDRELEASES'] as $major => $releases) {
184 …if (!isset($branches[$major][$branch]) || version_compare($version, $branches[$major][$branch]['ve…
185 $branches[$major][$branch] = [
197 foreach ($GLOBALS['RELEASES'] as $major => $releases) {
204 if (isset($branches[$major][$branch])) {
205 unset($branches[$major][$branch]);
220 $major = $parts[0];
222 if (isset($GLOBALS['RELEASES'][$major][$version])) {
223 $release = $GLOBALS['RELEASES'][$major][$version];
227 $branches[$major][$branch] = [
254 $major = substr($branch, 0, strpos($branch, '.'));
256 if (isset($GLOBALS['OLDRELEASES'][$major]["$branch.0"])) {
257 return $GLOBALS['OLDRELEASES'][$major]["$branch.0"];
266 if (isset($GLOBALS['RELEASES'][$major]["$branch.0"])) {
268 $release = $GLOBALS['RELEASES'][$major]["$branch.0"];
282 $major = substr($branch, 0, strpos($branch, '.'));
285 foreach ($GLOBALS['OLDRELEASES'][$major] as $version => $release) {
291 if (isset($GLOBALS['OLDRELEASES'][$major][$last])) {
292 return $GLOBALS['OLDRELEASES'][$major][$last];
297 if (isset($GLOBALS['RELEASES'][$major][$last])) {
299 $release = $GLOBALS['RELEASES'][$major][$last];
422 function get_current_release_for_branch(int $major, ?int $minor): ?string {
425 $prefix = "{$major}.";
430 foreach (($RELEASES[$major] ?? []) as $version => $_) {
436 foreach (($OLDRELEASES[$major] ?? []) as $version => $_) {