ekmungai/eloquent-ifrs

View on GitHub
src/Reports/CashFlowStatement.php

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Method getSections has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getSections($startDate = null, $endDate = null, $fullbalance = true): array
    {
        // Accounts movements for the Period
        foreach (array_keys($this->balances) as $section) {
            $this->balances[$section] = Account::sectionBalances(
Severity: Minor
Found in src/Reports/CashFlowStatement.php - About 1 hr to fix

    Method toString has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Wontfix

        public function toString(): void
        {
    
            $statement = $this->statement;
            // Title
    Severity: Minor
    Found in src/Reports/CashFlowStatement.php - About 1 hr to fix

      Method printResult has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Wontfix

          protected function printResult(string $result, string $statement, string $indent, int $indentFactor, bool $heading = true)
      Severity: Minor
      Found in src/Reports/CashFlowStatement.php - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status