Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/query/DiffusionCommitQuery.php
| Show First 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | protected function willFilterPage(array $commits) { | ||||
| $result = array(); | $result = array(); | ||||
| foreach ($commits as $key => $commit) { | foreach ($commits as $key => $commit) { | ||||
| $repo = idx($repos, $commit->getRepositoryID()); | $repo = idx($repos, $commit->getRepositoryID()); | ||||
| if ($repo) { | if ($repo) { | ||||
| $commit->attachRepository($repo); | $commit->attachRepository($repo); | ||||
| } else { | } else { | ||||
| unset($commits[$key]); | unset($commits[$key]); | ||||
| continue; | |||||
| } | } | ||||
| // Build the identifierMap | // Build the identifierMap | ||||
| if ($this->identifiers !== null) { | if ($this->identifiers !== null) { | ||||
| $ids = array_fuse($this->identifiers); | $ids = array_fuse($this->identifiers); | ||||
| $prefixes = array( | $prefixes = array( | ||||
| 'r'.$commit->getRepository()->getCallsign(), | 'r'.$commit->getRepository()->getCallsign(), | ||||
| 'r'.$commit->getRepository()->getCallsign().':', | 'r'.$commit->getRepository()->getCallsign().':', | ||||
| ▲ Show 20 Lines • Show All 363 Lines • Show Last 20 Lines | |||||