biurad/php-monorepo

View on GitHub
src/Config.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method __construct has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function __construct(string $rootPath, string $cachePath = null, bool $reclone)
    {
        if (!\file_exists($configFile = ($this->config['path'] = $rootPath).'/.monorepo')) {
            throw new \RuntimeException(\sprintf('Config file "%s" does not exist.', $configFile));
        }
Severity: Major
Found in src/Config.php - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status