Lines Matching refs:major

101     foreach ($GLOBALS['OLDRELEASES'] as $major => $releases) {
106 …if (!isset($branches[$major][$branch]) || version_compare($version, $branches[$major][$branch]['ve…
107 $branches[$major][$branch] = $release;
108 $branches[$major][$branch]['version'] = $version;
114 foreach ($GLOBALS['RELEASES'] as $major => $releases) {
119 …if (!isset($branches[$major][$branch]) || version_compare($version, $branches[$major][$branch]['ve…
120 $branches[$major][$branch] = $release;
121 $branches[$major][$branch]['version'] = $version;
139 foreach ($GLOBALS['RELEASES'] as $major => $releases) {
153 $branches[$major][$branch] = $release;
154 $branches[$major][$branch]['version'] = $version;
158 if (!empty($branches[$major])) {
159 ksort($branches[$major]);
176 foreach ($GLOBALS['OLDRELEASES'] as $major => $releases) {
181 …if (!isset($branches[$major][$branch]) || version_compare($version, $branches[$major][$branch]['ve…
182 $branches[$major][$branch] = [
194 foreach ($GLOBALS['RELEASES'] as $major => $releases) {
201 if (isset($branches[$major][$branch])) {
202 unset($branches[$major][$branch]);
217 $major = $parts[0];
219 if (isset($GLOBALS['RELEASES'][$major][$version])) {
220 $release = $GLOBALS['RELEASES'][$major][$version];
224 $branches[$major][$branch] = [
251 $major = substr($branch, 0, strpos($branch, '.'));
253 if (isset($GLOBALS['OLDRELEASES'][$major]["$branch.0"])) {
254 return $GLOBALS['OLDRELEASES'][$major]["$branch.0"];
259 if (isset($GLOBALS['RELEASES'][$major]["$branch.0"])) {
261 $release = $GLOBALS['RELEASES'][$major]["$branch.0"];
275 $major = substr($branch, 0, strpos($branch, '.'));
278 foreach ($GLOBALS['OLDRELEASES'][$major] as $version => $release) {
284 if (isset($GLOBALS['OLDRELEASES'][$major][$last])) {
285 return $GLOBALS['OLDRELEASES'][$major][$last];
290 if (isset($GLOBALS['RELEASES'][$major][$last])) {
292 $release = $GLOBALS['RELEASES'][$major][$last];
415 function get_current_release_for_branch(int $major, ?int $minor): ?string {
418 $prefix = "{$major}.";
423 foreach (($RELEASES[$major] ?? []) as $version => $_) {
429 foreach (($OLDRELEASES[$major] ?? []) as $version => $_) {