Skip to content

Commit

Permalink
minor phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
fruitl00p committed Sep 3, 2015
1 parent f7341ff commit 5bbe693
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/Parser/Banking/Mt940/Engine/Triodos.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ protected function parseStatementBank()
protected function parseStatementAccount()
{
$results = [];
if (preg_match('#:25:TRIODOSBANK/([\d\.]+)#', $this->getCurrentStatementData(), $results) && !empty($results[1])
) {
if (preg_match('#:25:TRIODOSBANK/([\d\.]+)#', $this->getCurrentStatementData(), $results)
&& !empty($results[1])) {

return $this->sanitizeAccount($results[1]);
}

Expand Down Expand Up @@ -102,7 +103,7 @@ protected function parseTransactionDescription()
array_shift($parts); // remove BBAN / BIC code
if (preg_match('#[A-Z]{2}[0-9]{2}[A-Z]{4}(.*)#', $parts[1], $results)) {
array_shift($parts); // remove IBAN too
array_shift($parts); // remove IBAN too
array_shift($parts); // remove IBAN some more
}

array_pop($parts);// remove own account / BBAN
Expand All @@ -119,9 +120,9 @@ protected function parseTransactionDescription()
*
* @return array
*/
private function getDescriptionParts() {
$description = parent::parseTransactionDescription();
$parts = explode('>', $description);
private function getDescriptionParts()
{
$parts = explode('>', parent::parseTransactionDescription());
array_shift($parts); // remove 000 prefix
return $parts;
}
Expand Down

0 comments on commit 5bbe693

Please sign in to comment.