Completed
Pull Request — master (#1714)
by
unknown
10:22
created
lib/Doctrine/ODM/MongoDB/Query/Expr.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -605,7 +605,6 @@  discard block
 block discarded – undo
605 605
      *
606 606
      * @see Builder::geoWithinPolygon()
607 607
      * @see http://docs.mongodb.org/manual/reference/operator/polygon/
608
-     * @param array $point,... Three or more point coordinate tuples
609 608
      * @return $this
610 609
      * @throws \InvalidArgumentException if less than three points are given
611 610
      */
@@ -846,7 +845,7 @@  discard block
 block discarded – undo
846 845
      * @see Builder::mod()
847 846
      * @see http://docs.mongodb.org/manual/reference/operator/mod/
848 847
      * @param float|integer $divisor
849
-     * @param float|integer $remainder
848
+     * @param integer $remainder
850 849
      * @return $this
851 850
      */
852 851
     public function mod($divisor, $remainder = 0)
@@ -1499,7 +1498,6 @@  discard block
 block discarded – undo
1499 1498
      * @deprecated 1.1 MongoDB 2.4 deprecated $within in favor of $geoWithin
1500 1499
      * @see Expr::geoWithinPolygon()
1501 1500
      * @see http://docs.mongodb.org/manual/reference/operator/polygon/
1502
-     * @param array $point,... Three or more point coordinate tuples
1503 1501
      * @return $this
1504 1502
      * @throws \InvalidArgumentException if less than three points are given
1505 1503
      */
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Query/Query.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -383,7 +383,6 @@
 block discarded – undo
383 383
      * Returns an array containing the specified keys and their values from the
384 384
      * query array, provided they exist and are not null.
385 385
      *
386
-     * @param string $key,... One or more option keys to be read
387 386
      * @return array
388 387
      */
389 388
     private function getQueryOptions(/* $key, ... */)
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Aggregation/Stage/GraphLookup.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -325,6 +325,9 @@  discard block
 block discarded – undo
325 325
         return Type::convertPHPToDatabaseValue(Expr::convertExpression($expression));
326 326
     }
327 327
 
328
+    /**
329
+     * @param string $fieldName
330
+     */
328 331
     private function convertTargetFieldName($fieldName)
329 332
     {
330 333
         if (is_array($fieldName)) {
@@ -347,6 +350,9 @@  discard block
 block discarded – undo
347 350
         return $this->dm->getUnitOfWork()->getDocumentPersister($class->name);
348 351
     }
349 352
 
353
+    /**
354
+     * @param string $fieldName
355
+     */
350 356
     private function getReferencedFieldName($fieldName, array $mapping)
351 357
     {
352 358
         if ( ! $mapping['isOwningSide']) {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Aggregation/Builder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -366,7 +366,7 @@
 block discarded – undo
366 366
      *
367 367
      * @see http://docs.mongodb.org/manual/reference/operator/aggregation/out/
368 368
      *
369
-     * @param string $collection
369
+     * @param string $from
370 370
      * @return Stage\Out
371 371
      */
372 372
     public function out($from)
Please login to merge, or discard this patch.
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.