Completed
Pull Request — master (#1910)
by Andreas
24:45
created
lib/Doctrine/ODM/MongoDB/Query/Builder.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1010,7 +1010,7 @@  discard block
 block discarded – undo
1010 1010
      * @see http://docs.mongodb.org/manual/reference/operator/mod/
1011 1011
      *
1012 1012
      * @param float|int $divisor
1013
-     * @param float|int $remainder
1013
+     * @param integer $remainder
1014 1014
      */
1015 1015
     public function mod($divisor, $remainder = 0) : self
1016 1016
     {
@@ -1171,7 +1171,7 @@  discard block
 block discarded – undo
1171 1171
      * If a custom callable is used, its signature should conform to the default
1172 1172
      * Closure defined in {@link ReferencePrimer::__construct()}.
1173 1173
      *
1174
-     * @param bool|callable $primer
1174
+     * @param boolean $primer
1175 1175
      *
1176 1176
      * @throws InvalidArgumentException If $primer is not boolean or callable.
1177 1177
      */
@@ -1518,7 +1518,7 @@  discard block
 block discarded – undo
1518 1518
      * field name (key) and order (value) pairs.
1519 1519
      *
1520 1520
      * @param array|string $fieldName Field name or array of field/order pairs
1521
-     * @param int|string   $order     Field order (if one field is specified)
1521
+     * @param integer   $order     Field order (if one field is specified)
1522 1522
      */
1523 1523
     public function sort($fieldName, $order = 1) : self
1524 1524
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Repository/GridFSRepository.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,6 +22,7 @@  discard block
 block discarded – undo
22 22
      *
23 23
      * @param mixed    $id          File ID
24 24
      * @param resource $destination Writable Stream
25
+     * @return void
25 26
      */
26 27
     public function downloadToStream($id, $destination) : void;
27 28
 
@@ -36,7 +37,6 @@  discard block
 block discarded – undo
36 37
      * Writes the contents of a readable stream to a GridFS file.
37 38
      *
38 39
      * @param resource    $source   Readable stream
39
-     * @param object|null $metadata
40 40
      *
41 41
      * @return object The newly created GridFS file
42 42
      */
@@ -45,9 +45,7 @@  discard block
 block discarded – undo
45 45
     /**
46 46
      * Writes the contents of a file to a GridFS file.
47 47
      *
48
-     * @param string      $path
49 48
      * @param string|null $filename The filename to upload the file with. If no filename is provided, the name of the source file will be used.
50
-     * @param object|null $metadata
51 49
      *
52 50
      * @return object The newly created GridFS file
53 51
      */
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Query/Expr.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -452,7 +452,7 @@
 block discarded – undo
452 452
      * @see http://docs.mongodb.org/manual/reference/operator/mod/
453 453
      *
454 454
      * @param float|int $divisor
455
-     * @param float|int $remainder
455
+     * @param integer $remainder
456 456
      */
457 457
     public function mod($divisor, $remainder = 0) : self
458 458
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Persisters/DocumentPersister.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -479,6 +479,7 @@
 block discarded – undo
479 479
 
480 480
     /**
481 481
      * Finds documents by a set of criteria.
482
+     * @param integer $limit
482 483
      */
483 484
     public function loadAll(array $criteria = [], ?array $sort = null, ?int $limit = null, ?int $skip = null) : Iterator
484 485
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -57,6 +57,9 @@
 block discarded – undo
57 57
         $this->config = $config;
58 58
     }
59 59
 
60
+    /**
61
+     * @param string $className
62
+     */
60 63
     public function getMetadataFor($className)
61 64
     {
62 65
         return parent::getMetadataFor($this->dm->getClassNameResolver()->getRealClass($className));
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Tools/Console/Command/Schema/UpdateCommand.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -51,12 +51,18 @@
 block discarded – undo
51 51
 
52 52
     /**
53 53
      * @param object $document
54
+     * @param integer|null $maxTimeMs
55
+     * @param null|WriteConcern $writeConcern
54 56
      */
55 57
     protected function processDocumentIndex(SchemaManager $sm, string $document, ?int $maxTimeMs, ?WriteConcern $writeConcern)
56 58
     {
57 59
         $sm->updateDocumentIndexes($document, $maxTimeMs, $writeConcern);
58 60
     }
59 61
 
62
+    /**
63
+     * @param integer|null $maxTimeMs
64
+     * @param null|WriteConcern $writeConcern
65
+     */
60 66
     protected function processIndex(SchemaManager $sm, ?int $maxTimeMs, ?WriteConcern $writeConcern)
61 67
     {
62 68
         $sm->updateIndexes($maxTimeMs, $writeConcern);
Please login to merge, or discard this patch.