Completed
Pull Request — master (#1714)
by
unknown
11:33
created
lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Lookup.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -171,6 +171,9 @@
 block discarded – undo
171 171
         return $this;
172 172
     }
173 173
 
174
+    /**
175
+     * @param string $fieldName
176
+     */
174 177
     protected function prepareFieldName($fieldName, ClassMetadata $class = null)
175 178
     {
176 179
         if ( ! $class) {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Match.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -303,7 +303,6 @@  discard block
 block discarded – undo
303 303
      *
304 304
      * @see Expr::geoWithinPolygon()
305 305
      * @see http://docs.mongodb.org/manual/reference/operator/polygon/
306
-     * @param array $point,... Three or more point coordinate tuples
307 306
      * @return $this
308 307
      */
309 308
     public function geoWithinPolygon(/* array($x1, $y1), ... */)
@@ -476,7 +475,7 @@  discard block
 block discarded – undo
476 475
      * @see Expr::mod()
477 476
      * @see http://docs.mongodb.org/manual/reference/operator/mod/
478 477
      * @param float|integer $divisor
479
-     * @param float|integer $remainder
478
+     * @param integer $remainder
480 479
      * @return $this
481 480
      */
482 481
     public function mod($divisor, $remainder = 0)
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Out.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -46,6 +46,7 @@
 block discarded – undo
46 46
 
47 47
     /**
48 48
      * {@inheritdoc}
49
+     * @param string $collection
49 50
      */
50 51
     public function out($collection)
51 52
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataInfo.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1030,7 +1030,7 @@  discard block
 block discarded – undo
1030 1030
     /**
1031 1031
      * Gets the ReflectionProperties of the mapped class.
1032 1032
      *
1033
-     * @return array An array of ReflectionProperty instances.
1033
+     * @return \ReflectionProperty[] An array of ReflectionProperty instances.
1034 1034
      */
1035 1035
     public function getReflectionProperties()
1036 1036
     {
@@ -1525,6 +1525,7 @@  discard block
 block discarded – undo
1525 1525
      * {@inheritDoc}
1526 1526
      *
1527 1527
      * Checks whether the class has a mapped association (embed or reference) with the given field name.
1528
+     * @param string $fieldName
1528 1529
      */
1529 1530
     public function hasAssociation($fieldName)
1530 1531
     {
@@ -1759,7 +1760,7 @@  discard block
 block discarded – undo
1759 1760
      *
1760 1761
      * @param string $dbFieldName
1761 1762
      *
1762
-     * @return array
1763
+     * @return string
1763 1764
      * @throws MappingException
1764 1765
      */
1765 1766
     public function getFieldMappingByDbFieldName($dbFieldName)
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -224,6 +224,9 @@  discard block
 block discarded – undo
224 224
         $class->addIndex($keys, $options);
225 225
     }
226 226
 
227
+    /**
228
+     * @param string $type
229
+     */
227 230
     private function addEmbedMapping(ClassMetadataInfo $class, $embed, $type)
228 231
     {
229 232
         $attributes = $embed->attributes();
@@ -261,6 +264,9 @@  discard block
 block discarded – undo
261 264
         $this->addFieldMapping($class, $mapping);
262 265
     }
263 266
 
267
+    /**
268
+     * @param string $type
269
+     */
264 270
     private function addReferenceMapping(ClassMetadataInfo $class, $reference, $type)
265 271
     {
266 272
         $cascade = array_keys((array) $reference->cascade);
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     /**
97 97
      * Generates a closure capable of initializing a proxy
98 98
      *
99
-     * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata
99
+     * @param \Doctrine\ODM\MongoDB\Mapping\ClassMetadataInfo $classMetadata
100 100
      * @param \Doctrine\ODM\MongoDB\Persisters\DocumentPersister $documentPersister
101 101
      * @param \ReflectionProperty                                $reflectionId
102 102
      *
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     /**
179 179
      * Generates a closure capable of finalizing a cloned proxy
180 180
      *
181
-     * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata
181
+     * @param \Doctrine\ODM\MongoDB\Mapping\ClassMetadataInfo $classMetadata
182 182
      * @param \Doctrine\ODM\MongoDB\Persisters\DocumentPersister $documentPersister
183 183
      * @param \ReflectionProperty                                $reflectionId
184 184
      *
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Query/Builder.php 1 patch
Doc Comments   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      * Construct a Builder
95 95
      *
96 96
      * @param DocumentManager $dm
97
-     * @param string[]|string|null $documentName (optional) an array of document names, the document name, or none
97
+     * @param string|null $documentName (optional) an array of document names, the document name, or none
98 98
      */
99 99
     public function __construct(DocumentManager $dm, $documentName = null)
100 100
     {
@@ -685,7 +685,6 @@  discard block
 block discarded – undo
685 685
      *
686 686
      * @see Expr::geoWithinPolygon()
687 687
      * @see http://docs.mongodb.org/manual/reference/operator/polygon/
688
-     * @param array $point,... Three or more point coordinate tuples
689 688
      * @return $this
690 689
      */
691 690
     public function geoWithinPolygon(/* array($x1, $y1), ... */)
@@ -1077,7 +1076,7 @@  discard block
 block discarded – undo
1077 1076
      * @see Expr::mod()
1078 1077
      * @see http://docs.mongodb.org/manual/reference/operator/mod/
1079 1078
      * @param float|integer $divisor
1080
-     * @param float|integer $remainder
1079
+     * @param integer $remainder
1081 1080
      * @return $this
1082 1081
      */
1083 1082
     public function mod($divisor, $remainder = 0)
@@ -1241,7 +1240,7 @@  discard block
 block discarded – undo
1241 1240
      * If a custom callable is used, its signature should conform to the default
1242 1241
      * Closure defined in {@link ReferencePrimer::__construct()}.
1243 1242
      *
1244
-     * @param boolean|callable $primer
1243
+     * @param boolean $primer
1245 1244
      * @return $this
1246 1245
      * @throws \InvalidArgumentException If $primer is not boolean or callable
1247 1246
      */
@@ -1635,7 +1634,7 @@  discard block
 block discarded – undo
1635 1634
      * field name (key) and order (value) pairs.
1636 1635
      *
1637 1636
      * @param array|string $fieldName Field name or array of field/order pairs
1638
-     * @param int|string $order       Field order (if one field is specified)
1637
+     * @param integer $order       Field order (if one field is specified)
1639 1638
      * @return $this
1640 1639
      */
1641 1640
     public function sort($fieldName, $order = 1)
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Query/Expr.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -566,7 +566,6 @@  discard block
 block discarded – undo
566 566
      *
567 567
      * @see Builder::geoWithinPolygon()
568 568
      * @see http://docs.mongodb.org/manual/reference/operator/polygon/
569
-     * @param array $point,... Three or more point coordinate tuples
570 569
      * @return $this
571 570
      * @throws \InvalidArgumentException if less than three points are given
572 571
      */
@@ -802,7 +801,7 @@  discard block
 block discarded – undo
802 801
      * @see Builder::mod()
803 802
      * @see http://docs.mongodb.org/manual/reference/operator/mod/
804 803
      * @param float|integer $divisor
805
-     * @param float|integer $remainder
804
+     * @param integer $remainder
806 805
      * @return $this
807 806
      */
808 807
     public function mod($divisor, $remainder = 0)
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/SchemaManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -570,7 +570,7 @@
 block discarded – undo
570 570
     /**
571 571
      * @param string $documentName
572 572
      *
573
-     * @return array
573
+     * @return string
574 574
      */
575 575
     private function runShardCollectionCommand($documentName)
576 576
     {
Please login to merge, or discard this patch.