Yaffs site version 1.1
[yaffs-website] / vendor / drupal / console-core / src / Command / CheckCommand.php
index aab2f38448fedd1279052424402abd3006e3a347..33fd6205edd86df61c9b97b02af0c07c0088e604 100644 (file)
@@ -18,6 +18,7 @@ use Drupal\Console\Core\Style\DrupalStyle;
 
 /**
  * Class CheckCommand
+ *
  * @package Drupal\Console\Core\Command
  */
 class CheckCommand extends BaseCommand
@@ -41,6 +42,7 @@ class CheckCommand extends BaseCommand
 
     /**
      * CheckCommand constructor.
+     *
      * @param RequirementChecker   $requirementChecker
      * @param ChainQueue           $chainQueue
      * @param ConfigurationManager $configurationManager
@@ -77,23 +79,17 @@ class CheckCommand extends BaseCommand
         $checks = $this->requirementChecker->getCheckResult();
         if (!$checks) {
             $phpCheckFile = $this->configurationManager->getHomeDirectory().'/.console/phpcheck.yml';
-            $phpCheckFileDisplay = realpath($this->configurationManager->getHomeDirectory()).'/.console/phpcheck.yml';
 
             if (!file_exists($phpCheckFile)) {
                 $phpCheckFile =
                     $this->configurationManager->getApplicationDirectory().
                     DRUPAL_CONSOLE_CORE.
                     'config/dist/phpcheck.yml';
-
-                $phpCheckFileDisplay =
-                    realpath($this->configurationManager->getApplicationDirectory()).
-                    DRUPAL_CONSOLE_CORE.
-                    'config/dist/phpcheck.yml';
             }
 
             $io->newLine();
             $io->info($this->trans('commands.check.messages.file'));
-            $io->comment($phpCheckFileDisplay);
+            $io->comment($phpCheckFile);
 
             $checks = $this->requirementChecker->validate($phpCheckFile);
         }