chippyash/Simple-Accounts

View on GitHub
src/Chippyash/SAccounts/Transaction/SplitTransaction.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '58', column '35').
Open

                $this->date = new \DateTime();

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

The closing brace for the class must go on the next line after the body
Open

}

Expected 1 newline at end of file; 0 found
Open

}

Closing parenthesis of a multi-line function call must be on a line by itself
Open

                })

Multi-line function call not indented correctly; expected 12 spaces but found 16
Open

                })

There are no issues that match your filters.

Category
Status