| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | public function columns() |
||
| 18 | { |
||
| 19 | return array( |
||
| 20 | "Query" => array( |
||
| 21 | "title" => "Query", |
||
| 22 | "formatting" => '<a href=\"home/SearchForm?q=$ATT_val($Query)\" target=\"_new\">$Query</a>' |
||
| 23 | ), |
||
| 24 | 'NumResults' => 'Results', |
||
| 25 | 'Quantity' => 'Searches', |
||
| 26 | 'MostRecent' => 'Most Recent', |
||
| 27 | ); |
||
| 28 | } |
||
| 29 | |||
| 44 |
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.