chippyash/Simple-Accounts

View on GitHub

Showing 113 of 113 total issues

Only one argument is allowed per line in a multi-line function call
Open

                    (($account->getType()->getValue() & AccountType::DR) == AccountType::DR), false)

Only one argument is allowed per line in a multi-line function call
Open

                ' ', '_', "{$name}_{$orgId}")

Only one argument is allowed per line in a multi-line function call
Open

                ' ', '_', "{$name}_{$orgId}")

Spaces must be used to indent lines; tabs are not allowed
Open

    protected $acDr;

Line exceeds 120 characters; contains 126 characters
Open

        $this->journalPath = new StringType($this->filePath . '/' . strtolower(str_replace(' ', '-', $journalName)) . '.xml');

Spaces must be used to indent lines; tabs are not allowed
Open

    protected $acCr;

Line exceeds 120 characters; contains 128 characters
Open

    public function __construct(Nominal $drAc, Nominal $crAc, Currency $amount, StringType $note = null, \DateTime $date = null)

Line exceeds 120 characters; contains 195 characters
Open

     * An account recording the capital or equity of an organisation.  Positive value is shown as CR, negative as DR.  Essentially a form of Liability as it is owed to the shareholders or owners.

Expected 1 newline at end of file; 0 found
Open

}

Whitespace found at end of line
Open

 

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

                serialize($chart)) > 0

Expected 1 newline at end of file; 0 found
Open

class AccountsException extends \Exception {}

No space found after comma in function call
Open

                $this->normalizeName($chart->getName(),$chart->getOrg()->id()),

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

                })

Expected 1 newline at end of file; 0 found
Open

}

Whitespace found at end of line
Open

class Journal 

Closing brace must be on a line by itself
Open

class JournalException extends \Exception {}

Space after opening parenthesis of function call prohibited
Open

            ->account( function ($accnt) {

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

                $this->journalist

Opening parenthesis of a multi-line function call must be the last content on the line
Open

        $balance = $this->reduce(function($carry, Entry $entry) {
Severity
Category
Status
Source
Language