Passed
Push — master ( f355fb...7ec9f6 )
by F. Javier
03:59
created
src/Utility/DoctrineConnector.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
  */
22 22
 final class DoctrineConnector
23 23
 {
24
-    private static EntityManager|null $instance = null;
24
+    private static EntityManager | null $instance = null;
25 25
 
26 26
     /**
27 27
      * Generate the Entity Manager
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
                 $_ENV['SERVER_VERSION'],
44 44
             )
45 45
         ) {
46
-            fwrite(STDERR, 'Faltan variables de entorno por definir' . PHP_EOL);
46
+            fwrite(STDERR, 'Faltan variables de entorno por definir'.PHP_EOL);
47 47
             exit(1);
48 48
         }
49 49
 
@@ -59,13 +59,13 @@  discard block
 block discarded – undo
59 59
             'serverVersion' => $_ENV['SERVER_VERSION'],
60 60
         ];
61 61
 
62
-        $entityDir = dirname(__DIR__, 2) . '/' . $_ENV['ENTITY_DIR'];
62
+        $entityDir = dirname(__DIR__, 2).'/'.$_ENV['ENTITY_DIR'];
63 63
         // $queryCache = new PhpFilesAdapter('doctrine_queries');
64 64
         // $metadataCache = new PhpFilesAdapter('doctrine_metadata');
65 65
         // $resultsCache = new PhpFilesAdapter('doctrine_results');
66 66
         $config = ORMSetup::createAttributeMetadataConfiguration(
67
-            paths: [ $entityDir ],            // paths to mapped entities
68
-            isDevMode: true,                  // developper mode
67
+            paths: [$entityDir], // paths to mapped entities
68
+            isDevMode: true, // developper mode
69 69
             proxyDir: (string) ini_get('sys_temp_dir') // Proxy dir
70 70
         );
71 71
         // $config->setQueryCache($queryCache);
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             self::$instance = new EntityManager($connection, $config);
82 82
         } catch (Throwable $e) {
83 83
             $msg = sprintf('ERROR (%d): %s', $e->getCode(), $e->getMessage());
84
-            fwrite(STDERR, $msg . PHP_EOL);
84
+            fwrite(STDERR, $msg.PHP_EOL);
85 85
             exit(1);
86 86
         }
87 87
 
Please login to merge, or discard this patch.