| Total Complexity | 6 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class SearchFilter implements FilterInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The default HTML name attribute to be used on the search input. |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $defName = 'adminlteSearch'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The default HTML method attribute to be used on the search input. |
||
| 19 | * |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $defMethod = 'get'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Transforms a menu item. Makes the proper configuration for a search bar |
||
| 26 | * item. |
||
| 27 | * |
||
| 28 | * @param array $item A menu item |
||
| 29 | * @return array |
||
| 30 | */ |
||
| 31 | 54 | public function transform($item) |
|
| 60 |