Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialChangeset.php
Show First 20 Lines • Show All 319 Lines • ▼ Show 20 Lines | final class DifferentialChangeset | ||||
} | } | ||||
public function getDiff() { | public function getDiff() { | ||||
return $this->assertAttached($this->diff); | return $this->assertAttached($this->diff); | ||||
} | } | ||||
public function getOldStatePathVector() { | public function getOldStatePathVector() { | ||||
$path = $this->getOldFile(); | $path = $this->getOldFile(); | ||||
if (!strlen($path)) { | if ($path === null || !strlen($path)) { | ||||
$path = $this->getFilename(); | $path = $this->getFilename(); | ||||
} | } | ||||
$path = trim($path, '/'); | $path = trim($path, '/'); | ||||
$path = explode('/', $path); | $path = explode('/', $path); | ||||
return $path; | return $path; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 448 Lines • Show Last 20 Lines |