Completed
Pull Request — master (#7921)
by Guilherme
14:09
created
tests/Doctrine/Tests/ORM/Query/ParameterTypeInfererTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -18,16 +18,16 @@
 block discarded – undo
18 18
     public function providerParameterTypeInferer()
19 19
     {
20 20
         $data = [
21
-            [1,                 Type::INTEGER],
22
-            ['bar',             Type::STRING],
23
-            ['1',               Type::STRING],
24
-            [new DateTime(),    Type::DATETIME],
21
+            [1, Type::INTEGER],
22
+            ['bar', Type::STRING],
23
+            ['1', Type::STRING],
24
+            [new DateTime(), Type::DATETIME],
25 25
             [new DateInterval('P1D'), Type::DATEINTERVAL],
26
-            [[2],               Connection::PARAM_INT_ARRAY],
27
-            [['foo'],           Connection::PARAM_STR_ARRAY],
28
-            [['1','2'],         Connection::PARAM_STR_ARRAY],
29
-            [[],                Connection::PARAM_STR_ARRAY],
30
-            [true,              Type::BOOLEAN],
26
+            [[2], Connection::PARAM_INT_ARRAY],
27
+            [['foo'], Connection::PARAM_STR_ARRAY],
28
+            [['1', '2'], Connection::PARAM_STR_ARRAY],
29
+            [[], Connection::PARAM_STR_ARRAY],
30
+            [true, Type::BOOLEAN],
31 31
         ];
32 32
 
33 33
         if (PHP_VERSION_ID >= 50500) {
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/HydrationCacheTest.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -36,37 +36,37 @@
 block discarded – undo
36 36
         $dql   = 'SELECT u FROM Doctrine\Tests\Models\Cms\CmsUser u';
37 37
 
38 38
         $users = $this->em->createQuery($dql)
39
-              ->setHydrationCacheProfile(new QueryCacheProfile(0, null, $cache))
40
-              ->getResult();
39
+                ->setHydrationCacheProfile(new QueryCacheProfile(0, null, $cache))
40
+                ->getResult();
41 41
 
42 42
         $c     = $this->getCurrentQueryCount();
43 43
         $users = $this->em->createQuery($dql)
44
-              ->setHydrationCacheProfile(new QueryCacheProfile(0, null, $cache))
45
-              ->getResult();
44
+                ->setHydrationCacheProfile(new QueryCacheProfile(0, null, $cache))
45
+                ->getResult();
46 46
 
47 47
         self::assertEquals($c, $this->getCurrentQueryCount(), 'Should not execute query. Its cached!');
48 48
 
49 49
         $users = $this->em->createQuery($dql)
50
-              ->setHydrationCacheProfile(new QueryCacheProfile(0, null, $cache))
51
-              ->getArrayResult();
50
+                ->setHydrationCacheProfile(new QueryCacheProfile(0, null, $cache))
51
+                ->getArrayResult();
52 52
 
53 53
         self::assertEquals($c + 1, $this->getCurrentQueryCount(), 'Hydration is part of cache key.');
54 54
 
55 55
         $users = $this->em->createQuery($dql)
56
-              ->setHydrationCacheProfile(new QueryCacheProfile(0, null, $cache))
57
-              ->getArrayResult();
56
+                ->setHydrationCacheProfile(new QueryCacheProfile(0, null, $cache))
57
+                ->getArrayResult();
58 58
 
59 59
         self::assertEquals($c + 1, $this->getCurrentQueryCount(), 'Hydration now cached');
60 60
 
61 61
         $users = $this->em->createQuery($dql)
62
-              ->setHydrationCacheProfile(new QueryCacheProfile(0, 'cachekey', $cache))
63
-              ->getArrayResult();
62
+                ->setHydrationCacheProfile(new QueryCacheProfile(0, 'cachekey', $cache))
63
+                ->getArrayResult();
64 64
 
65 65
         self::assertTrue($cache->contains('cachekey'), 'Explicit cache key');
66 66
 
67 67
         $users = $this->em->createQuery($dql)
68
-              ->setHydrationCacheProfile(new QueryCacheProfile(0, 'cachekey', $cache))
69
-              ->getArrayResult();
68
+                ->setHydrationCacheProfile(new QueryCacheProfile(0, 'cachekey', $cache))
69
+                ->getArrayResult();
70 70
 
71 71
         self::assertEquals($c + 2, $this->getCurrentQueryCount(), 'Hydration now cached');
72 72
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Decorator/EntityManagerDecoratorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 
55 55
         /** Special case EntityManager::transactional() */
56 56
         if ($method->getName() === 'transactional') {
57
-            $staticVoidFunction = static function () {
57
+            $staticVoidFunction = static function() {
58 58
             };
59 59
 
60 60
             return [$method->getName(), [$staticVoidFunction]];
Please login to merge, or discard this patch.