Differential D25260 Diff 846 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 (!phutil_nonempty_string($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 |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0