Passed
Push — main ( 7e5a2f...99a7ee )
by BRUNO
02:06
created
src/DatalayerTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
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,13 +115,13 @@  discard block
 block discarded – undo
115 115
     protected function setDatabase(string $database): self
116 116
     {
117 117
         if (strpos($_SERVER['SERVER_NAME'], mb_strtolower(CONFIG_DATA_LAYER["homologation"])) && !strpos($database, ucfirst(CONFIG_DATA_LAYER["homologation"]))) {
118
-            $database = $database.ucfirst(CONFIG_DATA_LAYER["homologation"] ?? "");
118
+            $database = $database . ucfirst(CONFIG_DATA_LAYER["homologation"] ?? "");
119 119
             $this->database = $database;
120 120
         } else {
121 121
             $this->database = $database;
122 122
         }
123 123
 
124
-        if (!empty($this->instance)){
124
+        if (!empty($this->instance)) {
125 125
             $this->executeSQL("USE {$this->getDatabase()}");
126 126
         }
127 127
 
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
             $prepare = empty($prepare) ? $this->getPrepare() : $prepare;
249 249
             return $prepare->rowCount();
250 250
         } catch (PDOException $e) {
251
-            $this->setError($e);}
251
+            $this->setError($e); }
252 252
     }
253 253
 
254 254
     /**
Please login to merge, or discard this patch.