civictechro/fiipregatit.ro

View on GitHub
site/web/app/themes/sage/lib/Algolia/IndexCustomFields.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method get has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    final public static function get(
      WP_Post $post,
      array $attributes = array()
    ): IndexCustomFields {
      switch ($post->post_type) {
Severity: Minor
Found in site/web/app/themes/sage/lib/Algolia/IndexCustomFields.php - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

              return new AboutIndexCustomFields(
                $attributes,
                \CustomPageManager::getAboutPage()->getPage()
              );
    Severity: Major
    Found in site/web/app/themes/sage/lib/Algolia/IndexCustomFields.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

            return new NoOpIndexCustomFields($attributes);
      Severity: Major
      Found in site/web/app/themes/sage/lib/Algolia/IndexCustomFields.php - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status