@@ -54,8 +54,7 @@ discard block |
||
| 54 | 54 | * @class DatabaseConfigLoader |
| 55 | 55 | * @package Platine\Framework\Config |
| 56 | 56 | */ |
| 57 | -class DatabaseConfigLoader implements DatabaseConfigLoaderInterface |
|
| 58 | -{ |
|
| 57 | +class DatabaseConfigLoader implements DatabaseConfigLoaderInterface { |
|
| 59 | 58 | /** |
| 60 | 59 | * The Repository instance |
| 61 | 60 | * @var ConfigurationRepositoryInterface |
@@ -67,8 +66,7 @@ discard block |
||
| 67 | 66 | * Create new instance |
| 68 | 67 | * @param ConfigurationRepositoryInterface $repository |
| 69 | 68 | */ |
| 70 | - public function __construct(ConfigurationRepositoryInterface $repository) |
|
| 71 | - { |
|
| 69 | + public function __construct(ConfigurationRepositoryInterface $repository) { |
|
| 72 | 70 | $this->repository = $repository; |
| 73 | 71 | } |
| 74 | 72 | |
@@ -91,8 +89,7 @@ discard block |
||
| 91 | 89 | /** |
| 92 | 90 | * {@inheritdoc} |
| 93 | 91 | */ |
| 94 | - public function insertConfig(array $data) |
|
| 95 | - { |
|
| 92 | + public function insertConfig(array $data) { |
|
| 96 | 93 | $entity = $this->repository->create($data); |
| 97 | 94 | return $this->repository->insert($entity); |
| 98 | 95 | } |
@@ -56,14 +56,12 @@ |
||
| 56 | 56 | * @package Platine\Framework\Config\Model |
| 57 | 57 | * @extends Repository<Configuration> |
| 58 | 58 | */ |
| 59 | -class ConfigurationRepository extends Repository implements ConfigurationRepositoryInterface |
|
| 60 | -{ |
|
| 59 | +class ConfigurationRepository extends Repository implements ConfigurationRepositoryInterface { |
|
| 61 | 60 | /** |
| 62 | 61 | * Create new instance |
| 63 | 62 | * @param EntityManager<Configuration> $manager |
| 64 | 63 | */ |
| 65 | - public function __construct(EntityManager $manager) |
|
| 66 | - { |
|
| 64 | + public function __construct(EntityManager $manager) { |
|
| 67 | 65 | parent::__construct($manager, Configuration::class); |
| 68 | 66 | } |
| 69 | 67 | } |
@@ -53,7 +53,6 @@ |
||
| 53 | 53 | * @class ConfigurationRepositoryInterface |
| 54 | 54 | * @package Platine\Framework\Config |
| 55 | 55 | */ |
| 56 | -interface ConfigurationRepositoryInterface extends RepositoryInterface |
|
| 57 | -{ |
|
| 56 | +interface ConfigurationRepositoryInterface extends RepositoryInterface { |
|
| 58 | 57 | |
| 59 | 58 | } |