Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialDiff.php
| Show First 20 Lines • Show All 245 Lines • ▼ Show 20 Lines | $dict = array( | ||||
| 'unitStatus' => $this->getUnitStatus(), | 'unitStatus' => $this->getUnitStatus(), | ||||
| 'lintStatus' => $this->getLintStatus(), | 'lintStatus' => $this->getLintStatus(), | ||||
| 'changes' => array(), | 'changes' => array(), | ||||
| 'properties' => array(), | 'properties' => array(), | ||||
| ); | ); | ||||
| $dict['changes'] = $this->buildChangesList(); | $dict['changes'] = $this->buildChangesList(); | ||||
| return $dict + $this->getDiffAuthorshipDict(); | |||||
| } | |||||
| public function getDiffAuthorshipDict() { | |||||
| $dict = array(); | |||||
| $properties = id(new DifferentialDiffProperty())->loadAllWhere( | $properties = id(new DifferentialDiffProperty())->loadAllWhere( | ||||
| 'diffID = %d', | 'diffID = %d', | ||||
| $this->getID()); | $this->getID()); | ||||
| foreach ($properties as $property) { | foreach ($properties as $property) { | ||||
| $dict['properties'][$property->getName()] = $property->getData(); | $dict['properties'][$property->getName()] = $property->getData(); | ||||
| if ($property->getName() == 'local:commits') { | if ($property->getName() == 'local:commits') { | ||||
| foreach ($property->getData() as $commit) { | foreach ($property->getData() as $commit) { | ||||
| ▲ Show 20 Lines • Show All 272 Lines • Show Last 20 Lines | |||||