| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 47 | public function getNextAppleFinderQuery() { |
||
| 48 | $db = $this->getDataSource(); |
||
| 49 | |||
| 50 | return $db->buildStatement( |
||
| 51 | array( |
||
| 52 | 'fields' => $db->fields($this, 'NextApple', array('id', 'apple_id', 'name', 'color', 'created', 'modified')), |
||
| 53 | 'alias' => 'NextApple', |
||
| 54 | 'table' => $db->fullTableName($this), |
||
| 55 | 'conditions' => array( |
||
| 56 | 'id >' => '{$__cakeID__$}', |
||
| 57 | ), |
||
| 58 | 'limit' => 1, |
||
| 59 | ), |
||
| 60 | $this |
||
| 61 | ); |
||
| 62 | } |
||
| 63 | } |
||
| 64 |
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.