moip/moip-sdk-php

View on GitHub
src/Resource/Orders.php

Summary

Maintainability
C
1 day
Test Coverage

Orders has 54 functions (exceeds 20 allowed). Consider refactoring.
Open

class Orders extends MoipResource
{
    /**
     * @const string
     */
Severity: Major
Found in src/Resource/Orders.php - About 7 hrs to fix

    File Orders.php has 326 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    namespace Moip\Resource;
    
    use ArrayIterator;
    Severity: Minor
    Found in src/Resource/Orders.php - About 3 hrs to fix

      Method addReceiver has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          public function addReceiver($moipAccount, $type, $fixed = null, $percentual = null, $feePayor = false)
      Severity: Minor
      Found in src/Resource/Orders.php - About 35 mins to fix

        Method addItem has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            public function addItem($product, $quantity, $detail, $price, $category = 'OTHER_CATEGORIES')
        Severity: Minor
        Found in src/Resource/Orders.php - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status