Completed
Branch 2.0 (13c62b)
by Anton
09:07
created
src/Bootloader/Data/MigrationsBootloader.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@
 block discarded – undo
34 34
         ConfiguratorInterface $configurator,
35 35
         EnvironmentInterface $environment,
36 36
         DirectoriesInterface $directories
37
-    ) {
38
-        if (!$directories->has('migrations')) {
39
-            $directories->set('migrations', $directories->get('app') . 'migrations');
37
+    ){
38
+        if (!$directories->has('migrations')){
39
+            $directories->set('migrations', $directories->get('app').'migrations');
40 40
         }
41 41
 
42 42
         $configurator->setDefaults('migration', [
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,8 @@
 block discarded – undo
35 35
         EnvironmentInterface $environment,
36 36
         DirectoriesInterface $directories
37 37
     ) {
38
-        if (!$directories->has('migrations')) {
38
+        if (!$directories->has('migrations'))
39
+        {
39 40
             $directories->set('migrations', $directories->get('app') . 'migrations');
40 41
         }
41 42
 
Please login to merge, or discard this patch.
src/Bootloader/Data/DatabaseBootloader.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         ConfiguratorInterface $configurator,
34 34
         FinalizerInterface $finalizer,
35 35
         ContainerInterface $container
36
-    ) {
36
+    ){
37 37
         $configurator->setDefaults('database', [
38 38
             'aliases'   => [],
39 39
             'databases' => [],
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             $dbal = $container->get(DatabaseManager::class);
46 46
 
47 47
             // close all database connections
48
-            foreach ($dbal->getDrivers() as $driver) {
48
+            foreach ($dbal->getDrivers() as $driver){
49 49
                 $driver->disconnect();
50 50
             }
51 51
         });
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,12 +40,14 @@
 block discarded – undo
40 40
             'drivers'   => []
41 41
         ]);
42 42
 
43
-        $finalizer->addFinalizer(function () use ($container) {
43
+        $finalizer->addFinalizer(function () use ($container)
44
+        {
44 45
             /** @var DatabaseManager $dbal */
45 46
             $dbal = $container->get(DatabaseManager::class);
46 47
 
47 48
             // close all database connections
48
-            foreach ($dbal->getDrivers() as $driver) {
49
+            foreach ($dbal->getDrivers() as $driver)
50
+            {
49 51
                 $driver->disconnect();
50 52
             }
51 53
         });
Please login to merge, or discard this patch.
src/Bootloader/System/SnapshotsBootloader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@
 block discarded – undo
40 40
         DirectoriesInterface $directories,
41 41
         EnvironmentInterface $environment,
42 42
         FilesInterface $files
43
-    ) {
43
+    ){
44 44
         return new FileSnapshotter(
45
-            $directories->get('runtime') . '/snapshots/',
45
+            $directories->get('runtime').'/snapshots/',
46 46
             $environment->get('SNAPSHOT_MAX_FILES', self::DEFAULT_MAX_SNAPSHOTS),
47 47
             $environment->get('SNAPSHOT_VERBOSITY', HandlerInterface::VERBOSITY_VERBOSE),
48 48
             new HtmlHandler(),
Please login to merge, or discard this patch.
src/Bootloader/System/TranslatorBootloader.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,9 +44,9 @@
 block discarded – undo
44 44
         ConfiguratorInterface $configurator,
45 45
         DirectoriesInterface $directories,
46 46
         EnvironmentInterface $environment
47
-    ) {
48
-        if (!$directories->has('locales')) {
49
-            $directories->set('locales', $directories->get('app') . 'locales/');
47
+    ){
48
+        if (!$directories->has('locales')){
49
+            $directories->set('locales', $directories->get('app').'locales/');
50 50
         }
51 51
 
52 52
         $configurator->setDefaults('translator', [
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,8 @@
 block discarded – undo
45 45
         DirectoriesInterface $directories,
46 46
         EnvironmentInterface $environment
47 47
     ) {
48
-        if (!$directories->has('locales')) {
48
+        if (!$directories->has('locales'))
49
+        {
49 50
             $directories->set('locales', $directories->get('app') . 'locales/');
50 51
         }
51 52
 
Please login to merge, or discard this patch.