1 | <?php |
||
14 | abstract class AbstractPackageInstaller { |
||
15 | |||
16 | /** @var ServiceContainer */ |
||
17 | protected $service; |
||
18 | |||
19 | /** @var EventDispatcher */ |
||
20 | protected $dispatcher; |
||
21 | |||
22 | public function __construct(ServiceContainer $service) { |
||
26 | |||
27 | /** |
||
28 | * Installs a package |
||
29 | * |
||
30 | * @param IOInterface $io the IOInterface |
||
31 | * @param string $packageName |
||
32 | * @throws MissingOptionsException when required parameters for the package are missing |
||
33 | */ |
||
34 | abstract public function install(IOInterface $io, $packageName); |
||
35 | |||
36 | abstract public function update(IOInterface $io, $packageName, $from, $to); |
||
37 | |||
38 | abstract public function uninstall(IOInterface $io, $packageName); |
||
39 | |||
40 | protected function updatePackage(Package &$model, KeekoPackageSchema $pkg) { |
||
55 | |||
56 | protected function getPackageSchema($packageName) { |
||
59 | |||
60 | protected function updateExtensions(Package &$model, KeekoPackageSchema $pkg) { |
||
72 | } |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.