Completed
Pull Request — master (#7902)
by
unknown
63:54
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3644Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     {
157 157
         $this->addresses = $addresses;
158 158
 
159
-        $addresses->map(function ($address) {
159
+        $addresses->map(function($address) {
160 160
             $address->user = $this;
161 161
         });
162 162
     }
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     {
166 166
         $this->pets = $pets;
167 167
 
168
-        $pets->map(function ($pet) {
168
+        $pets->map(function($pet) {
169 169
             $pet->owner = $this;
170 170
         });
171 171
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Builder/OneToManyAssociationMetadataBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         $associationMetadata->setOwningSide(false);
47 47
         $associationMetadata->setMappedBy($this->oneToManyAnnotation->mappedBy);
48 48
 
49
-        if (! empty($this->oneToManyAnnotation->indexBy)) {
49
+        if ( ! empty($this->oneToManyAnnotation->indexBy)) {
50 50
             $associationMetadata->setIndexedBy($this->oneToManyAnnotation->indexBy);
51 51
         }
52 52
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Builder/ManyToManyAssociationMetadataBuilder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -86,16 +86,16 @@  discard block
 block discarded – undo
86 86
         $associationMetadata->setFetchMode($this->getFetchMode($this->manyToManyAnnotation->fetch));
87 87
         $associationMetadata->setOwningSide(true);
88 88
 
89
-        if (! empty($this->manyToManyAnnotation->mappedBy)) {
89
+        if ( ! empty($this->manyToManyAnnotation->mappedBy)) {
90 90
             $associationMetadata->setMappedBy($this->manyToManyAnnotation->mappedBy);
91 91
             $associationMetadata->setOwningSide(false);
92 92
         }
93 93
 
94
-        if (! empty($this->manyToManyAnnotation->inversedBy)) {
94
+        if ( ! empty($this->manyToManyAnnotation->inversedBy)) {
95 95
             $associationMetadata->setInversedBy($this->manyToManyAnnotation->inversedBy);
96 96
         }
97 97
 
98
-        if (! empty($this->manyToManyAnnotation->indexBy)) {
98
+        if ( ! empty($this->manyToManyAnnotation->indexBy)) {
99 99
             $associationMetadata->setIndexedBy($this->manyToManyAnnotation->indexBy);
100 100
         }
101 101
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         $this->buildCache($associationMetadata);
114 114
 
115 115
         // Check for owning side to consider join column
116
-        if (! $associationMetadata->isOwningSide()) {
116
+        if ( ! $associationMetadata->isOwningSide()) {
117 117
             return $associationMetadata;
118 118
         }
119 119
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Builder/ManyToOneAssociationMetadataBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $associationMetadata->setFetchMode($this->getFetchMode($this->manyToOneAnnotation->fetch));
42 42
         $associationMetadata->setOwningSide(true);
43 43
 
44
-        if (! empty($this->manyToOneAnnotation->inversedBy)) {
44
+        if ( ! empty($this->manyToOneAnnotation->inversedBy)) {
45 45
             $associationMetadata->setInversedBy($this->manyToOneAnnotation->inversedBy);
46 46
         }
47 47
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/ComponentMetadata.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         // Restore ReflectionClass and properties
59 59
         $this->reflectionClass = $reflectionService->getClass($this->className);
60 60
 
61
-        if (! $this->reflectionClass) {
61
+        if ( ! $this->reflectionClass) {
62 62
             return;
63 63
         }
64 64
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Builder/ClassMetadataBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $this->metadataBuildingContext            = $metadataBuildingContext;
67 67
         $this->tableMetadataBuilder               = $tableMetadataBuilder ?: new TableMetadataBuilder($metadataBuildingContext);
68 68
         $this->cacheMetadataBuilder               = $cacheMetadataBuilder ?: new CacheMetadataBuilder($metadataBuildingContext);
69
-        $this->discriminatorColumnMetadataBuilder = $discriminatorColumnMetadataBuilder?: new DiscriminatorColumnMetadataBuilder($metadataBuildingContext);
69
+        $this->discriminatorColumnMetadataBuilder = $discriminatorColumnMetadataBuilder ?: new DiscriminatorColumnMetadataBuilder($metadataBuildingContext);
70 70
     }
71 71
 
72 72
     public function withClassName(string $className) : ClassMetadataBuilder
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
             && $parentMetadata->inheritanceType === Mapping\InheritanceType::SINGLE_TABLE) {
234 234
             // Handle the case where a middle mapped super class inherits from a single table inheritance tree.
235 235
             do {
236
-                if (! $parentMetadata->isMappedSuperclass) {
236
+                if ( ! $parentMetadata->isMappedSuperclass) {
237 237
                     $tableMetadata = $parentMetadata->table;
238 238
                     break;
239 239
                 }
Please login to merge, or discard this patch.
tests/Doctrine/Performance/Query/QueryBoundParameterProcessingBench.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@
 block discarded – undo
57 57
         $this->parsedQueryWithDeclaredParameterType = $entityManager->createQuery($dql);
58 58
 
59 59
         foreach (\range(1, 10) as $index) {
60
-            $this->parsedQueryWithInferredParameterType->setParameter('parameter' . $index, new DateTime());
61
-            $this->parsedQueryWithDeclaredParameterType->setParameter('parameter' . $index, new DateTime(), DateTimeType::DATETIME);
60
+            $this->parsedQueryWithInferredParameterType->setParameter('parameter'.$index, new DateTime());
61
+            $this->parsedQueryWithDeclaredParameterType->setParameter('parameter'.$index, new DateTime(), DateTimeType::DATETIME);
62 62
         }
63 63
 
64 64
         // Force parsing upfront - we don't benchmark that bit in this scenario
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
@@ -25,13 +25,13 @@  discard block
 block discarded – undo
25 25
     {
26 26
         $config = new Configuration();
27 27
 
28
-        $config->setProxyDir(__DIR__ . '/../Tests/Proxies');
28
+        $config->setProxyDir(__DIR__.'/../Tests/Proxies');
29 29
         $config->setProxyNamespace('Doctrine\Tests\Proxies');
30 30
         $config->setAutoGenerateProxyClasses(StaticProxyFactory::AUTOGENERATE_EVAL);
31 31
         $config->setMetadataDriverImpl(
32 32
             $config->newDefaultAnnotationDriver([
33
-                \realpath(__DIR__ . '/Models/Cache'),
34
-                \realpath(__DIR__ . '/Models/GeoNames'),
33
+                \realpath(__DIR__.'/Models/Cache'),
34
+                \realpath(__DIR__.'/Models/GeoNames'),
35 35
             ])
36 36
         );
37 37
 
@@ -53,15 +53,15 @@  discard block
 block discarded – undo
53 53
     {
54 54
         $config = new Configuration();
55 55
 
56
-        $config->setProxyDir(__DIR__ . '/../Tests/Proxies');
56
+        $config->setProxyDir(__DIR__.'/../Tests/Proxies');
57 57
         $config->setProxyNamespace('Doctrine\Tests\Proxies');
58 58
         $config->setAutoGenerateProxyClasses(ProxyFactory::AUTOGENERATE_EVAL);
59 59
         $config->setMetadataDriverImpl(
60 60
             $config->newDefaultAnnotationDriver(
61 61
                 [
62
-                    \realpath(__DIR__ . '/Models/Cache'),
63
-                    \realpath(__DIR__ . '/Models/Generic'),
64
-                    \realpath(__DIR__ . '/Models/GeoNames'),
62
+                    \realpath(__DIR__.'/Models/Cache'),
63
+                    \realpath(__DIR__.'/Models/Generic'),
64
+                    \realpath(__DIR__.'/Models/GeoNames'),
65 65
                 ]
66 66
             )
67 67
         );
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Proxy/ProxyFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
                     self::isInstanceOf(CompanyEmployee::class)
235 235
                 )
236 236
             )
237
-            ->willReturnCallback(static function (array $id, CompanyEmployee $companyEmployee) {
237
+            ->willReturnCallback(static function(array $id, CompanyEmployee $companyEmployee) {
238 238
                 $companyEmployee->setSalary(1000); // A property on the CompanyEmployee
239 239
                 $companyEmployee->setName('Bob'); // A property on the parent class, CompanyPerson
240 240
 
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
                     self::isInstanceOf(ComparableObject::class)
297 297
                 )
298 298
             )
299
-            ->willReturnCallback(static function (array $id, ComparableObject $comparableObject) {
299
+            ->willReturnCallback(static function(array $id, ComparableObject $comparableObject) {
300 300
                 $comparableObject->setComparedFieldValue(\json_encode($id));
301 301
 
302 302
                 return $comparableObject;
Please login to merge, or discard this patch.