@@ -408,7 +408,7 @@ discard block |
||
408 | 408 | $conn->executeUpdate('DELETE FROM RoutingLocation'); |
409 | 409 | } |
410 | 410 | |
411 | - if(isset($this->_usedModelSets['navigation'])) { |
|
411 | + if (isset($this->_usedModelSets['navigation'])) { |
|
412 | 412 | $conn->executeUpdate('DELETE FROM navigation_tour_pois'); |
413 | 413 | $conn->executeUpdate('DELETE FROM navigation_photos'); |
414 | 414 | $conn->executeUpdate('DELETE FROM navigation_pois'); |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | $conn->executeUpdate('DELETE FROM navigation_countries'); |
417 | 417 | } |
418 | 418 | if (isset($this->_usedModelSets['directorytree'])) { |
419 | - $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier("file")); |
|
419 | + $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier("file")); |
|
420 | 420 | // MySQL doesn't know deferred deletions therefore only executing the second query gives errors. |
421 | 421 | $conn->executeUpdate('DELETE FROM Directory WHERE parentDirectory_id IS NOT NULL'); |
422 | 422 | $conn->executeUpdate('DELETE FROM Directory'); |
@@ -511,12 +511,12 @@ discard block |
||
511 | 511 | ) |
512 | 512 | ); |
513 | 513 | |
514 | - $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-users-groups')); |
|
515 | - $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-group')); |
|
516 | - $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-phone')); |
|
517 | - $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-user')); |
|
518 | - $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-address')); |
|
519 | - $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-city')); |
|
514 | + $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-users-groups')); |
|
515 | + $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-group')); |
|
516 | + $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-phone')); |
|
517 | + $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-user')); |
|
518 | + $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-address')); |
|
519 | + $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-city')); |
|
520 | 520 | } |
521 | 521 | |
522 | 522 | if (isset($this->_usedModelSets['vct_onetoone'])) { |
@@ -655,9 +655,9 @@ discard block |
||
655 | 655 | |
656 | 656 | if (isset($GLOBALS['DOCTRINE_MARK_SQL_LOGS'])) { |
657 | 657 | if (in_array(static::$_sharedConn->getDatabasePlatform()->getName(), ["mysql", "postgresql"])) { |
658 | - static::$_sharedConn->executeQuery('SELECT 1 /*' . get_class($this) . '*/'); |
|
658 | + static::$_sharedConn->executeQuery('SELECT 1 /*'.get_class($this).'*/'); |
|
659 | 659 | } else if (static::$_sharedConn->getDatabasePlatform()->getName() == "oracle") { |
660 | - static::$_sharedConn->executeQuery('SELECT 1 /*' . get_class($this) . '*/ FROM dual'); |
|
660 | + static::$_sharedConn->executeQuery('SELECT 1 /*'.get_class($this).'*/ FROM dual'); |
|
661 | 661 | } |
662 | 662 | } |
663 | 663 | |
@@ -719,7 +719,7 @@ discard block |
||
719 | 719 | $config = new Configuration(); |
720 | 720 | $config->setMetadataCacheImpl(self::$_metadataCacheImpl); |
721 | 721 | $config->setQueryCacheImpl(self::$_queryCacheImpl); |
722 | - $config->setProxyDir(__DIR__ . '/Proxies'); |
|
722 | + $config->setProxyDir(__DIR__.'/Proxies'); |
|
723 | 723 | $config->setProxyNamespace('Doctrine\Tests\Proxies'); |
724 | 724 | |
725 | 725 | if (null !== $this->resultCacheImpl) { |
@@ -735,7 +735,7 @@ discard block |
||
735 | 735 | |
736 | 736 | $regionConfig = $cacheConfig->getRegionsConfiguration(); |
737 | 737 | $regionConfig->setDefaultLifetime(static::DEFAULT_CACHE_REGION_LIFE_TIME); |
738 | - $factory = new DefaultCacheFactory($regionConfig, $cache); |
|
738 | + $factory = new DefaultCacheFactory($regionConfig, $cache); |
|
739 | 739 | |
740 | 740 | $this->secondLevelCacheFactory = $factory; |
741 | 741 | |
@@ -754,8 +754,8 @@ discard block |
||
754 | 754 | $config->setMetadataDriverImpl( |
755 | 755 | $mappingDriver ?? $config->newDefaultAnnotationDriver( |
756 | 756 | [ |
757 | - realpath(__DIR__ . '/Models/Cache'), |
|
758 | - realpath(__DIR__ . '/Models/GeoNames') |
|
757 | + realpath(__DIR__.'/Models/Cache'), |
|
758 | + realpath(__DIR__.'/Models/GeoNames') |
|
759 | 759 | ], |
760 | 760 | true |
761 | 761 | ) |
@@ -803,7 +803,7 @@ discard block |
||
803 | 803 | throw $e; |
804 | 804 | } |
805 | 805 | |
806 | - if(isset($this->_sqlLoggerStack->queries) && count($this->_sqlLoggerStack->queries)) { |
|
806 | + if (isset($this->_sqlLoggerStack->queries) && count($this->_sqlLoggerStack->queries)) { |
|
807 | 807 | $queries = ""; |
808 | 808 | $last25queries = array_slice(array_reverse($this->_sqlLoggerStack->queries, true), 0, 25, true); |
809 | 809 | foreach ($last25queries as $i => $query) { |
@@ -814,9 +814,9 @@ discard block |
||
814 | 814 | |
815 | 815 | $trace = $e->getTrace(); |
816 | 816 | $traceMsg = ""; |
817 | - foreach($trace AS $part) { |
|
818 | - if(isset($part['file'])) { |
|
819 | - if(strpos($part['file'], "PHPUnit/") !== false) { |
|
817 | + foreach ($trace AS $part) { |
|
818 | + if (isset($part['file'])) { |
|
819 | + if (strpos($part['file'], "PHPUnit/") !== false) { |
|
820 | 820 | // Beginning with PHPUnit files we don't print the trace anymore. |
821 | 821 | break; |
822 | 822 | } |
@@ -827,7 +827,7 @@ discard block |
||
827 | 827 | |
828 | 828 | $message = "[".get_class($e)."] ".$e->getMessage().PHP_EOL.PHP_EOL."With queries:".PHP_EOL.$queries.PHP_EOL."Trace:".PHP_EOL.$traceMsg; |
829 | 829 | |
830 | - throw new \Exception($message, (int)$e->getCode(), $e); |
|
830 | + throw new \Exception($message, (int) $e->getCode(), $e); |
|
831 | 831 | } |
832 | 832 | throw $e; |
833 | 833 | } |