Completed
Pull Request — master (#1846)
by Catalin
39:14 queued 14:16
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/Mapping/Driver/XmlDriver.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -219,6 +219,9 @@  discard block
 block discarded – undo
219 219
         $class->addIndex($keys, $options);
220 220
     }
221 221
 
222
+    /**
223
+     * @param string $type
224
+     */
222 225
     private function addEmbedMapping(ClassMetadata $class, $embed, $type)
223 226
     {
224 227
         $attributes = $embed->attributes();
@@ -256,6 +259,9 @@  discard block
 block discarded – undo
256 259
         $this->addFieldMapping($class, $mapping);
257 260
     }
258 261
 
262
+    /**
263
+     * @param string $type
264
+     */
259 265
     private function addReferenceMapping(ClassMetadata $class, $reference, $type)
260 266
     {
261 267
         $cascade = array_keys((array) $reference->cascade);
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/Mapping/ClassMetadata.php 1 patch
Doc Comments   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -939,7 +939,7 @@  discard block
 block discarded – undo
939 939
     }
940 940
 
941 941
     /**
942
-     * @return array
942
+     * @return string|null
943 943
      */
944 944
     public function getShardKey()
945 945
     {
@@ -1039,7 +1039,7 @@  discard block
 block discarded – undo
1039 1039
     /**
1040 1040
      * Gets the ReflectionProperties of the mapped class.
1041 1041
      *
1042
-     * @return array An array of ReflectionProperty instances.
1042
+     * @return \ReflectionProperty[] An array of ReflectionProperty instances.
1043 1043
      */
1044 1044
     public function getReflectionProperties()
1045 1045
     {
@@ -1352,6 +1352,7 @@  discard block
 block discarded – undo
1352 1352
      * {@inheritDoc}
1353 1353
      *
1354 1354
      * Checks whether the class has a mapped association (embed or reference) with the given field name.
1355
+     * @param string $fieldName
1355 1356
      */
1356 1357
     public function hasAssociation($fieldName)
1357 1358
     {
@@ -1588,7 +1589,7 @@  discard block
 block discarded – undo
1588 1589
      *
1589 1590
      * @param string $dbFieldName
1590 1591
      *
1591
-     * @return array
1592
+     * @return string
1592 1593
      * @throws MappingException
1593 1594
      */
1594 1595
     public function getFieldMappingByDbFieldName($dbFieldName)
@@ -2098,7 +2099,7 @@  discard block
 block discarded – undo
2098 2099
      *      - reflClass (ReflectionClass)
2099 2100
      *      - reflFields (ReflectionProperty array)
2100 2101
      *
2101
-     * @return array The names of all the fields that should be serialized.
2102
+     * @return string[] The names of all the fields that should be serialized.
2102 2103
      */
2103 2104
     public function __sleep()
2104 2105
     {
Please login to merge, or discard this patch.