| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| 1 | <?php |
||
| 46 | public function StaffFolderCacheKey() |
||
| 47 | { |
||
| 48 | $start = isset($_GET['start']) ? (int) (Convert::raw2sql($_GET['start'])) : 0; |
||
| 49 | |||
| 50 | return implode('_', array( |
||
| 51 | 'StaffFolders', |
||
| 52 | $this->Locale, |
||
| 53 | $this->AllChildren()->max('LastEdited'), |
||
| 54 | '_', |
||
| 55 | $this->ID, |
||
| 56 | '_', |
||
| 57 | $this->LastEdited, |
||
| 58 | '_', |
||
| 59 | $start, |
||
| 60 | ) |
||
| 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.