Completed
Pull Request — master (#1714)
by
unknown
11:33
created
lib/Doctrine/ODM/MongoDB/SchemaManager.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,6 @@
 block discarded – undo
23 23
 use Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory;
24 24
 use Doctrine\ODM\MongoDB\Mapping\ClassMetadataInfo;
25 25
 use MongoDB\Driver\Exception\RuntimeException;
26
-use MongoDB\Driver\WriteConcern;
27 26
 use MongoDB\Model\IndexInfo;
28 27
 
29 28
 class SchemaManager
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -570,7 +570,7 @@
 block discarded – undo
570 570
     /**
571 571
      * @param string $documentName
572 572
      *
573
-     * @return array
573
+     * @return string
574 574
      */
575 575
     private function runShardCollectionCommand($documentName)
576 576
     {
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/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.
lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataInfo.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1030,7 +1030,7 @@  discard block
 block discarded – undo
1030 1030
     /**
1031 1031
      * Gets the ReflectionProperties of the mapped class.
1032 1032
      *
1033
-     * @return array An array of ReflectionProperty instances.
1033
+     * @return \ReflectionProperty[] An array of ReflectionProperty instances.
1034 1034
      */
1035 1035
     public function getReflectionProperties()
1036 1036
     {
@@ -1525,6 +1525,7 @@  discard block
 block discarded – undo
1525 1525
      * {@inheritDoc}
1526 1526
      *
1527 1527
      * Checks whether the class has a mapped association (embed or reference) with the given field name.
1528
+     * @param string $fieldName
1528 1529
      */
1529 1530
     public function hasAssociation($fieldName)
1530 1531
     {
@@ -1759,7 +1760,7 @@  discard block
 block discarded – undo
1759 1760
      *
1760 1761
      * @param string $dbFieldName
1761 1762
      *
1762
-     * @return array
1763
+     * @return string
1763 1764
      * @throws MappingException
1764 1765
      */
1765 1766
     public function getFieldMappingByDbFieldName($dbFieldName)
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
@@ -224,6 +224,9 @@  discard block
 block discarded – undo
224 224
         $class->addIndex($keys, $options);
225 225
     }
226 226
 
227
+    /**
228
+     * @param string $type
229
+     */
227 230
     private function addEmbedMapping(ClassMetadataInfo $class, $embed, $type)
228 231
     {
229 232
         $attributes = $embed->attributes();
@@ -261,6 +264,9 @@  discard block
 block discarded – undo
261 264
         $this->addFieldMapping($class, $mapping);
262 265
     }
263 266
 
267
+    /**
268
+     * @param string $type
269
+     */
264 270
     private function addReferenceMapping(ClassMetadataInfo $class, $reference, $type)
265 271
     {
266 272
         $cascade = array_keys((array) $reference->cascade);
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     /**
97 97
      * Generates a closure capable of initializing a proxy
98 98
      *
99
-     * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata
99
+     * @param \Doctrine\ODM\MongoDB\Mapping\ClassMetadataInfo $classMetadata
100 100
      * @param \Doctrine\ODM\MongoDB\Persisters\DocumentPersister $documentPersister
101 101
      * @param \ReflectionProperty                                $reflectionId
102 102
      *
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     /**
179 179
      * Generates a closure capable of finalizing a cloned proxy
180 180
      *
181
-     * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata
181
+     * @param \Doctrine\ODM\MongoDB\Mapping\ClassMetadataInfo $classMetadata
182 182
      * @param \Doctrine\ODM\MongoDB\Persisters\DocumentPersister $documentPersister
183 183
      * @param \ReflectionProperty                                $reflectionId
184 184
      *
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/DocumentRepository.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use Doctrine\Common\Collections\Collection;
7 7
 use Doctrine\Common\Collections\Criteria;
8 8
 use Doctrine\Common\Collections\Selectable;
9
-use Doctrine\Common\Inflector\Inflector;
10 9
 use Doctrine\Common\Persistence\ObjectRepository;
11 10
 use Doctrine\ODM\MongoDB\Mapping\ClassMetadata;
12 11
 use Doctrine\ODM\MongoDB\Query\QueryExpressionVisitor;
Please login to merge, or discard this patch.