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
    }