Total Complexity | 1 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
28 | class TeamChanged extends DataObject implements TestOnly |
||
29 | { |
||
30 | |||
31 | private static $db = [ |
||
1 ignored issue
–
show
|
|||
32 | 'Title' => 'Varchar', |
||
33 | 'Price' => 'Currency' |
||
34 | ]; |
||
35 | |||
36 | private static $has_one = [ |
||
1 ignored issue
–
show
|
|||
37 | "Captain" => Player::class, |
||
38 | 'HasOneRelationship' => Player::class, |
||
39 | ]; |
||
40 | |||
41 | private static $has_many = [ |
||
1 ignored issue
–
show
|
|||
42 | 'SubTeams' => SubTeam::class, |
||
43 | 'Comments' => TeamComment::class |
||
44 | ]; |
||
45 | |||
46 | private static $many_many = [ |
||
1 ignored issue
–
show
|
|||
47 | 'Players' => Player::class, |
||
48 | 'SecondarySubTeams' => SubTeam::class, |
||
49 | ]; |
||
50 | |||
51 | public function SecondarySubTeams() |
||
56 |
This check marks private properties in classes that are never used. Those properties can be removed.