Expand tests, do code cleanup.

This commit is contained in:
James Cole
2017-12-17 14:30:53 +01:00
parent b08af77c98
commit 78335e5814
141 changed files with 773 additions and 54 deletions

View File

@@ -29,6 +29,9 @@ use FireflyIII\Models\Transaction;
use Log;
use Steam;
/**
* Class Modifier
*/
class Modifier
{
/**
@@ -52,11 +55,11 @@ class Modifier
/**
* @param array $modifier
* @param Transaction $transaction
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
*
* @return bool
*
* @throws FireflyException
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
*
*/
public static function apply(array $modifier, Transaction $transaction): bool
{

View File

@@ -185,6 +185,11 @@ class Search implements SearchInterface
$this->user = $user;
}
/**
* @param JournalCollectorInterface $collector
*
* @return JournalCollectorInterface
*/
private function applyModifiers(JournalCollectorInterface $collector): JournalCollectorInterface
{
foreach ($this->modifiers as $modifier) {