@@ -374,7 +374,7 @@ |
||
374 | 374 | /** |
375 | 375 | * Simple check if PHP_CodeSniffer is installed. |
376 | 376 | * |
377 | - * @param null|string|\Composer\Semver\Constraint\ConstraintInterface $versionConstraint to match against |
|
377 | + * @param string $versionConstraint to match against |
|
378 | 378 | * |
379 | 379 | * @return bool Whether PHP_CodeSniffer is installed |
380 | 380 | */ |
@@ -279,8 +279,8 @@ |
||
279 | 279 | $searchPaths = array($cwd); |
280 | 280 | $codingStandardPackages = $this->getPHPCodingStandardPackages(); |
281 | 281 | foreach ($codingStandardPackages as $package) { |
282 | - $installPath = $this->composer->getInstallationManager()->getInstallPath($package); |
|
283 | - $searchPaths[] = $fileSystem->isAbsolutePath($installPath) ? $installPath : ($cwd . DIRECTORY_SEPARATOR . $installPath); |
|
282 | + $installPath = $this->composer->getInstallationManager()->getInstallPath($package); |
|
283 | + $searchPaths[] = $fileSystem->isAbsolutePath($installPath) ? $installPath : ($cwd . DIRECTORY_SEPARATOR . $installPath); |
|
284 | 284 | } |
285 | 285 | |
286 | 286 | $finder = new Finder(); |