Completed
Pull Request — master (#1846)
by Catalin
25:19 queued 11s
created
lib/Doctrine/ODM/MongoDB/Aggregation/Stage/AbstractBucket.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -90,6 +90,9 @@
 block discarded – undo
90 90
      */
91 91
     abstract protected function getStageName();
92 92
 
93
+    /**
94
+     * @param Expr $expression
95
+     */
93 96
     private function convertExpression($expression)
94 97
     {
95 98
         if (is_array($expression)) {
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/Aggregation/Expr.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1105,7 +1105,7 @@
 block discarded – undo
1105 1105
      * @see https://docs.mongodb.com/manual/reference/operator/aggregation/range/
1106 1106
      * @param mixed|self $start An integer that specifies the start of the sequence. Can be any valid expression that resolves to an integer.
1107 1107
      * @param mixed|self $end   An integer that specifies the exclusive upper limit of the sequence. Can be any valid expression that resolves to an integer.
1108
-     * @param mixed|self $step  Optional. An integer that specifies the increment value. Can be any valid expression that resolves to a non-zero integer. Defaults to 1.
1108
+     * @param integer $step  Optional. An integer that specifies the increment value. Can be any valid expression that resolves to a non-zero integer. Defaults to 1.
1109 1109
      * @return $this
1110 1110
      */
1111 1111
     public function range($start, $end, $step = 1)
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
@@ -328,6 +328,9 @@  discard block
 block discarded – undo
328 328
         return Type::convertPHPToDatabaseValue(Expr::convertExpression($expression));
329 329
     }
330 330
 
331
+    /**
332
+     * @param string $fieldName
333
+     */
331 334
     private function convertTargetFieldName($fieldName)
332 335
     {
333 336
         if (is_array($fieldName)) {
@@ -349,6 +352,9 @@  discard block
 block discarded – undo
349 352
         return $this->dm->getUnitOfWork()->getDocumentPersister($class->name);
350 353
     }
351 354
 
355
+    /**
356
+     * @param string $fieldName
357
+     */
352 358
     private function getReferencedFieldName($fieldName, array $mapping)
353 359
     {
354 360
         if (! $mapping['isOwningSide']) {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Match.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -484,7 +484,7 @@
 block discarded – undo
484 484
      * @see Expr::mod()
485 485
      * @see http://docs.mongodb.org/manual/reference/operator/mod/
486 486
      * @param float|int $divisor
487
-     * @param float|int $remainder
487
+     * @param integer $remainder
488 488
      * @return $this
489 489
      */
490 490
     public function mod($divisor, $remainder = 0)
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Operator.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
      *
408 408
      * @see http://docs.mongodb.org/manual/meta/aggregation-quick-reference/#aggregation-expressions
409 409
      * @see Expr::expression
410
-     * @param mixed|Expr $value
410
+     * @param boolean $value
411 411
      * @return $this
412 412
      */
413 413
     public function expression($value)
@@ -1016,7 +1016,7 @@  discard block
 block discarded – undo
1016 1016
      * @see Expr::range
1017 1017
      * @param mixed|Expr $start An integer that specifies the start of the sequence. Can be any valid expression that resolves to an integer.
1018 1018
      * @param mixed|Expr $end   An integer that specifies the exclusive upper limit of the sequence. Can be any valid expression that resolves to an integer.
1019
-     * @param mixed|Expr $step  Optional. An integer that specifies the increment value. Can be any valid expression that resolves to a non-zero integer. Defaults to 1.
1019
+     * @param integer $step  Optional. An integer that specifies the increment value. Can be any valid expression that resolves to a non-zero integer. Defaults to 1.
1020 1020
      * @return $this
1021 1021
      */
1022 1022
     public function range($start, $end, $step = 1)
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Lookup.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -170,6 +170,10 @@
 block discarded – undo
170 170
         return $this;
171 171
     }
172 172
 
173
+    /**
174
+     * @param string $fieldName
175
+     * @param ClassMetadata $class
176
+     */
173 177
     protected function prepareFieldName($fieldName, ?ClassMetadata $class = null)
174 178
     {
175 179
         if (! $class) {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Types/Type.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@
 block discarded – undo
228 228
      * Get the types array map which holds all registered types and the corresponding
229 229
      * type class
230 230
      *
231
-     * @return array $typesMap
231
+     * @return string[] $typesMap
232 232
      */
233 233
     public static function getTypesMap()
234 234
     {
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
@@ -21,6 +21,7 @@  discard block
 block discarded – undo
21 21
      *
22 22
      * @param mixed    $id          File ID
23 23
      * @param resource $destination Writable Stream
24
+     * @return void
24 25
      */
25 26
     public function downloadToStream($id, $destination): void;
26 27
 
@@ -35,7 +36,6 @@  discard block
 block discarded – undo
35 36
      * Writes the contents of a readable stream to a GridFS file.
36 37
      *
37 38
      * @param resource    $source   Readable stream
38
-     * @param object|null $metadata
39 39
      * @return object The newly created GridFS file
40 40
      */
41 41
     public function uploadFromStream(string $filename, $source, ?UploadOptions $uploadOptions = null);
@@ -43,9 +43,7 @@  discard block
 block discarded – undo
43 43
     /**
44 44
      * Writes the contents of a file to a GridFS file.
45 45
      *
46
-     * @param string      $path
47 46
      * @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.
48
-     * @param object|null $metadata
49 47
      * @return object The newly created GridFS file
50 48
      */
51 49
     public function uploadFromFile(string $source, ?string $filename = null, ?UploadOptions $uploadOptions = null);
Please login to merge, or discard this patch.