smart-io/php-3pl-central

View on GitHub
src/Order/OrderEntity.php

Summary

Maintainability
D
2 days
Test Coverage

OrderEntity has 89 functions (exceeds 20 allowed). Consider refactoring.
Open

class OrderEntity
{
    private $customerName;
    private $customerEmail;
    private $customerPhone;
Severity: Major
Found in src/Order/OrderEntity.php - About 1 day to fix

    File OrderEntity.php has 450 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    namespace ThreePlCentral\Order;
    
    class OrderEntity
    Severity: Minor
    Found in src/Order/OrderEntity.php - About 6 hrs to fix

      Method toArray has 46 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function toArray()
          {
              return [
                  'customerName' => $this->customerName,
                  'customerEmail' => $this->customerEmail,
      Severity: Minor
      Found in src/Order/OrderEntity.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status