Completed
Push — develop ( e28b5a...49f02e )
by Neomerx
02:38
created
src/Packages/Data/DataContainerConfigurator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,14 +38,14 @@  discard block
 block discarded – undo
38 38
     public static function configureContainer(LimoncelloContainerInterface $container): void
39 39
     {
40 40
         $container[ModelSchemaInfoInterface::class] =
41
-            function (PsrContainerInterface $container): ModelSchemaInfoInterface {
41
+            function(PsrContainerInterface $container): ModelSchemaInfoInterface {
42 42
                 $settings = $container->get(SettingsProviderInterface::class)->get(DataSettings::class);
43 43
                 $data     = $settings[DataSettings::KEY_MODELS_SCHEMA_INFO];
44 44
 
45 45
                 return (new ModelSchemaInfo())->setData($data);
46 46
             };
47 47
 
48
-        $container[Connection::class] = function (PsrContainerInterface $container): Connection {
48
+        $container[Connection::class] = function(PsrContainerInterface $container): Connection {
49 49
             $settings = $container->get(SettingsProviderInterface::class)->get(DoctrineSettings::class);
50 50
             $params   = array_filter([
51 51
                 'driver'   => $settings[DoctrineSettings::KEY_DRIVER] ?? null,
@@ -58,10 +58,10 @@  discard block
 block discarded – undo
58 58
                 'memory'   => $settings[DoctrineSettings::KEY_MEMORY] ?? null,
59 59
                 'path'     => $settings[DoctrineSettings::KEY_PATH] ?? null,
60 60
                 'charset'  => $settings[DoctrineSettings::KEY_CHARSET] ?? 'UTF8',
61
-            ], function ($value) {
61
+            ], function($value) {
62 62
                 return $value !== null;
63 63
             });
64
-            $extra    = $settings[DoctrineSettings::KEY_EXTRA] ?? [];
64
+            $extra = $settings[DoctrineSettings::KEY_EXTRA] ?? [];
65 65
 
66 66
             $connection = DriverManager::getConnection($params + $extra);
67 67
 
Please login to merge, or discard this patch.