mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Code consistency and new tests.
This commit is contained in:
@@ -75,7 +75,7 @@ class FileJobConfiguration implements JobConfigurationInterface
|
||||
public function configureJob(array $data): MessageBag
|
||||
{
|
||||
$configurator = $this->getConfigurationObject();
|
||||
$configurator->setJob($this->importJob);
|
||||
$configurator->setImportJob($this->importJob);
|
||||
|
||||
return $configurator->configureJob($data);
|
||||
}
|
||||
@@ -89,7 +89,7 @@ class FileJobConfiguration implements JobConfigurationInterface
|
||||
public function getNextData(): array
|
||||
{
|
||||
$configurator = $this->getConfigurationObject();
|
||||
$configurator->setJob($this->importJob);
|
||||
$configurator->setImportJob($this->importJob);
|
||||
|
||||
return $configurator->getNextData();
|
||||
}
|
||||
@@ -124,12 +124,12 @@ class FileJobConfiguration implements JobConfigurationInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ImportJob $job
|
||||
* @param ImportJob $importJob
|
||||
*/
|
||||
public function setJob(ImportJob $job): void
|
||||
public function setImportJob(ImportJob $importJob): void
|
||||
{
|
||||
$this->importJob = $job;
|
||||
$this->repository->setUser($job->user);
|
||||
$this->importJob = $importJob;
|
||||
$this->repository->setUser($importJob->user);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user