private static function execute(string $directory): \Generator
    {
        try
        {
            $process = new Process(
                \sprintf(
                    'find %s -name \'*.php\' \( -exec sha1sum "$PWD"/{} \; -o -print \) | sha1sum',
                    $directory
                )
            );

            /** @psalm-suppress TooManyTemplateParams Wrong Promise template */
            yield $process->start();

            /**
             * @psalm-suppress TooManyTemplateParams Wrong Promise template
             *
             * @var string $bufferContent
             */
            $bufferContent = yield buffer($process->getStdout());

            return $bufferContent;
        }
        // @codeCoverageIgnoreStart
        catch (\Throwable $throwable)
        {
            return '';
        }
        // @codeCoverageIgnoreEnd
    }
private static function execute(string $directory): \Generator
    {
        try
        {
            $process = new Process(
                \sprintf(
                    'find %s -name \'*.php\' \( -exec sha1sum "$PWD"/{} \; -o -print \) | sha1sum',
                    $directory
                )
            );

            /** @psalm-suppress TooManyTemplateParams Wrong Promise template */
            yield $process->start();

            /**
             * @psalm-suppress TooManyTemplateParams Wrong Promise template
             *
             * @var string $bufferContent
             */
            $bufferContent = yield buffer($process->getStdout());

            return $bufferContent;
        }
        // @codeCoverageIgnoreStart
        catch (\Throwable $throwable)
        {
            return '';
        }
        // @codeCoverageIgnoreEnd
    }
private static function execute ( string $ directory ) : \ Generator { try { $ process = new Process ( \ sprintf ( 'find %s -name \'*.php\' \( -exec sha1sum "$PWD"/{} \; -o -print \) | sha1sum' , $ directory ) ) ; /** @psalm-suppress TooManyTemplateParams Wrong Promise template */ yield $ process -> start ( ) ; /**
             * @psalm-suppress TooManyTemplateParams Wrong Promise template
             *
             * @var string $bufferContent
             */ $ bufferContent = yield buffer ( $ process -> getStdout ( ) ) ; return $ bufferContent ; } // @codeCoverageIgnoreStart catch ( \ Throwable $ throwable ) { return '' ; } // @codeCoverageIgnoreEnd }
Execute calculate hashes.

@psalm-suppress InvalidReturnType Incorrect resolving the value of the generator

@param string $directory

@return \Generator<string>
Execute calculate hashes .