@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | $_ENV['ENTITY_DIR'] |
41 | 41 | ) |
42 | 42 | ) { |
43 | - fwrite(STDERR, 'Faltan variables de entorno por definir' . PHP_EOL); |
|
43 | + fwrite(STDERR, 'Faltan variables de entorno por definir'.PHP_EOL); |
|
44 | 44 | exit(1); |
45 | 45 | } |
46 | 46 | |
@@ -55,13 +55,13 @@ discard block |
||
55 | 55 | 'charset' => $_ENV['DATABASE_CHARSET'] ?? 'UTF8', |
56 | 56 | ]; |
57 | 57 | |
58 | - $entityDir = dirname(__DIR__, 2) . '/' . $_ENV['ENTITY_DIR']; |
|
58 | + $entityDir = dirname(__DIR__, 2).'/'.$_ENV['ENTITY_DIR']; |
|
59 | 59 | $debug = $_ENV['DEBUG'] ?? false; |
60 | 60 | $config = Setup::createAnnotationMetadataConfiguration( |
61 | - [ $entityDir ], // paths to mapped entities |
|
62 | - $debug, // developper mode |
|
63 | - ini_get('sys_temp_dir'), // Proxy dir |
|
64 | - null, // Cache implementation |
|
61 | + [$entityDir], // paths to mapped entities |
|
62 | + $debug, // developper mode |
|
63 | + ini_get('sys_temp_dir'), // Proxy dir |
|
64 | + null, // Cache implementation |
|
65 | 65 | false // use Simple Annotation Reader |
66 | 66 | ); |
67 | 67 | $config->setAutoGenerateProxyClasses(true); |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | $entityManager = EntityManager::create($dbParams, $config); |
74 | 74 | } catch (Throwable $e) { |
75 | 75 | $msg = sprintf('ERROR (%d): %s', $e->getCode(), $e->getMessage()); |
76 | - fwrite(STDERR, $msg . PHP_EOL); |
|
76 | + fwrite(STDERR, $msg.PHP_EOL); |
|
77 | 77 | exit(1); |
78 | 78 | } |
79 | 79 |