Passed
Push — master ( 418610...22b727 )
by F. Javier
11:59
created
src/Utility/DoctrineConnector.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
  */
21 21
 final class DoctrineConnector
22 22
 {
23
-    private static ORM\EntityManager|null $instance = null;
23
+    private static ORM\EntityManager | null $instance = null;
24 24
 
25 25
     /**
26 26
      * Generate the Entity Manager
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
                 $_ENV['ENTITY_DIR']
42 42
             )
43 43
         ) {
44
-            fwrite(STDERR, 'Faltan variables de entorno por definir' . PHP_EOL);
44
+            fwrite(STDERR, 'Faltan variables de entorno por definir'.PHP_EOL);
45 45
             exit(1);
46 46
         }
47 47
 
@@ -56,14 +56,14 @@  discard block
 block discarded – undo
56 56
             'charset'   => $_ENV['DATABASE_CHARSET'] ?? 'UTF8',
57 57
         ];
58 58
 
59
-        $entityDir = dirname(__DIR__, 2) . '/' . $_ENV['ENTITY_DIR'];
59
+        $entityDir = dirname(__DIR__, 2).'/'.$_ENV['ENTITY_DIR'];
60 60
         // $debug = $_ENV['DEBUG'] ?? false;
61 61
         $queryCache = new PhpFilesAdapter('doctrine_queries');
62 62
         // $metadataCache = new PhpFilesAdapter('doctrine_metadata');
63 63
         $resultsCache = new PhpFilesAdapter('doctrine_results');
64 64
         $config = ORM\ORMSetup::createAttributeMetadataConfiguration(
65
-            [ $entityDir ],            // paths to mapped entities
66
-            true,                      // developper mode
65
+            [$entityDir], // paths to mapped entities
66
+            true, // developper mode
67 67
             (string) ini_get('sys_temp_dir')   // Proxy dir
68 68
         );
69 69
         $config->setQueryCache($queryCache);
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             $entityManager = ORM\EntityManager::create($dbParams, $config);
79 79
         } catch (Throwable $e) {
80 80
             $msg = sprintf('ERROR (%d): %s', $e->getCode(), $e->getMessage());
81
-            fwrite(STDERR, $msg . PHP_EOL);
81
+            fwrite(STDERR, $msg.PHP_EOL);
82 82
             exit(1);
83 83
         }
84 84
 
Please login to merge, or discard this patch.