Some code cleanup.

This commit is contained in:
James Cole
2017-10-22 20:13:02 +02:00
parent d72b652453
commit 1a325f4978
8 changed files with 76 additions and 63 deletions

View File

@@ -176,7 +176,7 @@ class Preferences
/**
* @param $name
* @param string $value
* @param $value
*
* @return Preference
*/

View File

@@ -51,6 +51,14 @@ class Modifier
return $compare === $expected;
}
/**
* @param array $modifier
* @param Transaction $transaction
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
*
* @return bool
* @throws FireflyException
*/
public static function apply(array $modifier, Transaction $transaction): bool
{
switch ($modifier['type']) {