Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Some issues fixed for scrutiniser.
James Cole15089f0d7eda
diff --git a/app/Import/Importer/CsvImporter.php b/app/Import/Importer/CsvImporter.phpindex 92087771c7..efd1584e20 100644--- a/app/Import/Importer/CsvImporter.php+++ b/app/Import/Importer/CsvImporter.php@@ -32,12 +32,15 @@ class CsvImporter implements ImporterInterface/** @var ImportJob */public $job;+ public $validSpecifics = [];+/*** CsvImporter constructor.*/public function __construct(){- $this->collection = new Collection;+ $this->collection = new Collection;+ $this->validSpecifics = array_keys(config('csv.import_specifics'));}/**@@ -112,6 +115,11 @@ class CsvImporter implements ImporterInterface// and this is the point where the specifix go to work.foreach ($config['specifics'] as $name => $enabled) {++ if (!in_array($name, $this->validSpecifics)) {+ throw new FireflyException(sprintf('"%s" is not a valid class name', $name));+ }+/** @var SpecificInterface $specific */$specific = app('FireflyIII\Import\Specifics\\' . $name);