public function setupPhpCodeSniffer()
    {
        $root_path = ProjectX::projectRoot();

        $this->taskWriteToFile("{$root_path}/phpcs.xml.dist")
            ->text($this->loadTemplateContents('phpcs.xml.dist'))
            ->place('PROJECT_ROOT', $this->getInstallRoot())
            ->run();

        $this->composer->addRequires([
            'squizlabs/php_codesniffer' => static::PHPCS_VERSION,
        ], true);

        return $this;
    }