Completed
Pull Request — master (#1714)
by
unknown
10:22
created
lib/Doctrine/ODM/MongoDB/Query/Builder.php 1 patch
Doc Comments   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      * Construct a Builder
112 112
      *
113 113
      * @param DocumentManager $dm
114
-     * @param string[]|string|null $documentName (optional) an array of document names, the document name, or none
114
+     * @param string|null $documentName (optional) an array of document names, the document name, or none
115 115
      */
116 116
     public function __construct(DocumentManager $dm, $documentName = null)
117 117
     {
@@ -723,7 +723,6 @@  discard block
 block discarded – undo
723 723
      *
724 724
      * @see Expr::geoWithinPolygon()
725 725
      * @see http://docs.mongodb.org/manual/reference/operator/polygon/
726
-     * @param array $point,... Three or more point coordinate tuples
727 726
      * @return $this
728 727
      */
729 728
     public function geoWithinPolygon(/* array($x1, $y1), ... */)
@@ -1115,7 +1114,7 @@  discard block
 block discarded – undo
1115 1114
      * @see Expr::mod()
1116 1115
      * @see http://docs.mongodb.org/manual/reference/operator/mod/
1117 1116
      * @param float|integer $divisor
1118
-     * @param float|integer $remainder
1117
+     * @param integer $remainder
1119 1118
      * @return $this
1120 1119
      */
1121 1120
     public function mod($divisor, $remainder = 0)
@@ -1293,7 +1292,7 @@  discard block
 block discarded – undo
1293 1292
      * If a custom callable is used, its signature should conform to the default
1294 1293
      * Closure defined in {@link ReferencePrimer::__construct()}.
1295 1294
      *
1296
-     * @param boolean|callable $primer
1295
+     * @param boolean $primer
1297 1296
      * @return $this
1298 1297
      * @throws \InvalidArgumentException If $primer is not boolean or callable
1299 1298
      */
@@ -1708,7 +1707,7 @@  discard block
 block discarded – undo
1708 1707
      * field name (key) and order (value) pairs.
1709 1708
      *
1710 1709
      * @param array|string $fieldName Field name or array of field/order pairs
1711
-     * @param int|string $order       Field order (if one field is specified)
1710
+     * @param integer $order       Field order (if one field is specified)
1712 1711
      * @return $this
1713 1712
      */
1714 1713
     public function sort($fieldName, $order = 1)
@@ -1921,7 +1920,6 @@  discard block
 block discarded – undo
1921 1920
      * @see Builder::geoWithinPolygon()
1922 1921
      * @see Expr::withinPolygon()
1923 1922
      * @see http://docs.mongodb.org/manual/reference/operator/polygon/
1924
-     * @param array $point,... Three or more point coordinate tuples
1925 1923
      * @return $this
1926 1924
      */
1927 1925
     public function withinPolygon(/* array($x1, $y1), array($x2, $y2), ... */)
Please login to merge, or discard this patch.
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/Query/ReferencePrimer.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@
 block discarded – undo
26 26
 use Doctrine\ODM\MongoDB\PersistentCollection\PersistentCollectionInterface;
27 27
 use Doctrine\ODM\MongoDB\Proxy\Proxy;
28 28
 use Doctrine\ODM\MongoDB\UnitOfWork;
29
-use MongoDB\Driver\ReadPreference;
30 29
 
31 30
 /**
32 31
  * The ReferencePrimer is responsible for priming reference relationships.
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.