| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | public function isPluginUninstallOperation(OperationInterface $operation) |
||
| 23 | { |
||
| 24 | if (!$operation instanceof \Composer\DependencyResolver\Operation\UninstallOperation) { |
||
| 25 | return false; |
||
| 26 | } |
||
| 27 | |||
| 28 | $package = $operation->getPackage(); |
||
| 29 | |||
| 30 | return $this->packageAnalyser->isPluginPackage($package) |
||
| 31 | && $this->packageAnalyser->ownsNamespace($package, __NAMESPACE__); |
||
| 32 | } |
||
| 34 |