brokeyourbike/remit-one-api-client-php

View on GitHub

Showing 7 of 7 total issues

Transaction has 51 functions (exceeds 20 allowed). Consider refactoring.
Open

class Transaction implements DecodedTransactionInterface
{
    public function __construct(
        private string $trans_ref,
        private string $trans_type,
Severity: Major
Found in src/Models/Transaction.php - About 7 hrs to fix

    Method __construct has 52 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            private string $trans_ref,
            private string $trans_type,
            private string $status,
    
            private string $benef_id,
    Severity: Major
    Found in src/Models/Transaction.php - About 6 hrs to fix

      File Transaction.php has 261 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      
      // Copyright (C) 2021 Ivan Stasiuk <ivan@stasi.uk>.
      //
      // This Source Code Form is subject to the terms of the Mozilla Public
      Severity: Minor
      Found in src/Models/Transaction.php - About 2 hrs to fix

        Method __construct has 10 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                private string $trans_ref,
                private string $trans_type,
                private string $status,
                private string $error_date,
                private string $error_reason,
        Severity: Major
        Found in src/Models/ErrorTransaction.php - About 1 hr to fix

          Method __construct has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  private ?string $remitter_building_no,
                  private ?string $remitter_address1,
                  private ?string $remitter_address2,
                  private ?string $remitter_city,
                  private ?string $remitter_state,
          Severity: Major
          Found in src/Models/AddressParts.php - About 50 mins to fix

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

                    private ?string $message,
                    private ?int $total_count,
                    private ?int $success_count,
                    private ?int $failed_count,
                    private ?AcceptTransactionsWrapper $transactions,
            Severity: Minor
            Found in src/Models/AcceptTransactionResult.php - About 35 mins to fix

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

                      private string $trans_ref,
                      private string $benef_trans_ref,
                      private string $bank_comments,
                      private string $payout_comments,
                      private string $collection_pin,
              Severity: Minor
              Found in src/Models/UpdateTransactionResult.php - About 35 mins to fix
                Severity
                Category
                Status
                Source
                Language