Completed
Push — master ( 23a060...e747f7 )
by Luís
45s queued 37s
created
lib/Doctrine/ORM/Query.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 
233 233
         // Check query cache.
234 234
         $queryCache = $this->getQueryCacheDriver();
235
-        if (! ($this->useQueryCache && $queryCache)) {
235
+        if ( ! ($this->useQueryCache && $queryCache)) {
236 236
             $parser = new Parser($this);
237 237
 
238 238
             $this->parserResult = $parser->parse();
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
         foreach ($this->parameters as $parameter) {
368 368
             $key = $parameter->getName();
369 369
 
370
-            if (! isset($paramMappings[$key])) {
370
+            if ( ! isset($paramMappings[$key])) {
371 371
                 throw QueryException::unknownParameter($key);
372 372
             }
373 373
 
@@ -696,7 +696,7 @@  discard block
 block discarded – undo
696 696
     public function setLockMode($lockMode)
697 697
     {
698 698
         if (in_array($lockMode, [LockMode::NONE, LockMode::PESSIMISTIC_READ, LockMode::PESSIMISTIC_WRITE], true)) {
699
-            if (! $this->em->getConnection()->isTransactionActive()) {
699
+            if ( ! $this->em->getConnection()->isTransactionActive()) {
700 700
                 throw TransactionRequiredException::transactionRequired();
701 701
             }
702 702
         }
@@ -737,11 +737,11 @@  discard block
 block discarded – undo
737 737
             ->getName();
738 738
 
739 739
         return md5(
740
-            $this->getDQL() . serialize($this->hints) .
741
-            '&platform=' . $platform .
742
-            ($this->em->hasFilters() ? $this->em->getFilters()->getHash() : '') .
743
-            '&firstResult=' . $this->firstResult . '&maxResult=' . $this->maxResults .
744
-            '&hydrationMode=' . $this->hydrationMode . '&types=' . serialize($this->parsedTypes) . 'DOCTRINE_QUERY_CACHE_SALT'
740
+            $this->getDQL().serialize($this->hints).
741
+            '&platform='.$platform.
742
+            ($this->em->hasFilters() ? $this->em->getFilters()->getHash() : '').
743
+            '&firstResult='.$this->firstResult.'&maxResult='.$this->maxResults.
744
+            '&hydrationMode='.$this->hydrationMode.'&types='.serialize($this->parsedTypes).'DOCTRINE_QUERY_CACHE_SALT'
745 745
         );
746 746
     }
747 747
 
@@ -750,7 +750,7 @@  discard block
 block discarded – undo
750 750
      */
751 751
     protected function getHash()
752 752
     {
753
-        return sha1(parent::getHash() . '-' . $this->firstResult . '-' . $this->maxResults);
753
+        return sha1(parent::getHash().'-'.$this->firstResult.'-'.$this->maxResults);
754 754
     }
755 755
 
756 756
     /**
Please login to merge, or discard this patch.
tests/Doctrine/Performance/EntityManagerFactory.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,13 +23,13 @@  discard block
 block discarded – undo
23 23
     {
24 24
         $config = new Configuration();
25 25
 
26
-        $config->setProxyDir(__DIR__ . '/../Tests/Proxies');
26
+        $config->setProxyDir(__DIR__.'/../Tests/Proxies');
27 27
         $config->setProxyNamespace('Doctrine\Tests\Proxies');
28 28
         $config->setAutoGenerateProxyClasses(StaticProxyFactory::AUTOGENERATE_EVAL);
29 29
         $config->setMetadataDriverImpl(
30 30
             $config->newDefaultAnnotationDriver([
31
-                realpath(__DIR__ . '/Models/Cache'),
32
-                realpath(__DIR__ . '/Models/GeoNames'),
31
+                realpath(__DIR__.'/Models/Cache'),
32
+                realpath(__DIR__.'/Models/GeoNames'),
33 33
             ])
34 34
         );
35 35
 
@@ -51,13 +51,13 @@  discard block
 block discarded – undo
51 51
     {
52 52
         $config = new Configuration();
53 53
 
54
-        $config->setProxyDir(__DIR__ . '/../Tests/Proxies');
54
+        $config->setProxyDir(__DIR__.'/../Tests/Proxies');
55 55
         $config->setProxyNamespace('Doctrine\Tests\Proxies');
56 56
         $config->setAutoGenerateProxyClasses(ProxyFactory::AUTOGENERATE_EVAL);
57 57
         $config->setMetadataDriverImpl($config->newDefaultAnnotationDriver([
58
-            realpath(__DIR__ . '/Models/Cache'),
59
-            realpath(__DIR__ . '/Models/Generic'),
60
-            realpath(__DIR__ . '/Models/GeoNames'),
58
+            realpath(__DIR__.'/Models/Cache'),
59
+            realpath(__DIR__.'/Models/Generic'),
60
+            realpath(__DIR__.'/Models/GeoNames'),
61 61
         ], true));
62 62
 
63 63
         // A connection that doesn't really do anything
Please login to merge, or discard this patch.