1 | <?php |
||
14 | class ComposerUpdateExtension extends DataExtension |
||
15 | { |
||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $jobName = 'CheckComposerUpdatesJob'; |
||
20 | |||
21 | private static $db = [ |
||
|
|||
22 | 'VersionHash' => 'Varchar', |
||
23 | 'VersionConstraint' => 'Varchar(50)', |
||
24 | 'AvailableVersion' => 'Varchar(50)', |
||
25 | 'AvailableHash' => 'Varchar(50)', |
||
26 | 'LatestVersion' => 'Varchar(50)', |
||
27 | 'LatestHash' => 'Varchar(50)', |
||
28 | ]; |
||
29 | |||
30 | private static $summary_fields = [ |
||
31 | 'AvailableVersion' => 'Available', |
||
32 | 'LatestVersion' => 'Latest', |
||
33 | ]; |
||
34 | |||
35 | /** |
||
36 | * Automatically schedule a self update job on dev/build |
||
37 | */ |
||
38 | public function requireDefaultRecords() |
||
43 | |||
44 | /** |
||
45 | * If the available version is the same as the current version then return nothing, otherwise show the latest |
||
46 | * available version |
||
47 | * |
||
48 | * @return string |
||
49 | */ |
||
50 | public function getAvailableVersion() |
||
57 | |||
58 | /** |
||
59 | * Return the name of the related job |
||
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | public function getJobName() |
||
67 | } |
||
68 |
This check marks private properties in classes that are never used. Those properties can be removed.