| @@ -57,8 +57,7 @@ discard block | ||
| 57 | 57 | * @template TDbConfigurationEntity as \Platine\Framework\Config\Model\Configuration | 
| 58 | 58 | * @implements ArrayAccess<string, mixed> | 
| 59 | 59 | */ | 
| 60 | -class AppDatabaseConfig implements ArrayAccess | |
| 61 | -{ | |
| 60 | +class AppDatabaseConfig implements ArrayAccess { | |
| 62 | 61 | /** | 
| 63 | 62 | * The configuration loader to use | 
| 64 | 63 | * @var DatabaseConfigLoaderInterface<TDbConfigurationEntity> | 
| @@ -82,8 +81,7 @@ discard block | ||
| 82 | 81 | * @param DatabaseConfigLoaderInterface<TDbConfigurationEntity> $loader the loader to use | 
| 83 | 82 | * @param string $env the name of the environment | 
| 84 | 83 | */ | 
| 85 | - public function __construct(DatabaseConfigLoaderInterface $loader, string $env = '') | |
| 86 | -    { | |
| 84 | +    public function __construct(DatabaseConfigLoaderInterface $loader, string $env = '') { | |
| 87 | 85 | $this->loader = $loader; | 
| 88 | 86 | $this->env = $env; | 
| 89 | 87 | } | 
| @@ -106,8 +104,7 @@ discard block | ||
| 106 | 104 | * @param array<string, mixed> $filters the filters to use if any | 
| 107 | 105 | * @return mixed | 
| 108 | 106 | */ | 
| 109 | - public function get(string $key, $default = null, array $filters = []) | |
| 110 | -    { | |
| 107 | +    public function get(string $key, $default = null, array $filters = []) { | |
| 111 | 108 | $results = $this->parseKey($key); | 
| 112 | 109 | $group = $results['group']; | 
| 113 | 110 | |
| @@ -216,16 +213,14 @@ discard block | ||
| 216 | 213 | /** | 
| 217 | 214 |       * {@inheritdoc} | 
| 218 | 215 | */ | 
| 219 | - public function offsetExists($key) | |
| 220 | -    { | |
| 216 | +    public function offsetExists($key) { | |
| 221 | 217 | return $this->has($key); | 
| 222 | 218 | } | 
| 223 | 219 | |
| 224 | 220 | /** | 
| 225 | 221 |       * {@inheritdoc} | 
| 226 | 222 | */ | 
| 227 | - public function offsetGet($key) | |
| 228 | -    { | |
| 223 | +    public function offsetGet($key) { | |
| 229 | 224 | return $this->get($key); | 
| 230 | 225 | } | 
| 231 | 226 | |
| @@ -235,16 +230,14 @@ discard block | ||
| 235 | 230 | * @param mixed $value | 
| 236 | 231 | * @return void | 
| 237 | 232 | */ | 
| 238 | - public function offsetSet($key, $value) | |
| 239 | -    { | |
| 233 | +    public function offsetSet($key, $value) { | |
| 240 | 234 | $this->set($key, $value); | 
| 241 | 235 | } | 
| 242 | 236 | |
| 243 | 237 | /** | 
| 244 | 238 |       * {@inheritdoc} | 
| 245 | 239 | */ | 
| 246 | - public function offsetUnset($key) | |
| 247 | -    { | |
| 240 | +    public function offsetUnset($key) { | |
| 248 | 241 | $this->set($key, null); | 
| 249 | 242 | } | 
| 250 | 243 | |
| @@ -294,8 +287,7 @@ discard block | ||
| 294 | 287 | * @param mixed $value | 
| 295 | 288 | * @return mixed | 
| 296 | 289 | */ | 
| 297 | - protected function getFormattedConfigValue($value) | |
| 298 | -    { | |
| 290 | +    protected function getFormattedConfigValue($value) { | |
| 299 | 291 |          if (is_array($value) || is_object($value)) { | 
| 300 | 292 | return serialize($value); | 
| 301 | 293 | } | 
| @@ -55,8 +55,7 @@ | ||
| 55 | 55 | * @package Platine\Framework\Config | 
| 56 | 56 | * @template TDbConfigurationEntity as Entity | 
| 57 | 57 | */ | 
| 58 | -interface DatabaseConfigLoaderInterface | |
| 59 | -{ | |
| 58 | +interface DatabaseConfigLoaderInterface { | |
| 60 | 59 | /** | 
| 61 | 60 | * Load the configuration group for the given environment with custom filters | 
| 62 | 61 | * @param string $environment the name of the environment |