getValueControlType()) { case self::CONTROL_TYPE_TOKENIZER: $phids = $value; break; case self::CONTROL_TYPE_TEXT: case self::CONTROL_TYPE_SELECT: case self::CONTROL_TYPE_NONE: default: if (phid_get_type($value) != PhabricatorPHIDConstants::PHID_TYPE_UNKNOWN) { $phids = array($value); } else { $phids = array(); } break; } return $phids; } /** * Return true if the given value creates a rule with a meaningful effect. * An example of a rule with no meaningful effect is a "users" rule with no * users specified. * * @return bool True if the value creates a meaningful rule. */ public function ruleHasEffect($value) { return true; } }