PHPColibri/framework

View on GitHub
Database/Model.php

Summary

Maintainability
C
1 day
Test Coverage

Model has 36 functions (exceeds 20 allowed). Consider refactoring.
Open

abstract class Model
{
    const NEW_OBJECT = -1;

    /** @var string */
Severity: Minor
Found in Database/Model.php - About 4 hrs to fix

    File Model.php has 285 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    namespace Colibri\Database;
    
    use Carbon\Carbon;
    use Colibri\Database\Exception\NotFoundException;
    Severity: Minor
    Found in Database/Model.php - About 2 hrs to fix

      Avoid too many return statements within this method.
      Open

                      return $value;
      Severity: Major
      Found in Database/Model.php - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status