@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | { |
73 | 73 | try { |
74 | 74 | if (strpos($_SERVER['SERVER_NAME'], mb_strtolower(CONFIG_DATA_LAYER["homologation"])) && !strpos($this->getDatabase(), ucfirst(CONFIG_DATA_LAYER["homologation"]))) { |
75 | - $database = $this->getDatabase().ucfirst(CONFIG_DATA_LAYER["homologation"] ?? ""); |
|
75 | + $database = $this->getDatabase() . ucfirst(CONFIG_DATA_LAYER["homologation"] ?? ""); |
|
76 | 76 | $this->setDatabase($database); |
77 | 77 | } |
78 | 78 | |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | protected function setDatabase(string $database): self |
116 | 116 | { |
117 | 117 | if (strpos($_SERVER['SERVER_NAME'], mb_strtolower(CONFIG_DATA_LAYER["homologation"])) && !strpos($this->getDatabase(), ucfirst(CONFIG_DATA_LAYER["homologation"]))) { |
118 | - $database = $database.ucfirst(CONFIG_DATA_LAYER["homologation"] ?? ""); |
|
118 | + $database = $database . ucfirst(CONFIG_DATA_LAYER["homologation"] ?? ""); |
|
119 | 119 | } |
120 | 120 | |
121 | 121 | $this->database = $database; |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | $prepare = empty($prepare) ? $this->getPrepare() : $prepare; |
244 | 244 | return $prepare->rowCount(); |
245 | 245 | } catch (PDOException $e) { |
246 | - $this->setError($e);} |
|
246 | + $this->setError($e); } |
|
247 | 247 | } |
248 | 248 | |
249 | 249 | /** |