Failed Conditions
Pull Request — develop (#6600)
by Mike
62:56
created
lib/Doctrine/ORM/UnitOfWork.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1237,7 +1237,7 @@  discard block
 block discarded – undo
1237 1237
     /**
1238 1238
      * Schedules an entity for being updated.
1239 1239
      *
1240
-     * @param object $entity The entity to schedule for being updated.
1240
+     * @param \Doctrine\Tests\Models\Forum\ForumUser $entity The entity to schedule for being updated.
1241 1241
      *
1242 1242
      * @return void
1243 1243
      *
@@ -1305,7 +1305,7 @@  discard block
 block discarded – undo
1305 1305
     /**
1306 1306
      * Checks whether an entity is registered to be checked in the unit of work.
1307 1307
      *
1308
-     * @param object $entity
1308
+     * @param \Doctrine\Tests\ORM\NotifyChangedEntity $entity
1309 1309
      *
1310 1310
      * @return boolean
1311 1311
      */
@@ -3121,7 +3121,7 @@  discard block
 block discarded – undo
3121 3121
      *
3122 3122
      * @param object $entity       The entity that owns the property.
3123 3123
      * @param string $propertyName The name of the property that changed.
3124
-     * @param mixed  $oldValue     The old value of the property.
3124
+     * @param null|integer  $oldValue     The old value of the property.
3125 3125
      * @param mixed  $newValue     The new value of the property.
3126 3126
      *
3127 3127
      * @return void
@@ -3321,7 +3321,7 @@  discard block
 block discarded – undo
3321 3321
     /**
3322 3322
      * Verifies if two given entities actually are the same based on identifier comparison
3323 3323
      *
3324
-     * @param object $entity1
3324
+     * @param Proxy $entity1
3325 3325
      * @param object $entity2
3326 3326
      *
3327 3327
      * @return bool
Please login to merge, or discard this patch.
Spacing   +42 added lines, -42 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\ORM;
6 6
 
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
         $oid  = spl_object_hash($entity);
451 451
         $data = [];
452 452
 
453
-        if (!isset($this->entityChangeSets[$oid])) {
453
+        if ( ! isset($this->entityChangeSets[$oid])) {
454 454
             return $data;
455 455
         }
456 456
 
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
                     || ! $class->getProperty($name) instanceof FieldMetadata
534 534
                     || ! $class->getProperty($name)->hasValueGenerator()
535 535
                     || $class->getProperty($name)->getValueGenerator()->getType() !== GeneratorType::IDENTITY
536
-                ) && (! $class->isVersioned() || $name !== $class->versionProperty->getName())) {
536
+                ) && ( ! $class->isVersioned() || $name !== $class->versionProperty->getName())) {
537 537
                 $actualData[$name] = $value;
538 538
             }
539 539
         }
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
                     if ($owner === null) { // cloned
588 588
                         $actualValue->setOwner($entity, $property);
589 589
                     } else if ($owner !== $entity) { // no clone, we have to fix
590
-                        if (! $actualValue->isInitialized()) {
590
+                        if ( ! $actualValue->isInitialized()) {
591 591
                             $actualValue->initialize(); // we have to do this otherwise the cols share state
592 592
                         }
593 593
 
@@ -627,7 +627,7 @@  discard block
 block discarded – undo
627 627
                             // A PersistentCollection was de-referenced, so delete it.
628 628
                             $coid = spl_object_hash($orgValue);
629 629
 
630
-                            if (!isset($this->collectionDeletions[$coid])) {
630
+                            if ( ! isset($this->collectionDeletions[$coid])) {
631 631
                                 $this->collectionDeletions[$coid] = $orgValue;
632 632
                                 $changeSet[$propName] = $orgValue; // Signal changeset, to-many associations will be ignored
633 633
                             }
@@ -649,7 +649,7 @@  discard block
 block discarded – undo
649 649
 
650 650
         // Look for changes in associations of the entity
651 651
         foreach ($class->getProperties() as $property) {
652
-            if (! ($property instanceof AssociationMetadata) || ($value = $property->getValue($entity)) === null) {
652
+            if ( ! ($property instanceof AssociationMetadata) || ($value = $property->getValue($entity)) === null) {
653 653
                 continue;
654 654
             }
655 655
 
@@ -753,13 +753,13 @@  discard block
 block discarded – undo
753 753
         $targetClass    = $this->em->getClassMetadata($targetEntity);
754 754
 
755 755
         foreach ($unwrappedValue as $key => $entry) {
756
-            if (! ($entry instanceof $targetEntity)) {
756
+            if ( ! ($entry instanceof $targetEntity)) {
757 757
                 throw ORMInvalidArgumentException::invalidAssociation($targetClass, $association, $entry);
758 758
             }
759 759
 
760 760
             $state = $this->getEntityState($entry, self::STATE_NEW);
761 761
 
762
-            if (! ($entry instanceof $targetEntity)) {
762
+            if ( ! ($entry instanceof $targetEntity)) {
763 763
                 throw ORMException::unexpectedAssociationValue(
764 764
                     $association->getSourceEntity(),
765 765
                     $association->getName(),
@@ -818,7 +818,7 @@  discard block
 block discarded – undo
818 818
         $persister = $this->getEntityPersister($class->getClassName());
819 819
         $generationPlan->executeImmediate($this->em, $entity);
820 820
 
821
-        if (! $generationPlan->containsDeferred()) {
821
+        if ( ! $generationPlan->containsDeferred()) {
822 822
             $id = $this->em->getIdentifierFlattener()->flattenIdentifier($class, $persister->getIdentifier($entity));
823 823
             $this->entityIdentifiers[$oid] = $id;
824 824
         }
@@ -872,7 +872,7 @@  discard block
 block discarded – undo
872 872
                     break;
873 873
 
874 874
                 case ($property instanceof FieldMetadata):
875
-                    if (! $property->isPrimaryKey()
875
+                    if ( ! $property->isPrimaryKey()
876 876
                         || ! $property->getValueGenerator()
877 877
                         || $property->getValueGenerator()->getType() !== GeneratorType::IDENTITY) {
878 878
                         $actualData[$name] = $property->getValue($entity);
@@ -1025,7 +1025,7 @@  discard block
 block discarded – undo
1025 1025
             // Entity with this $oid after deletion treated as NEW, even if the $oid
1026 1026
             // is obtained by a new entity because the old one went out of scope.
1027 1027
             //$this->entityStates[$oid] = self::STATE_NEW;
1028
-            if (! $class->isIdentifierComposite()) {
1028
+            if ( ! $class->isIdentifierComposite()) {
1029 1029
                 $property = $class->getProperty($class->getSingleIdentifierFieldName());
1030 1030
 
1031 1031
                 if ($property instanceof FieldMetadata && $property->hasValueGenerator()) {
@@ -1078,7 +1078,7 @@  discard block
 block discarded – undo
1078 1078
         // Calculate dependencies for new nodes
1079 1079
         while ($class = array_pop($newNodes)) {
1080 1080
             foreach ($class->getProperties() as $property) {
1081
-                if (! ($property instanceof ToOneAssociationMetadata && $property->isOwningSide())) {
1081
+                if ( ! ($property instanceof ToOneAssociationMetadata && $property->isOwningSide())) {
1082 1082
                     continue;
1083 1083
                 }
1084 1084
 
@@ -1093,7 +1093,7 @@  discard block
 block discarded – undo
1093 1093
                 $weight = count(
1094 1094
                     array_filter(
1095 1095
                         $property->getJoinColumns(),
1096
-                        function (JoinColumnMetadata $joinColumn) { return $joinColumn->isNullable(); }
1096
+                        function(JoinColumnMetadata $joinColumn) { return $joinColumn->isNullable(); }
1097 1097
                     )
1098 1098
                 ) === 0;
1099 1099
 
@@ -1388,7 +1388,7 @@  discard block
 block discarded – undo
1388 1388
         $persister = $this->getEntityPersister($class->getClassName());
1389 1389
         $id        = $persister->getIdentifier($entity);
1390 1390
 
1391
-        if (! $id) {
1391
+        if ( ! $id) {
1392 1392
             return self::STATE_NEW;
1393 1393
         }
1394 1394
 
@@ -1623,7 +1623,7 @@  discard block
 block discarded – undo
1623 1623
                 throw ORMInvalidArgumentException::detachedEntityCannot($entity, "persisted");
1624 1624
 
1625 1625
             default:
1626
-                throw new UnexpectedValueException("Unexpected entity state: $entityState." . self::objToStr($entity));
1626
+                throw new UnexpectedValueException("Unexpected entity state: $entityState.".self::objToStr($entity));
1627 1627
         }
1628 1628
 
1629 1629
         $this->cascadePersist($entity, $visited);
@@ -1693,7 +1693,7 @@  discard block
 block discarded – undo
1693 1693
             case self::STATE_DETACHED:
1694 1694
                 throw ORMInvalidArgumentException::detachedEntityCannot($entity, "removed");
1695 1695
             default:
1696
-                throw new UnexpectedValueException("Unexpected entity state: $entityState." . self::objToStr($entity));
1696
+                throw new UnexpectedValueException("Unexpected entity state: $entityState.".self::objToStr($entity));
1697 1697
         }
1698 1698
 
1699 1699
     }
@@ -1782,7 +1782,7 @@  discard block
 block discarded – undo
1782 1782
                 if ($managedCopy === null) {
1783 1783
                     // If the identifier is ASSIGNED, it is NEW, otherwise an error
1784 1784
                     // since the managed entity was not found.
1785
-                    if (! $class->isIdentifierComposite()
1785
+                    if ( ! $class->isIdentifierComposite()
1786 1786
                         && $class->getProperty($class->getSingleIdentifierFieldName()) instanceof FieldMetadata
1787 1787
                         && $class->getProperty($class->getSingleIdentifierFieldName())->hasValueGenerator()) {
1788 1788
                         throw EntityNotFoundException::fromClassNameAndIdentifier(
@@ -1833,7 +1833,7 @@  discard block
 block discarded – undo
1833 1833
      */
1834 1834
     private function ensureVersionMatch(ClassMetadata $class, $entity, $managedCopy)
1835 1835
     {
1836
-        if (! ($class->isVersioned() && $this->isLoaded($managedCopy) && $this->isLoaded($entity))) {
1836
+        if ( ! ($class->isVersioned() && $this->isLoaded($managedCopy) && $this->isLoaded($entity))) {
1837 1837
             return;
1838 1838
         }
1839 1839
 
@@ -1857,7 +1857,7 @@  discard block
 block discarded – undo
1857 1857
      */
1858 1858
     private function isLoaded($entity)
1859 1859
     {
1860
-        return !($entity instanceof Proxy) || $entity->__isInitialized();
1860
+        return ! ($entity instanceof Proxy) || $entity->__isInitialized();
1861 1861
     }
1862 1862
 
1863 1863
     /**
@@ -2019,7 +2019,7 @@  discard block
 block discarded – undo
2019 2019
         $class        = $this->em->getClassMetadata(get_class($entity));
2020 2020
         $associations = array_filter(
2021 2021
             $class->getProperties(),
2022
-            function (Property $property) {
2022
+            function(Property $property) {
2023 2023
                 return $property instanceof AssociationMetadata && in_array('refresh', $property->getCascade());
2024 2024
             }
2025 2025
         );
@@ -2063,7 +2063,7 @@  discard block
 block discarded – undo
2063 2063
         $class        = $this->em->getClassMetadata(get_class($entity));
2064 2064
         $associations = array_filter(
2065 2065
             $class->getProperties(),
2066
-            function (Property $property) {
2066
+            function(Property $property) {
2067 2067
                 return $property instanceof AssociationMetadata && in_array('detach', $property->getCascade());
2068 2068
             }
2069 2069
         );
@@ -2108,7 +2108,7 @@  discard block
 block discarded – undo
2108 2108
         $class        = $this->em->getClassMetadata(get_class($entity));
2109 2109
         $associations = array_filter(
2110 2110
             $class->getProperties(),
2111
-            function (Property $property) {
2111
+            function(Property $property) {
2112 2112
                 return $property instanceof AssociationMetadata && in_array('merge', $property->getCascade());
2113 2113
             }
2114 2114
         );
@@ -2149,7 +2149,7 @@  discard block
 block discarded – undo
2149 2149
         $class        = $this->em->getClassMetadata(get_class($entity));
2150 2150
         $associations = array_filter(
2151 2151
             $class->getProperties(),
2152
-            function (Property $property) {
2152
+            function(Property $property) {
2153 2153
                 return $property instanceof AssociationMetadata && in_array('persist', $property->getCascade());
2154 2154
             }
2155 2155
         );
@@ -2167,7 +2167,7 @@  discard block
 block discarded – undo
2167 2167
 
2168 2168
                 case ($relatedEntities instanceof Collection):
2169 2169
                 case (is_array($relatedEntities)):
2170
-                    if (! ($association instanceof ToManyAssociationMetadata)) {
2170
+                    if ( ! ($association instanceof ToManyAssociationMetadata)) {
2171 2171
                         throw ORMInvalidArgumentException::invalidAssociation(
2172 2172
                             $this->em->getClassMetadata($targetEntity),
2173 2173
                             $association,
@@ -2182,7 +2182,7 @@  discard block
 block discarded – undo
2182 2182
                     break;
2183 2183
 
2184 2184
                 case ($relatedEntities !== null):
2185
-                    if (! $relatedEntities instanceof $targetEntity) {
2185
+                    if ( ! $relatedEntities instanceof $targetEntity) {
2186 2186
                         throw ORMInvalidArgumentException::invalidAssociation(
2187 2187
                             $this->em->getClassMetadata($targetEntity),
2188 2188
                             $association,
@@ -2213,7 +2213,7 @@  discard block
 block discarded – undo
2213 2213
         $class             = $this->em->getClassMetadata(get_class($entity));
2214 2214
         $associations      = array_filter(
2215 2215
             $class->getProperties(),
2216
-            function (Property $property) {
2216
+            function(Property $property) {
2217 2217
                 return $property instanceof AssociationMetadata && in_array('remove', $property->getCascade());
2218 2218
             }
2219 2219
         );
@@ -2298,7 +2298,7 @@  discard block
 block discarded – undo
2298 2298
             case LockMode::NONE === $lockMode:
2299 2299
             case LockMode::PESSIMISTIC_READ === $lockMode:
2300 2300
             case LockMode::PESSIMISTIC_WRITE === $lockMode:
2301
-                if (!$this->em->getConnection()->isTransactionActive()) {
2301
+                if ( ! $this->em->getConnection()->isTransactionActive()) {
2302 2302
                     throw TransactionRequiredException::transactionRequired();
2303 2303
                 }
2304 2304
 
@@ -2542,7 +2542,7 @@  discard block
 block discarded – undo
2542 2542
         }
2543 2543
 
2544 2544
         foreach ($class->getProperties() as $field => $association) {
2545
-            if (! ($association instanceof AssociationMetadata)) {
2545
+            if ( ! ($association instanceof AssociationMetadata)) {
2546 2546
                 continue;
2547 2547
             }
2548 2548
 
@@ -2591,7 +2591,7 @@  discard block
 block discarded – undo
2591 2591
                 continue;
2592 2592
             }
2593 2593
 
2594
-            if (! $association->isOwningSide()) {
2594
+            if ( ! $association->isOwningSide()) {
2595 2595
                 // use the given entity association
2596 2596
                 if (isset($data[$field]) && is_object($data[$field]) &&
2597 2597
                     isset($this->entityStates[spl_object_hash($data[$field])])) {
@@ -2640,7 +2640,7 @@  discard block
 block discarded – undo
2640 2640
                 $associatedId[$targetField] = $joinColumnValue;
2641 2641
             }
2642 2642
 
2643
-            if (!$associatedId) {
2643
+            if ( ! $associatedId) {
2644 2644
                 // Foreign key is NULL
2645 2645
                 $association->setValue($entity, null);
2646 2646
                 $this->originalEntityData[$oid][$field] = null;
@@ -2649,7 +2649,7 @@  discard block
 block discarded – undo
2649 2649
             }
2650 2650
 
2651 2651
             // @todo guilhermeblanco Can we remove the need of this somehow?
2652
-            if (!isset($hints['fetchMode'][$class->getClassName()][$field])) {
2652
+            if ( ! isset($hints['fetchMode'][$class->getClassName()][$field])) {
2653 2653
                 $hints['fetchMode'][$class->getClassName()][$field] = $association->getFetchMode();
2654 2654
             }
2655 2655
 
@@ -2666,7 +2666,7 @@  discard block
 block discarded – undo
2666 2666
                     // If this is an uninitialized proxy, we are deferring eager loads,
2667 2667
                     // this association is marked as eager fetch, and its an uninitialized proxy (wtf!)
2668 2668
                     // then we can append this entity for eager loading!
2669
-                    if (!$targetClass->isIdentifierComposite() &&
2669
+                    if ( ! $targetClass->isIdentifierComposite() &&
2670 2670
                         $newValue instanceof Proxy &&
2671 2671
                         isset($hints[self::HINT_DEFEREAGERLOAD]) &&
2672 2672
                         $hints['fetchMode'][$class->getClassName()][$field] === FetchMode::EAGER &&
@@ -2697,7 +2697,7 @@  discard block
 block discarded – undo
2697 2697
                             break;
2698 2698
 
2699 2699
                         // Deferred eager load only works for single identifier classes
2700
-                        case (isset($hints[self::HINT_DEFEREAGERLOAD]) && !$targetClass->isIdentifierComposite()):
2700
+                        case (isset($hints[self::HINT_DEFEREAGERLOAD]) && ! $targetClass->isIdentifierComposite()):
2701 2701
                             // TODO: Is there a faster approach?
2702 2702
                             $this->eagerLoadingEntities[$targetClass->getRootClassName()][$relatedIdHash] = current($associatedId);
2703 2703
 
@@ -3069,7 +3069,7 @@  discard block
 block discarded – undo
3069 3069
     {
3070 3070
         $class = $this->em->getClassMetadata(get_class($entity));
3071 3071
 
3072
-        if (! $class->getProperty($propertyName)) {
3072
+        if ( ! $class->getProperty($propertyName)) {
3073 3073
             return; // ignore non-persistent fields
3074 3074
         }
3075 3075
 
@@ -3209,7 +3209,7 @@  discard block
 block discarded – undo
3209 3209
      */
3210 3210
     private function afterTransactionComplete()
3211 3211
     {
3212
-        $this->performCallbackOnCachedPersister(function (CachedPersister $persister) {
3212
+        $this->performCallbackOnCachedPersister(function(CachedPersister $persister) {
3213 3213
             $persister->afterTransactionComplete();
3214 3214
         });
3215 3215
     }
@@ -3219,7 +3219,7 @@  discard block
 block discarded – undo
3219 3219
      */
3220 3220
     private function afterTransactionRolledBack()
3221 3221
     {
3222
-        $this->performCallbackOnCachedPersister(function (CachedPersister $persister) {
3222
+        $this->performCallbackOnCachedPersister(function(CachedPersister $persister) {
3223 3223
             $persister->afterTransactionRolledBack();
3224 3224
         });
3225 3225
     }
@@ -3302,11 +3302,11 @@  discard block
 block discarded – undo
3302 3302
      */
3303 3303
     private function mergeEntityStateIntoManagedCopy($entity, $managedCopy)
3304 3304
     {
3305
-        if (! $this->isLoaded($entity)) {
3305
+        if ( ! $this->isLoaded($entity)) {
3306 3306
             return;
3307 3307
         }
3308 3308
 
3309
-        if (! $this->isLoaded($managedCopy)) {
3309
+        if ( ! $this->isLoaded($managedCopy)) {
3310 3310
             $managedCopy->__load();
3311 3311
         }
3312 3312
 
@@ -3315,7 +3315,7 @@  discard block
 block discarded – undo
3315 3315
         foreach ($class->getProperties() as $property) {
3316 3316
             switch (true) {
3317 3317
                 case ($property instanceof FieldMetadata):
3318
-                    if (! $property->isPrimaryKey()) {
3318
+                    if ( ! $property->isPrimaryKey()) {
3319 3319
                         $property->setValue($managedCopy, $property->getValue($entity));
3320 3320
                     }
3321 3321
 
@@ -3337,7 +3337,7 @@  discard block
 block discarded – undo
3337 3337
                         continue 2;
3338 3338
                     }
3339 3339
 
3340
-                    if (! in_array('merge', $property->getCascade())) {
3340
+                    if ( ! in_array('merge', $property->getCascade())) {
3341 3341
                         if ($this->getEntityState($other) === self::STATE_DETACHED) {
3342 3342
                             $targetEntity    = $property->getTargetEntity();
3343 3343
                             $targetClass     = $this->em->getClassMetadata($targetEntity);
@@ -3369,7 +3369,7 @@  discard block
 block discarded – undo
3369 3369
 
3370 3370
                     $managedCol = $property->getValue($managedCopy);
3371 3371
 
3372
-                    if (! $managedCol) {
3372
+                    if ( ! $managedCol) {
3373 3373
                         $managedCol = $property->wrap($managedCopy, [], $this->em);
3374 3374
 
3375 3375
                         $property->setValue($managedCopy, $managedCol);
@@ -3379,7 +3379,7 @@  discard block
 block discarded – undo
3379 3379
                         $managedCol->initialize();
3380 3380
 
3381 3381
                         // clear and set dirty a managed collection if its not also the same collection to merge from.
3382
-                        if (! $managedCol->isEmpty() && $managedCol !== $mergeCol) {
3382
+                        if ( ! $managedCol->isEmpty() && $managedCol !== $mergeCol) {
3383 3383
                             $managedCol->unwrap()->clear();
3384 3384
                             $managedCol->setDirty(true);
3385 3385
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Mocks/ConcurrentRegionMock.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,6 @@
 block discarded – undo
38 38
      * Dequeue an exception for a specific method invocation
39 39
      *
40 40
      * @param string $method
41
-     * @param mixed $default
42 41
      *
43 42
      * @return mixed
44 43
      */
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\Mocks;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/Cache/Action.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -29,6 +29,9 @@
 block discarded – undo
29 29
      */
30 30
     public $tokens;
31 31
 
32
+    /**
33
+     * @param string $name
34
+     */
32 35
     public function __construct($name)
33 36
     {
34 37
         $this->name = $name;
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\Models\Cache;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/Cache/Token.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -51,6 +51,9 @@
 block discarded – undo
51 51
      */
52 52
     public $complexAction;
53 53
 
54
+    /**
55
+     * @param string $token
56
+     */
54 57
     public function __construct($token, Client $client = null)
55 58
     {
56 59
         $this->logins    = new ArrayCollection();
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\Models\Cache;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/Company/CompanyCar.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -19,6 +19,9 @@
 block discarded – undo
19 19
      */
20 20
     private $brand;
21 21
 
22
+    /**
23
+     * @param string $brand
24
+     */
22 25
     public function __construct($brand = null) {
23 26
         $this->brand = $brand;
24 27
     }
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\Models\Company;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/Company/CompanyFlexContract.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -79,6 +79,9 @@  discard block
 block discarded – undo
79 79
         return $this->hoursWorked;
80 80
     }
81 81
 
82
+    /**
83
+     * @param integer $hoursWorked
84
+     */
82 85
     public function setHoursWorked($hoursWorked)
83 86
     {
84 87
         $this->hoursWorked = $hoursWorked;
@@ -89,6 +92,9 @@  discard block
 block discarded – undo
89 92
         return $this->pricePerHour;
90 93
     }
91 94
 
95
+    /**
96
+     * @param integer $pricePerHour
97
+     */
92 98
     public function setPricePerHour($pricePerHour)
93 99
     {
94 100
         $this->pricePerHour = $pricePerHour;
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\Models\Company;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/DDC117/DDC117Article.php 2 patches
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -33,6 +33,9 @@  discard block
 block discarded – undo
33 33
      */
34 34
     private $links;
35 35
 
36
+    /**
37
+     * @param string $title
38
+     */
36 39
     public function __construct($title)
37 40
     {
38 41
         $this->title = $title;
@@ -60,6 +63,10 @@  discard block
 block discarded – undo
60 63
         return $this->references;
61 64
     }
62 65
 
66
+    /**
67
+     * @param string $language
68
+     * @param string $title
69
+     */
63 70
     public function addTranslation($language, $title)
64 71
     {
65 72
         $this->translations[] = new DDC117Translation($this, $language, $title);
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\Models\DDC117;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/DDC117/DDC117Link.php 2 patches
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -23,6 +23,11 @@
 block discarded – undo
23 23
      */
24 24
     public $target;
25 25
 
26
+    /**
27
+     * @param DDC117Article $source
28
+     * @param DDC117Article $target
29
+     * @param string $description
30
+     */
26 31
     public function __construct($source, $target, $description)
27 32
     {
28 33
         $this->source = $source;
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\Models\DDC117;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/DDC3579/DDC3579Group.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     }
60 60
 
61 61
     /**
62
-     * @return ArrayCollection
62
+     * @return DDC3579Admin[]
63 63
      */
64 64
     public function getAdmins()
65 65
     {
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\Models\DDC3579;
6 6
 
Please login to merge, or discard this patch.