VIPnytt/RobotsTxtParser

View on GitHub
src/Client/Cache/MySQL/Base.php

Summary

Maintainability
A
3 hrs
Test Coverage
B
82%

Method refresh has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function refresh()
    {
        $client = new UriClient($this->base, $this->curlOptions, $this->byteLimit);
        $effective = $client->getEffectiveUri();
        if ($effective == $this->base) {
Severity: Minor
Found in src/Client/Cache/MySQL/Base.php - About 1 hr to fix

    Method client has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function client()
        {
            $query = $this->pdo->prepare(<<<SQL
    SELECT
      content,
    Severity: Minor
    Found in src/Client/Cache/MySQL/Base.php - About 1 hr to fix

      Method displacePush has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private function displacePush($nextUpdate)
          {
              $query = $this->pdo->prepare(<<<SQL
      SELECT
        validUntil,
      Severity: Minor
      Found in src/Client/Cache/MySQL/Base.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status