Failed Conditions
Pull Request — develop (#6935)
by Michael
65:23
created
tests/Doctrine/Tests/ORM/Hydration/ResultSetMappingTest.php 1 patch
Spacing   +5 added lines, -5 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\Hydration;
6 6
 
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
     {
85 85
         $rms = $this->rsm;
86 86
 
87
-        $this->rsm->addEntityResult(CmsUser::class,'u');
88
-        $this->rsm->addJoinedEntityResult(CmsPhonenumber::class,'p','u','phonenumbers');
87
+        $this->rsm->addEntityResult(CmsUser::class, 'u');
88
+        $this->rsm->addJoinedEntityResult(CmsPhonenumber::class, 'p', 'u', 'phonenumbers');
89 89
         $this->rsm->addFieldResult('u', 'id', 'id');
90 90
         $this->rsm->addFieldResult('u', 'name', 'name');
91 91
         $this->rsm->setDiscriminatorColumn('name', 'name');
@@ -278,8 +278,8 @@  discard block
 block discarded – undo
278 278
     {
279 279
         $this->rsm->addEntityResult(LegacyUser::class, 'u');
280 280
         $this->rsm->addJoinedEntityResult(LegacyUserReference::class, 'lu', 'u', '_references');
281
-        $this->rsm->addMetaResult('lu', '_source',  '_source', true, Type::getType('integer'));
282
-        $this->rsm->addMetaResult('lu', '_target',  '_target', true, Type::getType('integer'));
281
+        $this->rsm->addMetaResult('lu', '_source', '_source', true, Type::getType('integer'));
282
+        $this->rsm->addMetaResult('lu', '_target', '_target', true, Type::getType('integer'));
283 283
         $this->rsm->addIndexBy('lu', '_source');
284 284
 
285 285
         self::assertTrue($this->rsm->hasIndexBy('lu'));
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Hydration/SimpleObjectHydratorTest.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -33,10 +33,10 @@  discard block
 block discarded – undo
33 33
         $rsm->setDiscriminatorColumn('p', 'discr');
34 34
 
35 35
         $resultSet = [
36
-              [
37
-                  'u__id'   => '1',
38
-                  'u__name' => 'Fabio B. Silva'
39
-              ],
36
+                [
37
+                    'u__id'   => '1',
38
+                    'u__name' => 'Fabio B. Silva'
39
+                ],
40 40
         ];
41 41
 
42 42
         $stmt     = new HydratorMockStatement($resultSet);
@@ -89,11 +89,11 @@  discard block
 block discarded – undo
89 89
         $rsm->setDiscriminatorColumn('p', 'discr');
90 90
 
91 91
         $resultSet = [
92
-              [
93
-                  'p__id'   => '1',
94
-                  'p__name' => 'Fabio B. Silva',
95
-                  'discr'   => 'subworker'
96
-              ],
92
+                [
93
+                    'p__id'   => '1',
94
+                    'p__name' => 'Fabio B. Silva',
95
+                    'discr'   => 'subworker'
96
+                ],
97 97
         ];
98 98
 
99 99
         $stmt     = new HydratorMockStatement($resultSet);
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\Hydration;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Tools/SchemaToolTest.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\Tools;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Tools/Console/MetadataFilterTest.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\Tools\Console;
6 6
 
Please login to merge, or discard this patch.
Tests/ORM/Tools/Console/Command/ClearCacheCollectionRegionCommandTest.php 1 patch
Spacing   +5 added lines, -5 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\Tools\Console\Command;
6 6
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             ], ['decorated' => false]
56 56
         );
57 57
 
58
-        self::assertEquals('Clearing all second-level cache collection regions' . PHP_EOL, $tester->getDisplay());
58
+        self::assertEquals('Clearing all second-level cache collection regions'.PHP_EOL, $tester->getDisplay());
59 59
     }
60 60
 
61 61
     public function testClearByOwnerEntityClassName()
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
             ], ['decorated' => false]
71 71
         );
72 72
 
73
-        self::assertEquals('Clearing second-level cache for collection "Doctrine\Tests\Models\Cache\State#cities"' . PHP_EOL, $tester->getDisplay());
73
+        self::assertEquals('Clearing second-level cache for collection "Doctrine\Tests\Models\Cache\State#cities"'.PHP_EOL, $tester->getDisplay());
74 74
     }
75 75
 
76 76
     public function testClearCacheEntryName()
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             ], ['decorated' => false]
87 87
         );
88 88
 
89
-        self::assertEquals('Clearing second-level cache entry for collection "Doctrine\Tests\Models\Cache\State#cities" owner entity identified by "1"' . PHP_EOL, $tester->getDisplay());
89
+        self::assertEquals('Clearing second-level cache entry for collection "Doctrine\Tests\Models\Cache\State#cities" owner entity identified by "1"'.PHP_EOL, $tester->getDisplay());
90 90
     }
91 91
 
92 92
     public function testFlushRegionName()
@@ -102,6 +102,6 @@  discard block
 block discarded – undo
102 102
             ], ['decorated' => false]
103 103
         );
104 104
 
105
-        self::assertEquals('Flushing cache provider configured for "Doctrine\Tests\Models\Cache\State#cities"' . PHP_EOL, $tester->getDisplay());
105
+        self::assertEquals('Flushing cache provider configured for "Doctrine\Tests\Models\Cache\State#cities"'.PHP_EOL, $tester->getDisplay());
106 106
     }
107 107
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Tools/Console/Command/InfoCommandTest.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\Tools\Console\Command;
6 6
 
Please login to merge, or discard this patch.
Tests/ORM/Tools/Console/Command/ClearCacheEntityRegionCommandTest.php 1 patch
Spacing   +5 added lines, -5 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\Tools\Console\Command;
6 6
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             ], ['decorated' => false]
56 56
         );
57 57
 
58
-        self::assertEquals('Clearing all second-level cache entity regions' . PHP_EOL, $tester->getDisplay());
58
+        self::assertEquals('Clearing all second-level cache entity regions'.PHP_EOL, $tester->getDisplay());
59 59
     }
60 60
 
61 61
     public function testClearByEntityClassName()
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             ], ['decorated' => false]
70 70
         );
71 71
 
72
-        self::assertEquals('Clearing second-level cache for entity "Doctrine\Tests\Models\Cache\Country"' . PHP_EOL, $tester->getDisplay());
72
+        self::assertEquals('Clearing second-level cache for entity "Doctrine\Tests\Models\Cache\Country"'.PHP_EOL, $tester->getDisplay());
73 73
     }
74 74
 
75 75
     public function testClearCacheEntryName()
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             ], ['decorated' => false]
85 85
         );
86 86
 
87
-        self::assertEquals('Clearing second-level cache entry for entity "Doctrine\Tests\Models\Cache\Country" identified by "1"' . PHP_EOL, $tester->getDisplay());
87
+        self::assertEquals('Clearing second-level cache entry for entity "Doctrine\Tests\Models\Cache\Country" identified by "1"'.PHP_EOL, $tester->getDisplay());
88 88
     }
89 89
 
90 90
     public function testFlushRegionName()
@@ -99,6 +99,6 @@  discard block
 block discarded – undo
99 99
             ], ['decorated' => false]
100 100
         );
101 101
 
102
-        self::assertEquals('Flushing cache provider configured for entity named "Doctrine\Tests\Models\Cache\Country"' . PHP_EOL, $tester->getDisplay());
102
+        self::assertEquals('Flushing cache provider configured for entity named "Doctrine\Tests\Models\Cache\Country"'.PHP_EOL, $tester->getDisplay());
103 103
     }
104 104
 }
Please login to merge, or discard this patch.
Tests/ORM/Tools/Console/Command/ClearCacheQueryRegionCommandTest.php 1 patch
Spacing   +5 added lines, -5 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\Tools\Console\Command;
6 6
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             ], ['decorated' => false]
55 55
         );
56 56
 
57
-        self::assertEquals('Clearing all second-level cache query regions' . PHP_EOL, $tester->getDisplay());
57
+        self::assertEquals('Clearing all second-level cache query regions'.PHP_EOL, $tester->getDisplay());
58 58
     }
59 59
 
60 60
     public function testClearDefaultRegionName()
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             ], ['decorated' => false]
69 69
         );
70 70
 
71
-        self::assertEquals('Clearing second-level cache query region named "query_cache_region"' . PHP_EOL, $tester->getDisplay());
71
+        self::assertEquals('Clearing second-level cache query region named "query_cache_region"'.PHP_EOL, $tester->getDisplay());
72 72
     }
73 73
 
74 74
     public function testClearByRegionName()
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             ], ['decorated' => false]
83 83
         );
84 84
 
85
-        self::assertEquals('Clearing second-level cache query region named "my_region"' . PHP_EOL, $tester->getDisplay());
85
+        self::assertEquals('Clearing second-level cache query region named "my_region"'.PHP_EOL, $tester->getDisplay());
86 86
     }
87 87
 
88 88
     public function testFlushRegionName()
@@ -97,6 +97,6 @@  discard block
 block discarded – undo
97 97
             ], ['decorated' => false]
98 98
         );
99 99
 
100
-        self::assertEquals('Flushing cache provider configured for second-level cache query region named "my_region"' . PHP_EOL, $tester->getDisplay());
100
+        self::assertEquals('Flushing cache provider configured for second-level cache query region named "my_region"'.PHP_EOL, $tester->getDisplay());
101 101
     }
102 102
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Tools/Console/Command/RunDqlCommandTest.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\Tools\Console\Command;
6 6
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             $this->tester->execute(
70 70
                 [
71 71
                 'command' => $this->command->getName(),
72
-                'dql'     => 'SELECT e FROM ' . DateTimeModel::class . ' e',
72
+                'dql'     => 'SELECT e FROM '.DateTimeModel::class.' e',
73 73
                 ]
74 74
             )
75 75
         );
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             $this->tester->execute(
88 88
                 [
89 89
                 'command'    => $this->command->getName(),
90
-                'dql'        => 'SELECT e FROM ' . DateTimeModel::class . ' e',
90
+                'dql'        => 'SELECT e FROM '.DateTimeModel::class.' e',
91 91
                 '--show-sql' => 'true'
92 92
                 ]
93 93
             )
Please login to merge, or discard this patch.