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

@@ -70,6 +70,7 @@ class CsvProcessor implements FileProcessorInterface
* Does the actual job.
*
* @return bool
* @throws \League\Csv\Exception
*/
public function run(): bool
{
@@ -159,6 +160,9 @@ class CsvProcessor implements FileProcessorInterface
/**
* @return Iterator
* @throws \League\Csv\Exception
* @throws \League\Csv\Exception
* @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
*/
private function getImportArray(): Iterator
{
@@ -275,6 +279,7 @@ class CsvProcessor implements FileProcessorInterface
* @param array $array
*
* @return bool
* @throws FireflyException
*/
private function rowAlreadyImported(array $array): bool
{