civictechro/website-alba-iulia-smart-city

View on GitHub
site/web/app/themes/smart-city/app/controllers/Proiect.php

Summary

Maintainability
B
5 hrs
Test Coverage

Proiect has 34 functions (exceeds 20 allowed). Consider refactoring.
Open

class Proiect extends Controller {
  public static function verticala(): string {
    return get_field('verticala')[0]->post_title;
  }

Severity: Minor
Found in site/web/app/themes/smart-city/app/controllers/Proiect.php - About 4 hrs to fix

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

      public static function etape(): array {
        $statuses = get_posts(array(
          'post_type' => \AppConstants::POST_TYPE_PROJECT_STATUS,
          'posts_per_page' => 10,
        ));
    Severity: Minor
    Found in site/web/app/themes/smart-city/app/controllers/Proiect.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status