@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | { |
327 | 327 | $codingStandardPackages = array_filter( |
328 | 328 | $this->composer->getRepositoryManager()->getLocalRepository()->getPackages(), |
329 | - function (PackageInterface $package) { |
|
329 | + function(PackageInterface $package) { |
|
330 | 330 | if ($package instanceof AliasPackage) { |
331 | 331 | return false; |
332 | 332 | } |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | } |
335 | 335 | ); |
336 | 336 | |
337 | - if (! $this->composer->getPackage() instanceof RootpackageInterface |
|
337 | + if (!$this->composer->getPackage() instanceof RootpackageInterface |
|
338 | 338 | && $this->composer->getPackage()->getType() === self::PACKAGE_TYPE |
339 | 339 | ) { |
340 | 340 | $codingStandardPackages[] = $this->composer->getPackage(); |
@@ -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(); |