swaggest/php-json-schema

View on GitHub
src/JsonSchema.php

Summary

Maintainability
A
0 mins
Test Coverage

Method setUpProperties has 130 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

    public static function setUpProperties($properties, JsonBasicSchema $ownerSchema)
    {
        $properties->id = JsonBasicSchema::string();
        $properties->id->format = 'uri';
        $properties->schema = JsonBasicSchema::string();
Severity: Major
Found in src/JsonSchema.php - About 5 hrs to fix

    File JsonSchema.php has 360 lines of code (exceeds 250 allowed). Consider refactoring.
    Wontfix

    <?php
    /**
     * @file ATTENTION!!! The code below was carefully crafted by a mean machine.
     * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy.
     */
    Severity: Minor
    Found in src/JsonSchema.php - About 4 hrs to fix

      JsonSchema has 35 functions (exceeds 20 allowed). Consider refactoring.
      Wontfix

      class JsonSchema extends ClassStructure
      {
          const _ARRAY = 'array';
      
          const BOOLEAN = 'boolean';
      Severity: Minor
      Found in src/JsonSchema.php - About 4 hrs to fix

        There are no issues that match your filters.

        Category
        Status