1 | <?php |
||
17 | final class LintPlugin implements PluginInterface, EventSubscriberInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var Composer |
||
21 | */ |
||
22 | private $composer; |
||
23 | |||
24 | /** |
||
25 | * @var IOInterface |
||
26 | */ |
||
27 | private $io; |
||
28 | |||
29 | /** |
||
30 | * @var Linter |
||
31 | */ |
||
32 | private $linter; |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function activate(Composer $composer, IOInterface $io) |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function deactivate(Composer $composer, IOInterface $io) |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function uninstall(Composer $composer, IOInterface $io) |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public static function getSubscribedEvents() |
||
70 | |||
71 | /** |
||
72 | * @return bool true if no violation, false otherwise |
||
73 | */ |
||
74 | public function command(CommandEvent $event) |
||
92 | } |
||
93 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.