Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/query/DifferentialHunkQuery.php
Show All 28 Lines | if ($this->shouldAttachToChangesets) { | ||||
} | } | ||||
} | } | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new DifferentialHunk(); | return new DifferentialHunk(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
protected function willFilterPage(array $hunks) { | protected function willFilterPage(array $hunks) { | ||||
$changesets = mpull($this->changesets, null, 'getID'); | $changesets = mpull($this->changesets, null, 'getID'); | ||||
foreach ($hunks as $key => $hunk) { | foreach ($hunks as $key => $hunk) { | ||||
$changeset = idx($changesets, $hunk->getChangesetID()); | $changeset = idx($changesets, $hunk->getChangesetID()); | ||||
if (!$changeset) { | if (!$changeset) { | ||||
unset($hunks[$key]); | unset($hunks[$key]); | ||||
} | } | ||||
$hunk->attachChangeset($changeset); | $hunk->attachChangeset($changeset); | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |