Failed Conditions
Pull Request — develop (#6935)
by Michael
65:23
created
tests/Doctrine/Tests/ORM/Entity/ConstructorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Entity;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Repository/DefaultRepositoryFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Repository;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Sequencing/SequenceGeneratorTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Sequencing;
6 6
 
@@ -45,13 +45,13 @@  discard block
 block discarded – undo
45 45
 
46 46
         for ($i = 0; $i < 42; ++$i) {
47 47
             if ($i % 10 === 0) {
48
-                $this->connection->setQueryResult(new StatementArrayMock([[(int)($i / 10) * 10]]));
48
+                $this->connection->setQueryResult(new StatementArrayMock([[(int) ($i / 10) * 10]]));
49 49
             }
50 50
 
51 51
             $id = $this->sequenceGenerator->generate($this->entityManager, null);
52 52
 
53 53
             self::assertSame($i, $id);
54
-            self::assertSame((int)($i / 10) * 10 + 10, $this->sequenceGenerator->getCurrentMaxValue());
54
+            self::assertSame((int) ($i / 10) * 10 + 10, $this->sequenceGenerator->getCurrentMaxValue());
55 55
             self::assertSame($i + 1, $this->sequenceGenerator->getNextValue());
56 56
         }
57 57
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Decorator/EntityManagerDecoratorTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Decorator;
6 6
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $methods = [];
34 34
 
35 35
         foreach ($class->getMethods() as $method) {
36
-            if ($method->isConstructor() || $method->isStatic() || !$method->isPublic()) {
36
+            if ($method->isConstructor() || $method->isStatic() || ! $method->isPublic()) {
37 37
                 continue;
38 38
             }
39 39
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
         /** Special case EntityManager::transactional() */
54 54
         if ($method->getName() === 'transactional') {
55
-            return [$method->getName(), [function () {}]];
55
+            return [$method->getName(), [function() {}]];
56 56
         }
57 57
 
58 58
         if ($method->getNumberOfRequiredParameters() === 0) {
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/SqlWalkerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Query;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/ExprTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@
 block discarded – undo
233 233
      */
234 234
     public function testLiteralExprProperlyQuotesStrings()
235 235
     {
236
-       self::assertEquals("'00010001'", (string) $this->expr->literal('00010001'));
236
+        self::assertEquals("'00010001'", (string) $this->expr->literal('00010001'));
237 237
     }
238 238
 
239 239
     public function testGreaterThanOrEqualToExpr()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Query;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/QueryTest.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -88,18 +88,18 @@
 block discarded – undo
88 88
     {
89 89
         $q = $this->em->createQuery("select a from Doctrine\Tests\Models\CMS\CmsArticle a");
90 90
         $q2 = $q->expireQueryCache(true)
91
-          ->setQueryCacheLifetime(3600)
92
-          ->setQueryCacheDriver(null)
93
-          ->expireResultCache(true)
94
-          ->setHint('foo', 'bar')
95
-          ->setHint('bar', 'baz')
96
-          ->setParameter(1, 'bar')
97
-          ->setParameters(new ArrayCollection([new Parameter(2, 'baz')]))
98
-          ->setResultCacheDriver(null)
99
-          ->setResultCacheId('foo')
100
-          ->setDQL('foo')
101
-          ->setFirstResult(10)
102
-          ->setMaxResults(10);
91
+            ->setQueryCacheLifetime(3600)
92
+            ->setQueryCacheDriver(null)
93
+            ->expireResultCache(true)
94
+            ->setHint('foo', 'bar')
95
+            ->setHint('bar', 'baz')
96
+            ->setParameter(1, 'bar')
97
+            ->setParameters(new ArrayCollection([new Parameter(2, 'baz')]))
98
+            ->setResultCacheDriver(null)
99
+            ->setResultCacheId('foo')
100
+            ->setDQL('foo')
101
+            ->setFirstResult(10)
102
+            ->setMaxResults(10);
103 103
 
104 104
         self::assertSame($q2, $q);
105 105
     }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Query;
6 6
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
             9 => "St Julien"
167 167
         ];
168 168
 
169
-        $query  = $this->em
169
+        $query = $this->em
170 170
                 ->createQuery("SELECT a FROM Doctrine\Tests\Models\CMS\CmsAddress a WHERE a.city IN (:cities)")
171 171
                 ->setParameter('cities', $cities);
172 172
 
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
      */
183 183
     public function testProcessParameterValueClassMetadata()
184 184
     {
185
-        $query  = $this->em->createQuery("SELECT a FROM Doctrine\Tests\Models\CMS\CmsAddress a WHERE a.city IN (:cities)");
185
+        $query = $this->em->createQuery("SELECT a FROM Doctrine\Tests\Models\CMS\CmsAddress a WHERE a.city IN (:cities)");
186 186
         self::assertEquals(
187 187
             CmsAddress::class,
188 188
             $query->processParameterValue($this->em->getClassMetadata(CmsAddress::class))
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/QueryExpressionVisitorTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Query;
6 6
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     protected function setUp()
32 32
     {
33
-        $this->visitor = new QueryExpressionVisitor(['o','p']);
33
+        $this->visitor = new QueryExpressionVisitor(['o', 'p']);
34 34
     }
35 35
 
36 36
     /**
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/ParserTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Query;
6 6
 
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function testAbstractSchemaNameSupportsClassnamesWithLeadingBackslash()
33 33
     {
34
-        $parser = $this->createParser('\\' . CmsUser::class);
34
+        $parser = $this->createParser('\\'.CmsUser::class);
35 35
 
36
-        self::assertEquals('\\' . CmsUser::class, $parser->AbstractSchemaName());
36
+        self::assertEquals('\\'.CmsUser::class, $parser->AbstractSchemaName());
37 37
     }
38 38
 
39 39
     /**
Please login to merge, or discard this patch.