Refactor code and fix tests.

This commit is contained in:
James Cole
2018-05-21 09:40:19 +02:00
parent 714b54ed06
commit ebf97f710f
16 changed files with 63 additions and 52 deletions

View File

@@ -40,7 +40,7 @@ use Log;
/**
* Class ConfigureMappingHandler
*/
class ConfigureMappingHandler implements ConfigurationInterface
class ConfigureMappingHandler implements FileConfigurationInterface
{
/** @var AttachmentHelperInterface */
private $attachments;

View File

@@ -39,7 +39,7 @@ use Log;
/**
* Class ConfigureRolesHandler
*/
class ConfigureRolesHandler implements ConfigurationInterface
class ConfigureRolesHandler implements FileConfigurationInterface
{
/** @var AttachmentHelperInterface */
private $attachments;

View File

@@ -33,7 +33,7 @@ use Log;
/**
* Class ConfigureUploadHandler
*/
class ConfigureUploadHandler implements ConfigurationInterface
class ConfigureUploadHandler implements FileConfigurationInterface
{
/** @var ImportJob */
private $importJob;

View File

@@ -26,9 +26,9 @@ use FireflyIII\Models\ImportJob;
use Illuminate\Support\MessageBag;
/**
* Class ConfigurationInterface.
* Class FileConfigurationInterface.
*/
interface ConfigurationInterface
interface FileConfigurationInterface
{
/**
* Store data associated with current stage.

View File

@@ -37,7 +37,7 @@ use Log;
/**
* Class NewFileJobHandler
*/
class NewFileJobHandler implements ConfigurationInterface
class NewFileJobHandler implements FileConfigurationInterface
{
/** @var AttachmentHelperInterface */
private $attachments;