Test Failed
Push — master ( 612fe8...d65b5f )
by Fran
03:42
created
src/base/types/Api.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 
4 4
 use Propel\Runtime\ActiveQuery\ModelCriteria;
5 5
 use Propel\Runtime\Map\TableMap;
6
-use PSFS\base\config\Config;
7 6
 use PSFS\base\dto\JsonResponse;
8 7
 use PSFS\base\dto\Order;
9 8
 use PSFS\base\Logger;
Please login to merge, or discard this patch.
src/base/types/traits/Api/ConnectionTrait.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use Propel\Runtime\Propel;
7 7
 use PSFS\base\config\Config;
8 8
 use PSFS\base\Logger;
9
-use PSFS\base\types\traits\DebugTrait;
10 9
 
11 10
 /**
12 11
  * Trait ConnectionTrait
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     protected function createConnection(TableMap $tableMap)
27 27
     {
28 28
         $this->con = Propel::getConnection($tableMap::DATABASE_NAME);
29
-        if(method_exists($this->con, 'useDebug')) {
29
+        if (method_exists($this->con, 'useDebug')) {
30 30
             Logger::log('Enabling debug queries mode', LOG_INFO);
31 31
             $this->con->useDebug(Config::getParam('debug'));
32 32
         }
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         if (null !== $this->con && $this->con->inTransaction()) {
44 44
             if ($status === 200) {
45 45
                 $this->con->commit();
46
-            } else {
46
+            }else {
47 47
                 $this->con->rollBack();
48 48
             }
49 49
         }
Please login to merge, or discard this patch.