vindi/vindi-woocommerce

View on GitHub
src/controllers/CustomerController.php

Summary

Maintainability
C
1 day
Test Coverage

The class CustomerController has an overall complexity of 53 which is very high. The configured complexity threshold is 50.
Open

class CustomerController
{

  /**
   * @var VindiSettings

Method update has 81 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function update($user_id, $order = null)
  {
    $vindi_customer_id = get_user_meta($user_id, 'vindi_customer_id', true);
    // Check meta Vindi ID
    if (empty($vindi_customer_id)) {
Severity: Major
Found in src/controllers/CustomerController.php - About 3 hrs to fix

    Function update has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
    Open

      function update($user_id, $order = null)
      {
        $vindi_customer_id = get_user_meta($user_id, 'vindi_customer_id', true);
        // Check meta Vindi ID
        if (empty($vindi_customer_id)) {
    Severity: Minor
    Found in src/controllers/CustomerController.php - About 2 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Method create has 61 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function create($user_id, $order = null)
      {
    
        $customer = new WC_Customer($user_id);
    
    
    Severity: Major
    Found in src/controllers/CustomerController.php - About 2 hrs to fix

      Function create has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
      Open

        function create($user_id, $order = null)
        {
      
          $customer = new WC_Customer($user_id);
      
      
      Severity: Minor
      Found in src/controllers/CustomerController.php - About 1 hr to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      The method update() has an NPath complexity of 3538944. The configured NPath complexity threshold is 200.
      Open

        function update($user_id, $order = null)
        {
          $vindi_customer_id = get_user_meta($user_id, 'vindi_customer_id', true);
          // Check meta Vindi ID
          if (empty($vindi_customer_id)) {

      NPathComplexity

      Since: 0.1

      The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

      Example

      class Foo {
          function bar() {
              // lots of complicated code
          }
      }

      Source https://phpmd.org/rules/codesize.html#npathcomplexity

      The method create() has an NPath complexity of 589824. The configured NPath complexity threshold is 200.
      Open

        function create($user_id, $order = null)
        {
      
          $customer = new WC_Customer($user_id);
      
      

      NPathComplexity

      Since: 0.1

      The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

      Example

      class Foo {
          function bar() {
              // lots of complicated code
          }
      }

      Source https://phpmd.org/rules/codesize.html#npathcomplexity

      The method create() has a Cyclomatic Complexity of 23. The configured cyclomatic complexity threshold is 10.
      Open

        function create($user_id, $order = null)
        {
      
          $customer = new WC_Customer($user_id);
      
      

      CyclomaticComplexity

      Since: 0.1

      Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

      Example

      // Cyclomatic Complexity = 11
      class Foo {
      1   public function example() {
      2       if ($a == $b) {
      3           if ($a1 == $b1) {
                      fiddle();
      4           } elseif ($a2 == $b2) {
                      fiddle();
                  } else {
                      fiddle();
                  }
      5       } elseif ($c == $d) {
      6           while ($c == $d) {
                      fiddle();
                  }
      7        } elseif ($e == $f) {
      8           for ($n = 0; $n < $h; $n++) {
                      fiddle();
                  }
              } else {
                  switch ($z) {
      9               case 1:
                          fiddle();
                          break;
      10              case 2:
                          fiddle();
                          break;
      11              case 3:
                          fiddle();
                          break;
                      default:
                          fiddle();
                          break;
                  }
              }
          }
      }

      Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

      The method update() has a Cyclomatic Complexity of 26. The configured cyclomatic complexity threshold is 10.
      Open

        function update($user_id, $order = null)
        {
          $vindi_customer_id = get_user_meta($user_id, 'vindi_customer_id', true);
          // Check meta Vindi ID
          if (empty($vindi_customer_id)) {

      CyclomaticComplexity

      Since: 0.1

      Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

      Example

      // Cyclomatic Complexity = 11
      class Foo {
      1   public function example() {
      2       if ($a == $b) {
      3           if ($a1 == $b1) {
                      fiddle();
      4           } elseif ($a2 == $b2) {
                      fiddle();
                  } else {
                      fiddle();
                  }
      5       } elseif ($c == $d) {
      6           while ($c == $d) {
                      fiddle();
                  }
      7        } elseif ($e == $f) {
      8           for ($n = 0; $n < $h; $n++) {
                      fiddle();
                  }
              } else {
                  switch ($z) {
      9               case 1:
                          fiddle();
                          break;
      10              case 2:
                          fiddle();
                          break;
      11              case 3:
                          fiddle();
                          break;
                      default:
                          fiddle();
                          break;
                  }
              }
          }
      }

      Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

      The method update uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
      Open

            } else {
              // Pessoa física
              $cpf_or_cnpj = $order->get_meta('_billing_cpf');
              $this->vindi_settings->logger->log(sprintf('Order cpf -> %s', $cpf_or_cnpj));
              $this->vindi_settings->logger->log(sprintf('Customer cpf -> %s', $customer->get_meta('billing_cpf')));

      ElseExpression

      Since: 1.4.0

      An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

      Example

      class Foo
      {
          public function bar($flag)
          {
              if ($flag) {
                  // one branch
              } else {
                  // another branch
              }
          }
      }

      Source https://phpmd.org/rules/cleancode.html#elseexpression

      The method create uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
      Open

            } else {
              // Pessoa física
              $cpf_or_cnpj = $order->get_meta('_billing_cpf');
              $notes = '';
      
      

      ElseExpression

      Since: 1.4.0

      An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

      Example

      class Foo
      {
          public function bar($flag)
          {
              if ($flag) {
                  // one branch
              } else {
                  // another branch
              }
          }
      }

      Source https://phpmd.org/rules/cleancode.html#elseexpression

      The property $vindi_settings is not named in camelCase.
      Open

      class CustomerController
      {
      
        /**
         * @var VindiSettings

      CamelCasePropertyName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name attributes.

      Example

      class ClassName {
          protected $property_name;
      }

      Source

      Visibility must be declared on method "delete"
      Open

        function delete($user_id)

      Visibility must be declared on method "update"
      Open

        function update($user_id, $order = null)

      Visibility must be declared on method "create"
      Open

        function create($user_id, $order = null)

      Blank line found at start of control structure
      Open

          if (!$vindiUser) {

      Blank line found at start of control structure
      Open

          if (empty($vindi_customer_id)) {

      Blank line found at start of control structure
      Open

          if (!$vindiUser) {

      Blank line found at start of control structure
      Open

          if (empty($vindi_customer_id)) {

      Visibility must be declared on method "__construct"
      Open

        function __construct(VindiSettings $vindi_settings)

      Line exceeds 120 characters; contains 125 characters
      Open

                'neighborhood' => ($customer->get_meta('billing_neighborhood')) ? $customer->get_meta('billing_neighborhood') : '',

      Line exceeds 120 characters; contains 125 characters
      Open

                'neighborhood' => ($customer->get_meta('billing_neighborhood')) ? $customer->get_meta('billing_neighborhood') : '',

      Line indented incorrectly; expected at least 16 spaces, found 8
      Open

              $notes = '';

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          $phones = $vindi_phones = [];

      Line indented incorrectly; expected 8 spaces, found 4
      Open

          if ($customer->get_meta('billing_cellphone')) {

      Line indented incorrectly; expected at least 16 spaces, found 8
      Open

              $name = $order->get_billing_company();

      Line indented incorrectly; expected at least 20 spaces, found 10
      Open

                $metadata['carteira_de_identidade'] = $order->get_meta('_billing_rg');

      Line indented incorrectly; expected at least 16 spaces, found 8
      Open

              $this->vindi_settings->logger->log(sprintf('Order rg -> %s', $order->get_meta('_billing_rg')));

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          add_action('delete_user', array($this, 'delete'), 10, 1);

      Line indented incorrectly; expected 8 spaces, found 4
      Open

          }

      Line indented incorrectly; expected 8 spaces, found 4
      Open

          if ($order && method_exists($order, 'needs_payment')) {

      Line indented incorrectly; expected 16 spaces, found 8
      Open

              if ($this->vindi_settings->send_nfe_information()) {

      Multi-line function call not indented correctly; expected 8 spaces but found 6
      Open

            )

      Line indented incorrectly; expected at least 10 spaces, found 4
      Open

          );

      Line indented incorrectly; expected 8 spaces, found 4
      Open

          }

      Line indented incorrectly; expected at least 12 spaces, found 6
      Open

            return $this->create($user_id);

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          $cpf_or_cnpj = null;

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          $vindiUser = $this->routes->findCustomerById($vindi_customer_id);

      Line indented incorrectly; expected at least 8 spaces, found 6
      Open

            $vindi_customer_id

      Line indented incorrectly; expected 4 spaces, found 2
      Open

        function __construct(VindiSettings $vindi_settings)

      Line indented incorrectly; expected at least 4 spaces, found 2
      Open

        {

      Line indented incorrectly; expected 8 spaces, found 4
      Open

          if ($customer->get_meta('billing_cellphone')) {

      Line indented incorrectly; expected at least 4 spaces, found 2
      Open

        {

      Line indented incorrectly; expected at least 16 spaces, found 6
      Open

            $phones[] = $landline;

      Line indented incorrectly; expected 12 spaces, found 6
      Open

            }

      Line indented incorrectly; expected at least 12 spaces, found 6
      Open

            return;

      Line indented incorrectly; expected 4 spaces, found 2
      Open

        private $vindi_settings;

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          $user = $customer->get_data();

      Line indented incorrectly; expected at least 12 spaces, found 6
      Open

            $phones[] = array(

      Line indented incorrectly; expected 8 spaces, found 4
      Open

          }

      Line indented incorrectly; expected 12 spaces, found 6
      Open

            if ('2' === $order->get_meta('_billing_persontype')) {

      Line indented incorrectly; expected 8 spaces, found 4
      Open

          }

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          $this->routes = $vindi_settings->routes;

      Line indented incorrectly; expected 4 spaces, found 2
      Open

        }

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          $cpf_or_cnpj = null;

      Line indented incorrectly; expected at least 12 spaces, found 8
      Open

              'phone_type' => 'landline',

      Line indented incorrectly; expected at least 12 spaces, found 6
      Open

            $vindi_phones[$phone['phone_type']] = $phone['id'];

      Line indented incorrectly; expected 16 spaces, found 8
      Open

              if ($this->vindi_settings->send_nfe_information()) {

      Line indented incorrectly; expected at least 16 spaces, found 8
      Open

              $cpf_or_cnpj = $order->get_meta('_billing_cpf');

      Line indented incorrectly; expected 16 spaces, found 8
      Open

              if ($this->vindi_settings->send_nfe_information()) {

      Line indented incorrectly; expected at least 10 spaces, found 4
      Open

          );

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          add_action('woocommerce_save_account_details', array($this, 'update'), 10, 1);

      Line indented incorrectly; expected at least 12 spaces, found 8
      Open

              'number' => preg_replace('/\D+/', '', '55' . $customer->get_billing_phone())

      Line indented incorrectly; expected at least 16 spaces, found 8
      Open

              $notes = sprintf('Nome: %s %s', $order->get_billing_first_name(), $order->get_billing_last_name());

      Multi-line function call not indented correctly; expected 8 spaces but found 6
      Open

            array(

      Line indented incorrectly; expected at least 16 spaces, found 6
      Open

            );

      Line indented incorrectly; expected at least 16 spaces, found 8
      Open

              $notes = '';

      Line indented incorrectly; expected at least 16 spaces, found 8
      Open

              $name = $order->get_billing_company();

      Line indented incorrectly; expected 12 spaces, found 6
      Open

            }

      Line indented incorrectly; expected at least 8 spaces, found 6
      Open

            array(

      Line indented incorrectly; expected 8 spaces, found 4
      Open

          foreach ($vindiUser['phones'] as $phone) {

      Line indented incorrectly; expected at least 16 spaces, found 8
      Open

              $this->vindi_settings->logger->log(sprintf('Order cpf -> %s', $cpf_or_cnpj));

      Multi-line function call not indented correctly; expected 8 spaces but found 6
      Open

            array(

      Line indented incorrectly; expected 8 spaces, found 4
      Open

          if (!$vindiUser) {

      Line indented incorrectly; expected at least 10 spaces, found 4
      Open

          return $deletedUser;

      Line indented incorrectly; expected at least 12 spaces, found 8
      Open

              'phone_type' => 'mobile',

      Line indented incorrectly; expected at least 16 spaces, found 6
      Open

            );

      Line indented incorrectly; expected 12 spaces, found 6
      Open

            if ('2' === $order->get_meta('_billing_persontype')) {

      Line indented incorrectly; expected 4 spaces, found 2
      Open

        function update($user_id, $order = null)

      Line indented incorrectly; expected 8 spaces, found 4
      Open

          if (!$vindiUser) {

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          $user = $customer->get_data();

      Line indented incorrectly; expected 8 spaces, found 4
      Open

          if ($customer->get_billing_phone()) {

      Line indented incorrectly; expected 12 spaces, found 6
      Open

            } else {

      Line indented incorrectly; expected 16 spaces, found 8
      Open

              }

      Line indented incorrectly; expected 8 spaces, found 4
      Open

          }

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          $updatedUser = $this->routes->updateCustomer(

      Multi-line function call not indented correctly; expected 8 spaces but found 6
      Open

            $vindi_customer_id,

      Multi-line function call not indented correctly; expected 8 spaces but found 6
      Open

            )

      Line indented incorrectly; expected 4 spaces, found 2
      Open

        function delete($user_id)

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          $vindi_customer_id = get_user_meta($user_id, 'vindi_customer_id', true);

      Line indented incorrectly; expected 4 spaces, found 2
      Open

        private $routes;

      Line indented incorrectly; expected at least 12 spaces, found 6
      Open

            $phones[] = array(

      Line indented incorrectly; expected 8 spaces, found 4
      Open

          if ($customer->get_billing_phone()) {

      Line indented incorrectly; expected at least 16 spaces, found 6
      Open

            );

      Line indented incorrectly; expected 16 spaces, found 8
      Open

              }

      Line indented incorrectly; expected 8 spaces, found 4
      Open

          }

      Line indented incorrectly; expected at least 12 spaces, found 6
      Open

            return $this->create($user_id, $order);

      Line indented incorrectly; expected 4 spaces, found 2
      Open

        function create($user_id, $order = null)

      Line indented incorrectly; expected at least 12 spaces, found 6
      Open

            return;

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          $phones = [];

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          $createdUser = $this->routes->createCustomer(

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          $deletedUser = $this->routes->deleteCustomer(

      Line indented incorrectly; expected 4 spaces, found 2
      Open

        }

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          $vindiUser = $this->routes->findCustomerById($vindi_customer_id);

      Line indented incorrectly; expected 8 spaces, found 4
      Open

          if ($order && method_exists($order, 'needs_payment')) {

      Line indented incorrectly; expected 4 spaces, found 2
      Open

        }

      Line indented incorrectly; expected at least 4 spaces, found 2
      Open

        {

      Line indented incorrectly; expected at least 4 spaces, found 2
      Open

        {

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          add_action('woocommerce_customer_save_address', array($this, 'update'), 10, 1);

      Line indented incorrectly; expected 8 spaces, found 4
      Open

          }

      Line indented incorrectly; expected at least 20 spaces, found 10
      Open

                $metadata['inscricao_estadual'] = $order->get_meta('_billing_ie');

      Line indented incorrectly; expected 12 spaces, found 6
      Open

            } else {

      Line indented incorrectly; expected 8 spaces, found 4
      Open

          }

      Line indented incorrectly; expected at least 16 spaces, found 6
      Open

            $phones[] = $mobile;

      Line indented incorrectly; expected 16 spaces, found 8
      Open

              }

      Line indented incorrectly; expected at least 8 spaces, found 6
      Open

            $vindi_customer_id,

      Line indented incorrectly; expected at least 8 spaces, found 6
      Open

            array(

      Line indented incorrectly; expected at least 10 spaces, found 4
      Open

          return $updatedUser;

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          $this->vindi_settings = $vindi_settings;

      Line indented incorrectly; expected 8 spaces, found 4
      Open

          if (empty($vindi_customer_id)) {

      Line indented incorrectly; expected 8 spaces, found 4
      Open

          }

      Line indented incorrectly; expected at least 12 spaces, found 8
      Open

              'number' => preg_replace('/\D+/', '', '55' . $customer->get_billing_phone())

      Line indented incorrectly; expected at least 16 spaces, found 6
      Open

            );

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          $name = (!$user['first_name']) ? $user['display_name'] : $user['first_name'] . ' ' . $user['last_name'];

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          $notes = null;

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          $notes = null;

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          $metadata = null;

      Line indented incorrectly; expected at least 16 spaces, found 8
      Open

              $cpf_or_cnpj = $order->get_meta('_billing_cpf');

      Line indented incorrectly; expected 16 spaces, found 8
      Open

              }

      Line indented incorrectly; expected at least 8 spaces, found 6
      Open

            )

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          $vindi_customer_id = get_user_meta($user_id, 'vindi_customer_id', true);

      Line indented incorrectly; expected at least 12 spaces, found 6
      Open

            $metadata = array();

      Line indented incorrectly; expected at least 8 spaces, found 6
      Open

            )

      Line indented incorrectly; expected 8 spaces, found 4
      Open

          }

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          add_action('user_register', array($this, 'create'), 10, 1);

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          $name = (!$user['first_name']) ? $user['display_name'] : $user['first_name'] . ' ' . $user['last_name'];

      Line indented incorrectly; expected at least 20 spaces, found 10
      Open

                $metadata['carteira_de_identidade'] = $order->get_meta('_billing_rg');

      Line indented incorrectly; expected 12 spaces, found 10
      Open

                }

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          $customer = new WC_Customer($user_id);

      Line indented incorrectly; expected at least 12 spaces, found 8
      Open

              'phone_type' => 'landline',

      Line indented incorrectly; expected 8 spaces, found 4
      Open

          }

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          $metadata = null;

      Line indented incorrectly; expected at least 16 spaces, found 8
      Open

              $cpf_or_cnpj = $order->get_meta('_billing_cnpj');

      Line indented incorrectly; expected at least 20 spaces, found 10
      Open

                $metadata['inscricao_estadual'] = $order->get_meta('_billing_ie');

      Line indented incorrectly; expected at least 8 spaces, found 4
      Open

          $customer = new WC_Customer($user_id);

      Line indented incorrectly; expected at least 12 spaces, found 8
      Open

              'number' => preg_replace('/\D+/', '', '55' . $customer->get_meta('billing_cellphone'))

      Line indented incorrectly; expected at least 12 spaces, found 6
      Open

            $metadata = array();

      Line indented incorrectly; expected 16 spaces, found 8
      Open

              if ($this->vindi_settings->send_nfe_information()) {

      Line indented incorrectly; expected at least 12 spaces, found 4
      Open

          return $createdUser;

      Line indented incorrectly; expected at least 12 spaces, found 6
      Open

            $landline = array(

      Line indented incorrectly; expected at least 16 spaces, found 8
      Open

              $this->vindi_settings->logger->log(sprintf('Customer cpf -> %s', $customer->get_meta('billing_cpf')));

      Multi-line function call not indented correctly; expected 8 spaces but found 6
      Open

            $vindi_customer_id

      Line indented incorrectly; expected 4 spaces, found 2
      Open

        }

      Line indented incorrectly; expected at least 16 spaces, found 8
      Open

              $cpf_or_cnpj = $order->get_meta('_billing_cnpj');

      Line indented incorrectly; expected at least 14 spaces, found 12
      Open

                  update_user_meta($user_id, 'vindi_customer_id', $createdUser['id']);

      Line indented incorrectly; expected at least 12 spaces, found 6
      Open

            $mobile = array(

      Line indented incorrectly; expected at least 12 spaces, found 8
      Open

              'phone_type' => 'mobile',

      Line indented incorrectly; expected at least 12 spaces, found 8
      Open

              'number' => preg_replace('/\D+/', '', '55' . $customer->get_meta('billing_cellphone'))

      Line indented incorrectly; expected at least 16 spaces, found 8
      Open

              $notes = sprintf('Nome: %s %s', $order->get_billing_first_name(), $order->get_billing_last_name());

      Line indented incorrectly; expected 8 spaces, found 4
      Open

          if (empty($vindi_customer_id)) {

      Line indented incorrectly; expected at least 10 spaces, found 4
      Open

          );

      There are no issues that match your filters.

      Category
      Status