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