/**
  * @inheritdoc
  * @codeCoverageIgnore
  */
 public function writeConfig()
 {
     $filesystem = new Filesystem();
     try {
         $filesystem->dumpFile($this->settings->getBaseDir() . '/phpmd.xml', $this->twig->render('phpmd.xml.dist', $this->settings->getArrayCopy()));
         $filesystem->dumpFile($this->settings->getBaseDir() . '/phpmd-pre-commit.xml', $this->twig->render('phpmd-pre-commit.xml.dist', $this->settings->getArrayCopy()));
     } catch (IOException $e) {
         $this->output->writeln(sprintf('<error>Could not write phpmd.xml, error: "%s"</error>', $e->getMessage()));
         return;
     }
     $this->output->writeln("\n<info>Config file for PHP Mess Detector written</info>");
 }
 /**
  * Writes config file
  * @codeCoverageIgnore
  */
 public function writeConfig()
 {
     $filesystem = new Filesystem();
     try {
         $filesystem->dumpFile($this->settings->getBaseDir() . '/.jshintrc', $this->twig->render('.jshintrc.dist', $this->settings->getArrayCopy()));
     } catch (IOException $e) {
         $this->output->writeln(sprintf('<error>Could not write .jshintrc, error: "%s"</error>', $e->getMessage()));
         return;
     }
     $this->output->writeln("\n<info>Config file for JSHint written</info>");
 }
 /**
  * Install Behat yaml files.
  *
  * @codeCoverageIgnore
  */
 protected function writeBehatYamlFiles()
 {
     $filesystem = new FileSystem();
     try {
         $filesystem->dumpFile($this->settings->getBaseDir() . '/behat.yml', $this->twig->render('behat.yml.dist', $this->settings->getArrayCopy()));
         $filesystem->dumpFile($this->settings->getBaseDir() . '/behat.dev.yml', $this->twig->render('behat.dev.yml.dist', $this->settings->getArrayCopy()));
     } catch (IOException $e) {
         $this->output->writeln(sprintf('<error>Could not write behat config file, error: "%s"</error>', $e->getMessage()));
         return;
     }
     $this->output->writeln('Behat configuration files are written');
 }