Sha256: a0401febabd97a9499e30e49e96396abfd7cee96b3103b453d6937bbcdcb860b

Contents?: true

Size: 349 Bytes

Versions: 13

Compression:

Stored size: 349 Bytes

Contents

<?php

declare(strict_types=1);

namespace Dependabot\Composer;

use Composer\Package\Locker;

class Hasher
{
    public static function getContentHash(array $args): string
    {
        [$workingDirectory] = $args;

        $config = $workingDirectory . '/composer.json';

        return Locker::getContentHash(file_get_contents($config));
    }
}

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dependabot-composer-0.112.18 helpers/src/Hasher.php
dependabot-composer-0.112.17 helpers/src/Hasher.php
dependabot-composer-0.112.16 helpers/src/Hasher.php
dependabot-composer-0.112.15 helpers/src/Hasher.php
dependabot-composer-0.112.14 helpers/src/Hasher.php
dependabot-composer-0.112.13 helpers/src/Hasher.php
dependabot-composer-0.112.12 helpers/src/Hasher.php
dependabot-composer-0.112.11 helpers/src/Hasher.php
dependabot-composer-0.112.10 helpers/src/Hasher.php
dependabot-composer-0.112.9 helpers/src/Hasher.php
dependabot-composer-0.112.8 helpers/src/Hasher.php
dependabot-composer-0.112.7 helpers/src/Hasher.php
dependabot-composer-0.112.6 helpers/src/Hasher.php