@@ -32,8 +32,9 @@ |
||
32 | 32 | */ |
33 | 33 | private function getInstance(): ?PDO |
34 | 34 | { |
35 | - if (strpos($_SERVER['SERVER_NAME'], "homologacao") && !strpos($this->database, "Homologacao") ) |
|
36 | - $this->database .= "Homologacao"; |
|
35 | + if (strpos($_SERVER['SERVER_NAME'], "homologacao") && !strpos($this->database, "Homologacao") ) { |
|
36 | + $this->database .= "Homologacao"; |
|
37 | + } |
|
37 | 38 | |
38 | 39 | if (!isset($this->instance)) { |
39 | 40 | $this->instance = Connect::getInstance($this->database); |