code: public function install(InstalledRepositoryInterface $repo, PackageInterface $package)
      {
          if (!$repo->hasPackage($package)) {
              $repo->addPackage(clone $package);
          }
      }
docs: {@inheritDoc}