Passed
Push — master ( 2a0eac...eecbbb )
by Maike
01:58
created
lib/Connection.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -175,8 +175,12 @@
 block discarded – undo
175 175
      */
176 176
     final public function changeSchema($schema = null)
177 177
     {
178
-        if (!is_string($schema)) throw new \InvalidArgumentException('The parameter don\'t is an String.');
179
-        if ($this->driver == 'mysql') throw new \InvalidArgumentException('This driver not supported schemas.');
178
+        if (!is_string($schema)) {
179
+         throw new \InvalidArgumentException('The parameter don\'t is an String.');
180
+        }
181
+        if ($this->driver == 'mysql') {
182
+         throw new \InvalidArgumentException('This driver not supported schemas.');
183
+        }
180 184
 
181 185
         $this->getConnection()->exec("SET search_path TO '$schema';");
182 186
         return $this;
Please login to merge, or discard this patch.
lib/Error.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,9 @@  discard block
 block discarded – undo
23 23
     {
24 24
         $instance = self::instance();
25 25
 
26
-        if ($instance->burst) $instance->burst($message, $code, $type);
26
+        if ($instance->burst) {
27
+         $instance->burst($message, $code, $type);
28
+        }
27 29
 
28 30
         $errors = [
29 31
             'message' => $message,
@@ -38,7 +40,9 @@  discard block
 block discarded – undo
38 40
 
39 41
     public static function instance()
40 42
     {
41
-        if (!self::$_instance) self::$_instance = new self();
43
+        if (!self::$_instance) {
44
+         self::$_instance = new self();
45
+        }
42 46
         return self::$_instance;
43 47
     }
44 48
 
Please login to merge, or discard this patch.