Passed
Push — develop ( 78b1eb...2dd196 )
by nguereza
03:29
created
src/Config/DatabaseConfigLoaderInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
  * @package Platine\Framework\Config
56 56
  * @template TDbConfigurationEntity as Entity
57 57
  */
58
-interface DatabaseConfigLoaderInterface extends LoaderInterface
59
-{
58
+interface DatabaseConfigLoaderInterface extends LoaderInterface {
60 59
     /**
61 60
      * Load the configuration from database
62 61
      * @param array<string, mixed> $where
Please login to merge, or discard this patch.
src/Config/AppDatabaseConfig.php 1 patch
Braces   +8 added lines, -16 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
@@ -105,8 +103,7 @@  discard block
 block discarded – undo
105 103
      * not find the configuration item
106 104
      * @return mixed
107 105
      */
108
-    public function get(string $key, $default = null)
109
-    {
106
+    public function get(string $key, $default = null) {
110 107
         $results = $this->parseKey($key);
111 108
         $group = $results['group'];
112 109
 
@@ -215,16 +212,14 @@  discard block
 block discarded – undo
215 212
     /**
216 213
      * {@inheritdoc}
217 214
      */
218
-    public function offsetExists($key)
219
-    {
215
+    public function offsetExists($key) {
220 216
         return $this->has($key);
221 217
     }
222 218
 
223 219
     /**
224 220
      * {@inheritdoc}
225 221
      */
226
-    public function offsetGet($key)
227
-    {
222
+    public function offsetGet($key) {
228 223
         return $this->get($key);
229 224
     }
230 225
 
@@ -234,16 +229,14 @@  discard block
 block discarded – undo
234 229
      * @param mixed $value
235 230
      * @return void
236 231
      */
237
-    public function offsetSet($key, $value)
238
-    {
232
+    public function offsetSet($key, $value) {
239 233
         $this->set($key, $value);
240 234
     }
241 235
 
242 236
     /**
243 237
      * {@inheritdoc}
244 238
      */
245
-    public function offsetUnset($key)
246
-    {
239
+    public function offsetUnset($key) {
247 240
         $this->set($key, null);
248 241
     }
249 242
 
@@ -292,8 +285,7 @@  discard block
 block discarded – undo
292 285
      * @param mixed $value
293 286
      * @return mixed
294 287
      */
295
-    protected function getFormattedConfigValue($value)
296
-    {
288
+    protected function getFormattedConfigValue($value) {
297 289
         if (is_array($value) || is_object($value)) {
298 290
             return serialize($value);
299 291
         }
Please login to merge, or discard this patch.
src/Config/ConfigurationRepositoryInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,6 +55,5 @@
 block discarded – undo
55 55
  * @template TDbConfigurationEntity as \Platine\Orm\Entity
56 56
  * @extends RepositoryInterface<TDbConfigurationEntity>
57 57
  */
58
-interface ConfigurationRepositoryInterface extends RepositoryInterface
59
-{
58
+interface ConfigurationRepositoryInterface extends RepositoryInterface {
60 59
 }
Please login to merge, or discard this patch.