@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | |
61 | 61 | $mgd_config = midgard_connection::get_instance()->config; |
62 | 62 | $mgdobjects_file = $mgd_config->vardir . '/midgard_objects.php'; |
63 | - if ( file_exists($mgdobjects_file) |
|
63 | + if (file_exists($mgdobjects_file) |
|
64 | 64 | && !unlink($mgdobjects_file)) |
65 | 65 | { |
66 | 66 | throw new \RuntimeException('Could not unlink ' . $mgdobjects_file); |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | $cms = $em->getMetadataFactory()->getAllMetadata(); |
81 | 81 | |
82 | 82 | // create storage |
83 | - if ( !midgard_storage::create_base_storage() |
|
83 | + if (!midgard_storage::create_base_storage() |
|
84 | 84 | && midgard_connection::get_instance()->get_error_string() != 'MGD_ERR_OK') |
85 | 85 | { |
86 | 86 | throw new \Exception("Failed to create base database structures" . midgard_connection::get_instance()->get_error_string()); |