<commit_before><?php

/*
 * TODO add file header and class description
 */

namespace Goatherd\Phpcs;

use Composer\Package\PackageInterface;

use Composer\Installer\LibraryInstaller;

class Installer extends LibraryInstaller
{
    /**
     * {@inheritDoc}
     */
    public function getInstallPath(PackageInterface $package)
    {
        // fix package name to denote single directory
        $name = str_replace(array('/', '\\'), '-', $package->getPrettyName());
        return $this->vendorDir . 'squizlabs/php_codesniffer/CodeSniffer/Standards/' . $name;
    }

    /**
     * {@inheritDoc}
     */
    public function supports($packageType)
    {
        return 'phpcs-standard' === $packageType;
    }
}<commit_msg>Add missing slash to installPath.<commit_after><?php

/*
 * TODO add file header and class description
 */

namespace Goatherd\Phpcs;

use Composer\Package\PackageInterface;

use Composer\Installer\LibraryInstaller;

class Installer extends LibraryInstaller
{
    /**
     * {@inheritDoc}
     */
    public function getInstallPath(PackageInterface $package)
    {
        // fix package name to denote single directory
        $name = str_replace(array('/', '\\'), '-', $package->getPrettyName());
        return $this->vendorDir . '/squizlabs/php_codesniffer/CodeSniffer/Standards/' . $name;
    }

    /**
     * {@inheritDoc}
     */
    public function supports($packageType)
    {
        return 'phpcs-standard' === $packageType;
    }
}
{'fraction_non_alphanumeric': 0.13224267211997273, 'fraction_numerical': 0.0, 'mean_word_length': 2.935656836461126, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '94153', 'n_tokens_mistral': 435, 'n_tokens_neox': 428, 'n_words': 92}