Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/query/PhabricatorFulltextToken.php
| Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | if ($this->getIsShort()) { | ||||
| $tip = pht('Ignored Common Word'); | $tip = pht('Ignored Common Word'); | ||||
| } else { | } else { | ||||
| $operator = $token->getOperator(); | $operator = $token->getOperator(); | ||||
| switch ($operator) { | switch ($operator) { | ||||
| case PhutilSearchQueryCompiler::OPERATOR_NOT: | case PhutilSearchQueryCompiler::OPERATOR_NOT: | ||||
| $shade = PHUITagView::COLOR_RED; | $shade = PHUITagView::COLOR_RED; | ||||
| $icon = 'fa-minus'; | $icon = 'fa-minus'; | ||||
| break; | break; | ||||
| case PhutilSearchQueryCompiler::OPERATOR_SUBSTRING: | |||||
| $tip = pht('Substring Search'); | |||||
| $shade = PHUITagView::COLOR_VIOLET; | |||||
| break; | |||||
| default: | default: | ||||
| $shade = PHUITagView::COLOR_BLUE; | $shade = PHUITagView::COLOR_BLUE; | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| $tag = id(new PHUITagView()) | $tag = id(new PHUITagView()) | ||||
| ->setType(PHUITagView::TYPE_SHADE) | ->setType(PHUITagView::TYPE_SHADE) | ||||
| Show All 22 Lines | |||||