Conditions | 2 |
Paths | 2 |
Total Lines | 24 |
Code Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | public function getExportFields() |
||
38 | { |
||
39 | if ($this->modelClass == 'Location') { |
||
40 | return array( |
||
41 | 'Title' => 'Name', |
||
42 | 'Address' => 'Address', |
||
43 | 'Suburb' => 'City', |
||
44 | 'State' => 'State', |
||
45 | 'Postcode' => 'Postcode', |
||
46 | 'Country' => 'Country', |
||
47 | 'Website' => 'Website', |
||
48 | 'Phone' => 'Phone', |
||
49 | 'Fax' => 'Fax', |
||
50 | 'Email' => 'Email', |
||
51 | 'Category.Name' => 'Category', |
||
52 | 'ShowInLocator' => 'ShowInLocator', |
||
53 | 'Featured' => 'Featured', |
||
54 | 'Lat' => 'Lat', |
||
55 | 'Lng' => 'Lng', |
||
56 | ); |
||
57 | } |
||
58 | |||
59 | return parent::getExportFields(); |
||
60 | } |
||
61 | |||
79 |
This check marks private properties in classes that are never used. Those properties can be removed.