Showing 5 of 113 total issues
Method createTransactionFromElement
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function createTransactionFromElement(\DOMElement $txn, $crcyCode, \DOMXPath $xpath)
{
$drNodes = $xpath->query("./split[@type='DR']", $txn);
$transaction = (new SplitTransaction(
new \DateTime($txn->attributes->getNamedItem('date')->nodeValue),
Method buildTree
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function buildTree(Node $tree, \DOMNode $node, Chart $chart, array $accountTypes)
{
//create current node
list($nominal, $type, $name, $id) = FFor::create()
->attributes(function () use ($node) {
Method writeSplit
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected function writeSplit(\DOMDocument $dom, \DOMElement $txn, $type, $amount, $nominal)
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function __construct(Nominal $drAc, Nominal $crAc, Currency $amount, StringType $note = null, \DateTime $date = null)
Avoid too many return
statements within this method. Open
Open
return new IntType($attributes->getNamedItem('id')->nodeValue);