Completed
Pull Request — master (#1803)
by Maciej
21:30
created
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/Query/Builder.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     /**
107 107
      * Construct a Builder
108 108
      *
109
-     * @param string[]|string|null $documentName (optional) an array of document names, the document name, or none
109
+     * @param string|null $documentName (optional) an array of document names, the document name, or none
110 110
      */
111 111
     public function __construct(DocumentManager $dm, $documentName = null)
112 112
     {
@@ -1091,7 +1091,7 @@  discard block
 block discarded – undo
1091 1091
      * @see Expr::mod()
1092 1092
      * @see http://docs.mongodb.org/manual/reference/operator/mod/
1093 1093
      * @param float|int $divisor
1094
-     * @param float|int $remainder
1094
+     * @param integer $remainder
1095 1095
      * @return $this
1096 1096
      */
1097 1097
     public function mod($divisor, $remainder = 0)
@@ -1255,7 +1255,7 @@  discard block
 block discarded – undo
1255 1255
      * If a custom callable is used, its signature should conform to the default
1256 1256
      * Closure defined in {@link ReferencePrimer::__construct()}.
1257 1257
      *
1258
-     * @param bool|callable $primer
1258
+     * @param boolean $primer
1259 1259
      * @return $this
1260 1260
      * @throws \InvalidArgumentException If $primer is not boolean or callable.
1261 1261
      */
@@ -1648,7 +1648,7 @@  discard block
 block discarded – undo
1648 1648
      * field name (key) and order (value) pairs.
1649 1649
      *
1650 1650
      * @param array|string $fieldName Field name or array of field/order pairs
1651
-     * @param int|string   $order     Field order (if one field is specified)
1651
+     * @param integer   $order     Field order (if one field is specified)
1652 1652
      * @return $this
1653 1653
      */
1654 1654
     public function sort($fieldName, $order = 1)
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/Mapping/Driver/XmlDriver.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -239,6 +239,9 @@  discard block
 block discarded – undo
239 239
         $class->addIndex($keys, $options);
240 240
     }
241 241
 
242
+    /**
243
+     * @param string $type
244
+     */
242 245
     private function addEmbedMapping(ClassMetadata $class, $embed, $type)
243 246
     {
244 247
         $attributes = $embed->attributes();
@@ -276,6 +279,9 @@  discard block
 block discarded – undo
276 279
         $this->addFieldMapping($class, $mapping);
277 280
     }
278 281
 
282
+    /**
283
+     * @param string $type
284
+     */
279 285
     private function addReferenceMapping(ClassMetadata $class, $reference, $type)
280 286
     {
281 287
         $cascade = array_keys((array) $reference->cascade);
@@ -492,7 +498,7 @@  discard block
 block discarded – undo
492 498
      * list($readPreference, $tags) = $this->transformReadPreference($xml->{read-preference});
493 499
      *
494 500
      * @param \SimpleXMLElement $xmlReadPreference
495
-     * @return array
501
+     * @return string
496 502
      */
497 503
     private function transformReadPreference($xmlReadPreference)
498 504
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Hydrator/HydratorFactory.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -180,6 +180,9 @@
 block discarded – undo
180 180
         }
181 181
     }
182 182
 
183
+    /**
184
+     * @param string|null $fileName
185
+     */
183 186
     private function generateHydratorClass(ClassMetadata $class, string $hydratorClassName, ?string $fileName)
184 187
     {
185 188
         $code = '';
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Query/Expr.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -816,7 +816,7 @@  discard block
 block discarded – undo
816 816
      * @see Builder::mod()
817 817
      * @see http://docs.mongodb.org/manual/reference/operator/mod/
818 818
      * @param float|int $divisor
819
-     * @param float|int $remainder
819
+     * @param integer $remainder
820 820
      * @return $this
821 821
      */
822 822
     public function mod($divisor, $remainder = 0)
@@ -1312,7 +1312,7 @@  discard block
 block discarded – undo
1312 1312
      * @todo Remove support for string $type argument in 2.0
1313 1313
      * @see Builder::type()
1314 1314
      * @see http://docs.mongodb.org/manual/reference/operator/type/
1315
-     * @param string|int $type
1315
+     * @param integer $type
1316 1316
      * @return $this
1317 1317
      */
1318 1318
     public function type($type)
Please login to merge, or discard this patch.