Test Failed
Push — master ( 210857...2e358d )
by
unknown
04:16
created
src/Silk/Database/TableGateway.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         if(!empty($adapter))
29 29
             $this->adapter = $adapter;
30 30
         else
31
-           $this->adapter = GlobalAdapterFeature::getStaticAdapter();
31
+            $this->adapter = GlobalAdapterFeature::getStaticAdapter();
32 32
 
33 33
         $this->updateContext();
34 34
     }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
         $this->table = $this->config['table'];
27 27
         
28
-        if(!empty($adapter))
28
+        if (!empty($adapter))
29 29
             $this->adapter = $adapter;
30 30
         else
31 31
            $this->adapter = GlobalAdapterFeature::getStaticAdapter();
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
 
36 36
     protected function updateContext()
37 37
     {
38
-        if(isset($this->config['schema'])){
39
-            $sql = 'USE ' . $this->config['schema'] . ';';
38
+        if (isset($this->config['schema'])) {
39
+            $sql = 'USE '.$this->config['schema'].';';
40 40
             $this->adapter->getDriver()->getConnection()->execute($sql);
41 41
         }
42 42
     }
Please login to merge, or discard this patch.
Braces   +8 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,15 +20,17 @@
 block discarded – undo
20 20
     {
21 21
         $this->config = Reader::getConfig($object);
22 22
 
23
-        if (!array_key_exists('table', $this->config))
24
-            throw new NoTableFoundException();
23
+        if (!array_key_exists('table', $this->config)) {
24
+                    throw new NoTableFoundException();
25
+        }
25 26
 
26 27
         $this->table = $this->config['table'];
27 28
         
28
-        if(!empty($adapter))
29
-            $this->adapter = $adapter;
30
-        else
31
-           $this->adapter = GlobalAdapterFeature::getStaticAdapter();
29
+        if(!empty($adapter)) {
30
+                    $this->adapter = $adapter;
31
+        } else {
32
+                   $this->adapter = GlobalAdapterFeature::getStaticAdapter();
33
+        }
32 34
 
33 35
         $this->updateContext();
34 36
     }
Please login to merge, or discard this patch.