Lines Matching refs:branches
45 /* Time to keep EOLed branches in the array returned by get_active_branches(),
102 $branches = [];
109 …if (!isset($branches[$major][$branch]) || version_compare($version, $branches[$major][$branch]['ve…
110 $branches[$major][$branch] = $release;
111 $branches[$major][$branch]['version'] = $version;
122 …if (!isset($branches[$major][$branch]) || version_compare($version, $branches[$major][$branch]['ve…
123 $branches[$major][$branch] = $release;
124 $branches[$major][$branch]['version'] = $version;
130 krsort($branches);
131 foreach ($branches as &$branch) {
135 return $branches;
139 $branches = [];
156 $branches[$major][$branch] = $release;
157 $branches[$major][$branch]['version'] = $version;
161 if (!empty($branches[$major])) {
162 ksort($branches[$major]);
166 ksort($branches);
167 return $branches;
175 $branches = [];
184 …if (!isset($branches[$major][$branch]) || version_compare($version, $branches[$major][$branch]['ve…
185 $branches[$major][$branch] = [
195 /* Exclude releases from active branches, where active is defined as "in
204 if (isset($branches[$major][$branch])) {
205 unset($branches[$major][$branch]);
208 /* Add the release information to the EOL branches array, since it
227 $branches[$major][$branch] = [
237 krsort($branches);
238 foreach ($branches as &$branch) {
242 return $branches;