madbob/GASdottoNG

View on GitHub
code/app/Formatters/Order.php

Summary

Maintainability
B
4 hrs
Test Coverage

Method formattableColumns has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function formattableColumns($type = null)
    {
        $ret = [
            'name' => (object) [
                'name' => _i('Nome Prodotto'),
Severity: Minor
Found in code/app/Formatters/Order.php - About 2 hrs to fix

    Avoid too many return statements within this method.
    Open

            return $ret;
    Severity: Major
    Found in code/app/Formatters/Order.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                          return printablePrice($product->getPrice());
      Severity: Major
      Found in code/app/Formatters/Order.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                            return printablePrice($summary->variant->unitPrice());
        Severity: Major
        Found in code/app/Formatters/Order.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                              return $product->pivot->notes;
          Severity: Major
          Found in code/app/Formatters/Order.php - About 30 mins to fix

            There are no issues that match your filters.

            Category
            Status