|
@@ 149-163 (lines=15) @@
|
| 146 |
|
} |
| 147 |
|
|
| 148 |
|
$versions = []; |
| 149 |
|
foreach ($package->tags as $tag) { |
| 150 |
|
$sources = []; |
| 151 |
|
|
| 152 |
|
foreach ($package->links->clone as $cloneSource) { |
| 153 |
|
if ($this->shouldAddComponentSource($cloneSource)) { |
| 154 |
|
$sources[$cloneSource->name] = new GitComponentSource( |
| 155 |
|
$cloneSource->href, $tag->displayId); |
| 156 |
|
} |
| 157 |
|
} |
| 158 |
|
|
| 159 |
|
$sources = $this->sortComponentSources($sources); |
| 160 |
|
|
| 161 |
|
$versions[] = new ComponentVersion( |
| 162 |
|
null, $tag->displayId, null, $sources); |
| 163 |
|
} |
| 164 |
|
|
| 165 |
|
foreach ($package->branches as $branch) { |
| 166 |
|
$sources = []; |
|
@@ 165-179 (lines=15) @@
|
| 162 |
|
null, $tag->displayId, null, $sources); |
| 163 |
|
} |
| 164 |
|
|
| 165 |
|
foreach ($package->branches as $branch) { |
| 166 |
|
$sources = []; |
| 167 |
|
|
| 168 |
|
foreach ($package->links->clone as $cloneSource) { |
| 169 |
|
if ($this->shouldAddComponentSource($cloneSource)) { |
| 170 |
|
$sources[$cloneSource->name] = new GitComponentSource( |
| 171 |
|
$cloneSource->href, $branch->displayId); |
| 172 |
|
} |
| 173 |
|
} |
| 174 |
|
|
| 175 |
|
$sources = $this->sortComponentSources($sources); |
| 176 |
|
|
| 177 |
|
$versions[] = new ComponentVersion( |
| 178 |
|
null, $branch->displayId, null, $sources); |
| 179 |
|
} |
| 180 |
|
|
| 181 |
|
return new Component($componentName, $versions, $this); |
| 182 |
|
} |