brokeyourbike/remit-one-api-client-php

View on GitHub
src/Models/Transaction.php

Summary

Maintainability
D
1 day
Test Coverage
B
84%

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

        There are no issues that match your filters.

        Category
        Status