| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function scaffoldSearchField($title = null) |
||
| 42 | { |
||
| 43 | $anyText = _t('FalseIsLeftTrueIsRightDBField.ANY', 'Any'); |
||
| 44 | $source = array( |
||
| 45 | 0 => _t('FalseIsLeftTrueIsRightDBField.NOANSWER', 'Left'), |
||
| 46 | 1 => _t('FalseIsLeftTrueIsRightDBField.YESANSWER', 'Right') |
||
| 47 | ); |
||
| 48 | |||
| 49 | $field = new DropdownField($this->name, $title, $source); |
||
| 50 | $field->setEmptyString("($anyText)"); |
||
| 51 | |||
| 52 | return $field; |
||
| 53 | } |
||
| 54 | } |
||
| 55 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.