1 | <?php |
||
20 | final class VersionsCheckPlugin implements PluginInterface, EventSubscriberInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var Composer |
||
24 | */ |
||
25 | private $composer; |
||
26 | |||
27 | /** |
||
28 | * @var IOInterface |
||
29 | */ |
||
30 | private $io; |
||
31 | |||
32 | /** |
||
33 | * @var VersionsCheck |
||
34 | */ |
||
35 | private $versionsCheck; |
||
36 | |||
37 | /** |
||
38 | * @var bool |
||
39 | */ |
||
40 | private $preferLowest; |
||
41 | |||
42 | /** |
||
43 | * @var array |
||
44 | */ |
||
45 | private $options = array(); |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function activate(Composer $composer, IOInterface $io) |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | public static function getSubscribedEvents() |
||
72 | |||
73 | /** |
||
74 | * @param CommandEvent $event |
||
75 | */ |
||
76 | public function command(CommandEvent $event) |
||
81 | |||
82 | /** |
||
83 | * @param Event $event |
||
84 | */ |
||
85 | public function postUpdate(Event $event) |
||
93 | |||
94 | /** |
||
95 | * Tries to get plugin options and resolves them. |
||
96 | * |
||
97 | * @return array |
||
98 | */ |
||
99 | private function resolveOptions() |
||
118 | |||
119 | /** |
||
120 | * @param RepositoryManager $repositoryManager |
||
121 | * @param RootPackageInterface $rootPackage |
||
122 | */ |
||
123 | private function checkVersions(RepositoryManager $repositoryManager, RootPackageInterface $rootPackage) |
||
135 | } |
||
136 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.