Differential D21862 Diff 52129 src/applications/config/controller/services/PhabricatorConfigDatabaseStatusController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/controller/services/PhabricatorConfigDatabaseStatusController.php
Show First 20 Lines • Show All 831 Lines • ▼ Show 20 Lines | $defaults = array( | ||||
'key' => $this->key, | 'key' => $this->key, | ||||
); | ); | ||||
$properties = $properties + $defaults; | $properties = $properties + $defaults; | ||||
$properties = array_select_keys($properties, array_keys($defaults)); | $properties = array_select_keys($properties, array_keys($defaults)); | ||||
$parts = array(); | $parts = array(); | ||||
foreach ($properties as $key => $property) { | foreach ($properties as $key => $property) { | ||||
if (!strlen($property)) { | if ($property === null || !strlen($property)) { | ||||
continue; | continue; | ||||
} | } | ||||
if ($key == 'column') { | if ($key == 'column') { | ||||
$parts[] = 'col'; | $parts[] = 'col'; | ||||
} else if ($key == 'key') { | } else if ($key == 'key') { | ||||
$parts[] = 'key'; | $parts[] = 'key'; | ||||
} | } | ||||
Show All 14 Lines |