Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/menuitem/PhabricatorProfileMenuItem.php
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | abstract class PhabricatorProfileMenuItem extends Phobject { | ||||
} | } | ||||
final protected function isEmptyTransaction($value, array $xactions) { | final protected function isEmptyTransaction($value, array $xactions) { | ||||
$result = $value; | $result = $value; | ||||
foreach ($xactions as $xaction) { | foreach ($xactions as $xaction) { | ||||
$result = $xaction['new']; | $result = $xaction['new']; | ||||
} | } | ||||
return !strlen($result); | return !phutil_nonempty_string($result); | ||||
} | } | ||||
final protected function newError($title, $message, $xaction = null) { | final protected function newError($title, $message, $xaction = null) { | ||||
return new PhabricatorApplicationTransactionValidationError( | return new PhabricatorApplicationTransactionValidationError( | ||||
PhabricatorProfileMenuItemConfigurationTransaction::TYPE_PROPERTY, | PhabricatorProfileMenuItemConfigurationTransaction::TYPE_PROPERTY, | ||||
$title, | $title, | ||||
$message, | $message, | ||||
$xaction); | $xaction); | ||||
Show All 30 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