Completed
Pull Request — 2.5 (#7639)
by
unknown
03:04
created
lib/Doctrine/ORM/Query/AST/Functions/LengthFunction.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker)
43 43
     {
44 44
         return $sqlWalker->getConnection()->getDatabasePlatform()->getLengthExpression(
45
-               $sqlWalker->walkSimpleArithmeticExpression($this->stringPrimary)
45
+                $sqlWalker->walkSimpleArithmeticExpression($this->stringPrimary)
46 46
         );
47 47
     }
48 48
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/AST/Functions/ModFunction.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@
 block discarded – undo
50 50
     public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker)
51 51
     {
52 52
         return $sqlWalker->getConnection()->getDatabasePlatform()->getModExpression(
53
-               $sqlWalker->walkSimpleArithmeticExpression($this->firstSimpleArithmeticExpression),
54
-               $sqlWalker->walkSimpleArithmeticExpression($this->secondSimpleArithmeticExpression)
53
+                $sqlWalker->walkSimpleArithmeticExpression($this->firstSimpleArithmeticExpression),
54
+                $sqlWalker->walkSimpleArithmeticExpression($this->secondSimpleArithmeticExpression)
55 55
         );
56 56
     }
57 57
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/TimestampCacheEntry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     public function __construct($time = null)
42 42
     {
43
-        $this->time = $time ? (float)$time : microtime(true);
43
+        $this->time = $time ? (float) $time : microtime(true);
44 44
     }
45 45
 
46 46
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/DefaultNamingStrategy.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function joinColumnName($propertyName, $className = null)
73 73
     {
74
-        return $propertyName . '_' . $this->referenceColumnName();
74
+        return $propertyName.'_'.$this->referenceColumnName();
75 75
     }
76 76
 
77 77
     /**
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     public function joinTableName($sourceEntity, $targetEntity, $propertyName = null)
81 81
     {
82
-        return strtolower($this->classToTableName($sourceEntity) . '_' .
82
+        return strtolower($this->classToTableName($sourceEntity).'_'.
83 83
                 $this->classToTableName($targetEntity));
84 84
     }
85 85
     
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     public function joinKeyColumnName($entityName, $referencedColumnName = null)
90 90
     {
91
-        return strtolower($this->classToTableName($entityName) . '_' .
91
+        return strtolower($this->classToTableName($entityName).'_'.
92 92
                 ($referencedColumnName ?: $this->referenceColumnName()));
93 93
     }
94 94
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Builder/FieldBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     public function nullable($flag = true)
88 88
     {
89
-        $this->mapping['nullable'] = (bool)$flag;
89
+        $this->mapping['nullable'] = (bool) $flag;
90 90
         return $this;
91 91
     }
92 92
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public function unique($flag = true)
101 101
     {
102
-        $this->mapping['unique'] = (bool)$flag;
102
+        $this->mapping['unique'] = (bool) $flag;
103 103
         return $this;
104 104
     }
105 105
 
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
     {
244 244
         $cm = $this->builder->getClassMetadata();
245 245
         if ($this->generatedValue) {
246
-            $cm->setIdGeneratorType(constant('Doctrine\ORM\Mapping\ClassMetadata::GENERATOR_TYPE_' . $this->generatedValue));
246
+            $cm->setIdGeneratorType(constant('Doctrine\ORM\Mapping\ClassMetadata::GENERATOR_TYPE_'.$this->generatedValue));
247 247
         }
248 248
         if ($this->version) {
249 249
             $cm->setVersionMapping($this->mapping);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
         $this->reverseEngineerMappingFromDatabase();
176 176
 
177 177
         if ( ! isset($this->classToTableNames[$className])) {
178
-            throw new \InvalidArgumentException("Unknown class " . $className);
178
+            throw new \InvalidArgumentException("Unknown class ".$className);
179 179
         }
180 180
 
181 181
         $tableName = $this->classToTableNames[$className];
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
 
287 287
             if ( ! $table->hasPrimaryKey()) {
288 288
                 throw new MappingException(
289
-                    "Table " . $table->getName() . " has no primary key. Doctrine does not ".
289
+                    "Table ".$table->getName()." has no primary key. Doctrine does not ".
290 290
                     "support reverse engineering from tables that don't have a primary key."
291 291
                 );
292 292
             }
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
         $tableName = $metadata->table['name'];
320 320
         $indexes   = $this->tables[$tableName]->getIndexes();
321 321
 
322
-        foreach($indexes as $index){
322
+        foreach ($indexes as $index) {
323 323
             if ($index->isPrimary()) {
324 324
                 continue;
325 325
             }
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
             case Type::STRING:
408 408
             case Type::TEXT:
409 409
                 $fieldMapping['length'] = $column->getLength();
410
-                $fieldMapping['options']['fixed']  = $column->getFixed();
410
+                $fieldMapping['options']['fixed'] = $column->getFixed();
411 411
                 break;
412 412
 
413 413
             case Type::DECIMAL:
@@ -506,7 +506,7 @@  discard block
 block discarded – undo
506 506
     {
507 507
         try {
508 508
             return $table->getPrimaryKey()->getColumns();
509
-        } catch(SchemaException $e) {
509
+        } catch (SchemaException $e) {
510 510
             // Do nothing
511 511
         }
512 512
 
@@ -523,10 +523,10 @@  discard block
 block discarded – undo
523 523
     private function getClassNameForTable($tableName)
524 524
     {
525 525
         if (isset($this->classNamesForTables[$tableName])) {
526
-            return $this->namespace . $this->classNamesForTables[$tableName];
526
+            return $this->namespace.$this->classNamesForTables[$tableName];
527 527
         }
528 528
 
529
-        return $this->namespace . Inflector::classify(strtolower($tableName));
529
+        return $this->namespace.Inflector::classify(strtolower($tableName));
530 530
     }
531 531
 
532 532
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         // Evaluate named native queries
109 109
         if (isset($element['namedNativeQueries'])) {
110 110
             foreach ($element['namedNativeQueries'] as $name => $mappingElement) {
111
-                if (!isset($mappingElement['name'])) {
111
+                if ( ! isset($mappingElement['name'])) {
112 112
                     $mappingElement['name'] = $name;
113 113
                 }
114 114
                 $metadata->addNamedNativeQuery(array(
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         // Evaluate sql result set mappings
124 124
         if (isset($element['sqlResultSetMappings'])) {
125 125
             foreach ($element['sqlResultSetMappings'] as $name => $resultSetMapping) {
126
-                if (!isset($resultSetMapping['name'])) {
126
+                if ( ! isset($resultSetMapping['name'])) {
127 127
                     $resultSetMapping['name'] = $name;
128 128
                 }
129 129
 
@@ -168,17 +168,17 @@  discard block
 block discarded – undo
168 168
         }
169 169
 
170 170
         if (isset($element['inheritanceType'])) {
171
-            $metadata->setInheritanceType(constant('Doctrine\ORM\Mapping\ClassMetadata::INHERITANCE_TYPE_' . strtoupper($element['inheritanceType'])));
171
+            $metadata->setInheritanceType(constant('Doctrine\ORM\Mapping\ClassMetadata::INHERITANCE_TYPE_'.strtoupper($element['inheritanceType'])));
172 172
 
173 173
             if ($metadata->inheritanceType != \Doctrine\ORM\Mapping\ClassMetadata::INHERITANCE_TYPE_NONE) {
174 174
                 // Evaluate discriminatorColumn
175 175
                 if (isset($element['discriminatorColumn'])) {
176 176
                     $discrColumn = $element['discriminatorColumn'];
177 177
                     $metadata->setDiscriminatorColumn(array(
178
-                        'name' => isset($discrColumn['name']) ? (string)$discrColumn['name'] : null,
179
-                        'type' => isset($discrColumn['type']) ? (string)$discrColumn['type'] : null,
180
-                        'length' => isset($discrColumn['length']) ? (string)$discrColumn['length'] : null,
181
-                        'columnDefinition' => isset($discrColumn['columnDefinition']) ? (string)$discrColumn['columnDefinition'] : null
178
+                        'name' => isset($discrColumn['name']) ? (string) $discrColumn['name'] : null,
179
+                        'type' => isset($discrColumn['type']) ? (string) $discrColumn['type'] : null,
180
+                        'length' => isset($discrColumn['length']) ? (string) $discrColumn['length'] : null,
181
+                        'columnDefinition' => isset($discrColumn['columnDefinition']) ? (string) $discrColumn['columnDefinition'] : null
182 182
                     ));
183 183
                 } else {
184 184
                     $metadata->setDiscriminatorColumn(array('name' => 'dtype', 'type' => 'string', 'length' => 255));
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
                 }
354 354
 
355 355
                 if (isset($oneToOneElement['fetch'])) {
356
-                    $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $oneToOneElement['fetch']);
356
+                    $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_'.$oneToOneElement['fetch']);
357 357
                 }
358 358
 
359 359
                 if (isset($oneToOneElement['mappedBy'])) {
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
                 }
386 386
 
387 387
                 if (isset($oneToOneElement['orphanRemoval'])) {
388
-                    $mapping['orphanRemoval'] = (bool)$oneToOneElement['orphanRemoval'];
388
+                    $mapping['orphanRemoval'] = (bool) $oneToOneElement['orphanRemoval'];
389 389
                 }
390 390
 
391 391
                 $metadata->mapOneToOne($mapping);
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
                 );
408 408
 
409 409
                 if (isset($oneToManyElement['fetch'])) {
410
-                    $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $oneToManyElement['fetch']);
410
+                    $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_'.$oneToManyElement['fetch']);
411 411
                 }
412 412
 
413 413
                 if (isset($oneToManyElement['cascade'])) {
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
                 }
416 416
 
417 417
                 if (isset($oneToManyElement['orphanRemoval'])) {
418
-                    $mapping['orphanRemoval'] = (bool)$oneToManyElement['orphanRemoval'];
418
+                    $mapping['orphanRemoval'] = (bool) $oneToManyElement['orphanRemoval'];
419 419
                 }
420 420
 
421 421
                 if (isset($oneToManyElement['orderBy'])) {
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
                 }
449 449
 
450 450
                 if (isset($manyToOneElement['fetch'])) {
451
-                    $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $manyToOneElement['fetch']);
451
+                    $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_'.$manyToOneElement['fetch']);
452 452
                 }
453 453
 
454 454
                 if (isset($manyToOneElement['inversedBy'])) {
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
                 );
494 494
 
495 495
                 if (isset($manyToManyElement['fetch'])) {
496
-                    $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $manyToManyElement['fetch']);
496
+                    $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_'.$manyToManyElement['fetch']);
497 497
                 }
498 498
 
499 499
                 if (isset($manyToManyElement['mappedBy'])) {
@@ -547,7 +547,7 @@  discard block
 block discarded – undo
547 547
                 }
548 548
 
549 549
                 if (isset($manyToManyElement['orphanRemoval'])) {
550
-                    $mapping['orphanRemoval'] = (bool)$manyToManyElement['orphanRemoval'];
550
+                    $mapping['orphanRemoval'] = (bool) $manyToManyElement['orphanRemoval'];
551 551
                 }
552 552
 
553 553
                 $metadata->mapManyToMany($mapping);
@@ -563,7 +563,7 @@  discard block
 block discarded – undo
563 563
         if (isset($element['associationOverride']) && is_array($element['associationOverride'])) {
564 564
 
565 565
             foreach ($element['associationOverride'] as $fieldName => $associationOverrideElement) {
566
-                $override   = array();
566
+                $override = array();
567 567
 
568 568
                 // Check for joinColumn
569 569
                 if (isset($associationOverrideElement['joinColumn'])) {
@@ -581,7 +581,7 @@  discard block
 block discarded – undo
581 581
                 if (isset($associationOverrideElement['joinTable'])) {
582 582
 
583 583
                     $joinTableElement   = $associationOverrideElement['joinTable'];
584
-                    $joinTable          =  array(
584
+                    $joinTable          = array(
585 585
                         'name' => $joinTableElement['name']
586 586
                     );
587 587
 
@@ -625,7 +625,7 @@  discard block
 block discarded – undo
625 625
         if (isset($element['lifecycleCallbacks'])) {
626 626
             foreach ($element['lifecycleCallbacks'] as $type => $methods) {
627 627
                 foreach ($methods as $method) {
628
-                    $metadata->addLifecycleCallback($method, constant('Doctrine\ORM\Events::' . $type));
628
+                    $metadata->addLifecycleCallback($method, constant('Doctrine\ORM\Events::'.$type));
629 629
                 }
630 630
             }
631 631
         }
@@ -640,7 +640,7 @@  discard block
 block discarded – undo
640 640
                     continue;
641 641
                 }
642 642
 
643
-                foreach ($entityListener as $eventName => $callbackElement){
643
+                foreach ($entityListener as $eventName => $callbackElement) {
644 644
                     foreach ($callbackElement as $methodName) {
645 645
                         $metadata->addEntityListener($eventName, $className, $methodName);
646 646
                     }
@@ -732,7 +732,7 @@  discard block
 block discarded – undo
732 732
         }
733 733
 
734 734
         if (isset($column['unique'])) {
735
-            $mapping['unique'] = (bool)$column['unique'];
735
+            $mapping['unique'] = (bool) $column['unique'];
736 736
         }
737 737
 
738 738
         if (isset($column['options'])) {
@@ -766,12 +766,12 @@  discard block
 block discarded – undo
766 766
         $region = isset($cacheMapping['region']) ? (string) $cacheMapping['region'] : null;
767 767
         $usage  = isset($cacheMapping['usage']) ? strtoupper($cacheMapping['usage']) : null;
768 768
 
769
-        if ($usage && ! defined('Doctrine\ORM\Mapping\ClassMetadata::CACHE_USAGE_' . $usage)) {
769
+        if ($usage && ! defined('Doctrine\ORM\Mapping\ClassMetadata::CACHE_USAGE_'.$usage)) {
770 770
             throw new \InvalidArgumentException(sprintf('Invalid cache usage "%s"', $usage));
771 771
         }
772 772
 
773 773
         if ($usage) {
774
-            $usage = constant('Doctrine\ORM\Mapping\ClassMetadata::CACHE_USAGE_' . $usage);
774
+            $usage = constant('Doctrine\ORM\Mapping\ClassMetadata::CACHE_USAGE_'.$usage);
775 775
         }
776 776
 
777 777
         return array(
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
             $cacheAnnot = $classAnnotations['Doctrine\ORM\Mapping\Cache'];
148 148
             $cacheMap   = array(
149 149
                 'region' => $cacheAnnot->region,
150
-                'usage'  => constant('Doctrine\ORM\Mapping\ClassMetadata::CACHE_USAGE_' . $cacheAnnot->usage),
150
+                'usage'  => constant('Doctrine\ORM\Mapping\ClassMetadata::CACHE_USAGE_'.$cacheAnnot->usage),
151 151
             );
152 152
 
153 153
             $metadata->enableCache($cacheMap);
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
         // Evaluate InheritanceType annotation
228 228
         if (isset($classAnnotations['Doctrine\ORM\Mapping\InheritanceType'])) {
229 229
             $inheritanceTypeAnnot = $classAnnotations['Doctrine\ORM\Mapping\InheritanceType'];
230
-            $metadata->setInheritanceType(constant('Doctrine\ORM\Mapping\ClassMetadata::INHERITANCE_TYPE_' . $inheritanceTypeAnnot->value));
230
+            $metadata->setInheritanceType(constant('Doctrine\ORM\Mapping\ClassMetadata::INHERITANCE_TYPE_'.$inheritanceTypeAnnot->value));
231 231
 
232 232
             if ($metadata->inheritanceType != \Doctrine\ORM\Mapping\ClassMetadata::INHERITANCE_TYPE_NONE) {
233 233
                 // Evaluate DiscriminatorColumn annotation
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
         // Evaluate DoctrineChangeTrackingPolicy annotation
256 256
         if (isset($classAnnotations['Doctrine\ORM\Mapping\ChangeTrackingPolicy'])) {
257 257
             $changeTrackingAnnot = $classAnnotations['Doctrine\ORM\Mapping\ChangeTrackingPolicy'];
258
-            $metadata->setChangeTrackingPolicy(constant('Doctrine\ORM\Mapping\ClassMetadata::CHANGETRACKING_' . $changeTrackingAnnot->value));
258
+            $metadata->setChangeTrackingPolicy(constant('Doctrine\ORM\Mapping\ClassMetadata::CHANGETRACKING_'.$changeTrackingAnnot->value));
259 259
         }
260 260
 
261 261
         // Evaluate annotations on properties/fields
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
                 }
300 300
 
301 301
                 if ($generatedValueAnnot = $this->reader->getPropertyAnnotation($property, 'Doctrine\ORM\Mapping\GeneratedValue')) {
302
-                    $metadata->setIdGeneratorType(constant('Doctrine\ORM\Mapping\ClassMetadata::GENERATOR_TYPE_' . $generatedValueAnnot->strategy));
302
+                    $metadata->setIdGeneratorType(constant('Doctrine\ORM\Mapping\ClassMetadata::GENERATOR_TYPE_'.$generatedValueAnnot->strategy));
303 303
                 }
304 304
 
305 305
                 if ($this->reader->getPropertyAnnotation($property, 'Doctrine\ORM\Mapping\Version')) {
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
             // Evaluate @Cache annotation
401 401
             if (($cacheAnnot = $this->reader->getPropertyAnnotation($property, 'Doctrine\ORM\Mapping\Cache')) !== null) {
402 402
                 $metadata->enableAssociationCache($mapping['fieldName'], array(
403
-                    'usage'         => constant('Doctrine\ORM\Mapping\ClassMetadata::CACHE_USAGE_' . $cacheAnnot->usage),
403
+                    'usage'         => constant('Doctrine\ORM\Mapping\ClassMetadata::CACHE_USAGE_'.$cacheAnnot->usage),
404 404
                     'region'        => $cacheAnnot->region,
405 405
                 ));
406 406
             }
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
                     }
480 480
                 }
481 481
                 // Evaluate the listener using naming convention.
482
-                if ( ! $hasMapping ) {
482
+                if ( ! $hasMapping) {
483 483
                     EntityListenerBuilder::bindEntityListener($metadata, $listenerClassName);
484 484
                 }
485 485
             }
@@ -510,11 +510,11 @@  discard block
 block discarded – undo
510 510
      */
511 511
     private function getFetchMode($className, $fetchMode)
512 512
     {
513
-        if( ! defined('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $fetchMode)) {
514
-            throw MappingException::invalidFetchMode($className,  $fetchMode);
513
+        if ( ! defined('Doctrine\ORM\Mapping\ClassMetadata::FETCH_'.$fetchMode)) {
514
+            throw MappingException::invalidFetchMode($className, $fetchMode);
515 515
         }
516 516
 
517
-        return constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $fetchMode);
517
+        return constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_'.$fetchMode);
518 518
     }
519 519
 
520 520
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      */
106 106
     protected function onNotFoundMetadata($className)
107 107
     {
108
-        if (! $this->evm->hasListeners(Events::onClassMetadataNotFound)) {
108
+        if ( ! $this->evm->hasListeners(Events::onClassMetadataNotFound)) {
109 109
             return;
110 110
         }
111 111
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
             $this->completeIdGeneratorMapping($class);
175 175
         }
176 176
 
177
-        if (!$class->isMappedSuperclass) {
177
+        if ( ! $class->isMappedSuperclass) {
178 178
             foreach ($class->embeddedClasses as $property => $embeddableClass) {
179 179
 
180 180
                 if (isset($embeddableClass['inherited'])) {
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
      */
264 264
     protected function validateRuntimeMetadata($class, $parent)
265 265
     {
266
-        if ( ! $class->reflClass ) {
266
+        if ( ! $class->reflClass) {
267 267
             // only validate if there is a reflection class instance
268 268
             return;
269 269
         }
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
         $class->validateLifecycleCallbacks($this->getReflectionService());
274 274
 
275 275
         // verify inheritance
276
-        if ( ! $class->isMappedSuperclass && !$class->isInheritanceTypeNone()) {
276
+        if ( ! $class->isMappedSuperclass && ! $class->isInheritanceTypeNone()) {
277 277
             if ( ! $parent) {
278 278
                 if (count($class->discriminatorMap) == 0) {
279 279
                     throw MappingException::missingDiscriminatorMap($class->name);
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
     {
434 434
         foreach ($parentClass->associationMappings as $field => $mapping) {
435 435
             if ($parentClass->isMappedSuperclass) {
436
-                if ($mapping['type'] & ClassMetadata::TO_MANY && !$mapping['isOwningSide']) {
436
+                if ($mapping['type'] & ClassMetadata::TO_MANY && ! $mapping['isOwningSide']) {
437 437
                     throw MappingException::illegalToManyAssociationOnMappedSuperclass($parentClass->name, $field);
438 438
                 }
439 439
                 $mapping['sourceEntity'] = $subClass->name;
@@ -481,11 +481,11 @@  discard block
 block discarded – undo
481 481
             $embeddableMetadata = $this->getMetadataFor($embeddableClass['class']);
482 482
 
483 483
             $parentClass->mapEmbedded(array(
484
-                'fieldName' => $prefix . '.' . $property,
484
+                'fieldName' => $prefix.'.'.$property,
485 485
                 'class' => $embeddableMetadata->name,
486 486
                 'columnPrefix' => $embeddableClass['columnPrefix'],
487 487
                 'declaredField' => $embeddableClass['declaredField']
488
-                        ? $prefix . '.' . $embeddableClass['declaredField']
488
+                        ? $prefix.'.'.$embeddableClass['declaredField']
489 489
                         : $prefix,
490 490
                 'originalField' => $embeddableClass['originalField'] ?: $property,
491 491
             ));
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
      */
503 503
     private function addInheritedIndexes(ClassMetadata $subClass, ClassMetadata $parentClass)
504 504
     {
505
-        if (! $parentClass->isMappedSuperclass) {
505
+        if ( ! $parentClass->isMappedSuperclass) {
506 506
             return;
507 507
         }
508 508
 
@@ -701,14 +701,14 @@  discard block
 block discarded – undo
701 701
             case ClassMetadata::GENERATOR_TYPE_CUSTOM:
702 702
                 $definition = $class->customGeneratorDefinition;
703 703
                 if ( ! class_exists($definition['class'])) {
704
-                    throw new ORMException("Can't instantiate custom generator : " .
704
+                    throw new ORMException("Can't instantiate custom generator : ".
705 705
                         $definition['class']);
706 706
                 }
707 707
                 $class->setIdGenerator(new $definition['class']);
708 708
                 break;
709 709
 
710 710
             default:
711
-                throw new ORMException("Unknown generator type: " . $class->generatorType);
711
+                throw new ORMException("Unknown generator type: ".$class->generatorType);
712 712
         }
713 713
     }
714 714
 
@@ -735,7 +735,7 @@  discard block
 block discarded – undo
735 735
      */
736 736
     protected function getFqcnFromAlias($namespaceAlias, $simpleClassName)
737 737
     {
738
-        return $this->em->getConfiguration()->getEntityNamespace($namespaceAlias) . '\\' . $simpleClassName;
738
+        return $this->em->getConfiguration()->getEntityNamespace($namespaceAlias).'\\'.$simpleClassName;
739 739
     }
740 740
 
741 741
     /**
@@ -759,7 +759,7 @@  discard block
 block discarded – undo
759 759
      */
760 760
     private function getTargetPlatform()
761 761
     {
762
-        if (!$this->targetPlatform) {
762
+        if ( ! $this->targetPlatform) {
763 763
             $this->targetPlatform = $this->em->getConnection()->getDatabasePlatform();
764 764
         }
765 765
 
Please login to merge, or discard this patch.