Failed Conditions
Push — master ( aea970...87a6d0 )
by Guilherme
16s
created
tests/Doctrine/Tests/OrmFunctionalTestCase.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Doctrine\Common\Cache\ArrayCache;
6 6
 use Doctrine\Common\Persistence\Mapping\Driver\MappingDriver;
7 7
 use Doctrine\DBAL\Driver\Connection;
8
-use Doctrine\DBAL\Driver\PDOSqlite\Driver as SqliteDriver;
9 8
 use Doctrine\DBAL\Logging\DebugStack;
10 9
 use Doctrine\DBAL\Types\Type;
11 10
 use Doctrine\ORM\Cache\CacheConfiguration;
Please login to merge, or discard this patch.
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
             $conn->executeUpdate('DELETE FROM RoutingLocation');
401 401
         }
402 402
 
403
-        if(isset($this->_usedModelSets['navigation'])) {
403
+        if (isset($this->_usedModelSets['navigation'])) {
404 404
             $conn->executeUpdate('DELETE FROM navigation_tour_pois');
405 405
             $conn->executeUpdate('DELETE FROM navigation_photos');
406 406
             $conn->executeUpdate('DELETE FROM navigation_pois');
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
             $conn->executeUpdate('DELETE FROM navigation_countries');
409 409
         }
410 410
         if (isset($this->_usedModelSets['directorytree'])) {
411
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier("file"));
411
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier("file"));
412 412
             // MySQL doesn't know deferred deletions therefore only executing the second query gives errors.
413 413
             $conn->executeUpdate('DELETE FROM Directory WHERE parentDirectory_id IS NOT NULL');
414 414
             $conn->executeUpdate('DELETE FROM Directory');
@@ -503,12 +503,12 @@  discard block
 block discarded – undo
503 503
                 )
504 504
             );
505 505
 
506
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-users-groups'));
507
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-group'));
508
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-phone'));
509
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-user'));
510
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-address'));
511
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-city'));
506
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-users-groups'));
507
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-group'));
508
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-phone'));
509
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-user'));
510
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-address'));
511
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-city'));
512 512
         }
513 513
 
514 514
         if (isset($this->_usedModelSets['vct_onetoone'])) {
@@ -647,9 +647,9 @@  discard block
 block discarded – undo
647 647
 
648 648
         if (isset($GLOBALS['DOCTRINE_MARK_SQL_LOGS'])) {
649 649
             if (in_array(static::$_sharedConn->getDatabasePlatform()->getName(), ["mysql", "postgresql"])) {
650
-                static::$_sharedConn->executeQuery('SELECT 1 /*' . get_class($this) . '*/');
650
+                static::$_sharedConn->executeQuery('SELECT 1 /*'.get_class($this).'*/');
651 651
             } else if (static::$_sharedConn->getDatabasePlatform()->getName() == "oracle") {
652
-                static::$_sharedConn->executeQuery('SELECT 1 /*' . get_class($this) . '*/ FROM dual');
652
+                static::$_sharedConn->executeQuery('SELECT 1 /*'.get_class($this).'*/ FROM dual');
653 653
             }
654 654
         }
655 655
 
@@ -711,7 +711,7 @@  discard block
 block discarded – undo
711 711
         $config = new Configuration();
712 712
         $config->setMetadataCacheImpl(self::$_metadataCacheImpl);
713 713
         $config->setQueryCacheImpl(self::$_queryCacheImpl);
714
-        $config->setProxyDir(__DIR__ . '/Proxies');
714
+        $config->setProxyDir(__DIR__.'/Proxies');
715 715
         $config->setProxyNamespace('Doctrine\Tests\Proxies');
716 716
 
717 717
         if (null !== $this->resultCacheImpl) {
@@ -743,8 +743,8 @@  discard block
 block discarded – undo
743 743
         $config->setMetadataDriverImpl(
744 744
             $mappingDriver ?? $config->newDefaultAnnotationDriver(
745 745
                 [
746
-                    realpath(__DIR__ . '/Models/Cache'),
747
-                    realpath(__DIR__ . '/Models/GeoNames')
746
+                    realpath(__DIR__.'/Models/Cache'),
747
+                    realpath(__DIR__.'/Models/GeoNames')
748 748
                 ],
749 749
                 true
750 750
             )
@@ -792,7 +792,7 @@  discard block
 block discarded – undo
792 792
             throw $e;
793 793
         }
794 794
 
795
-        if(isset($this->_sqlLoggerStack->queries) && count($this->_sqlLoggerStack->queries)) {
795
+        if (isset($this->_sqlLoggerStack->queries) && count($this->_sqlLoggerStack->queries)) {
796 796
             $queries = "";
797 797
             $last25queries = array_slice(array_reverse($this->_sqlLoggerStack->queries, true), 0, 25, true);
798 798
             foreach ($last25queries as $i => $query) {
@@ -803,9 +803,9 @@  discard block
 block discarded – undo
803 803
 
804 804
             $trace = $e->getTrace();
805 805
             $traceMsg = "";
806
-            foreach($trace AS $part) {
807
-                if(isset($part['file'])) {
808
-                    if(strpos($part['file'], "PHPUnit/") !== false) {
806
+            foreach ($trace AS $part) {
807
+                if (isset($part['file'])) {
808
+                    if (strpos($part['file'], "PHPUnit/") !== false) {
809 809
                         // Beginning with PHPUnit files we don't print the trace anymore.
810 810
                         break;
811 811
                     }
@@ -816,7 +816,7 @@  discard block
 block discarded – undo
816 816
 
817 817
             $message = "[".get_class($e)."] ".$e->getMessage().PHP_EOL.PHP_EOL."With queries:".PHP_EOL.$queries.PHP_EOL."Trace:".PHP_EOL.$traceMsg;
818 818
 
819
-            throw new \Exception($message, (int)$e->getCode(), $e);
819
+            throw new \Exception($message, (int) $e->getCode(), $e);
820 820
         }
821 821
         throw $e;
822 822
     }
Please login to merge, or discard this patch.