Completed
Pull Request — 1.0.x (#1416)
by Maciej
09:32
created
lib/Doctrine/ODM/MongoDB/DocumentManager.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
      * Gets the Hydrator factory used by the DocumentManager to generate and get hydrators
260 260
      * for each type of document.
261 261
      *
262
-     * @return \Doctrine\ODM\MongoDB\Hydrator\HydratorInterface
262
+     * @return HydratorFactory
263 263
      */
264 264
     public function getHydratorFactory()
265 265
     {
@@ -596,7 +596,7 @@  discard block
 block discarded – undo
596 596
      * This is just a convenient shortcut for getRepository($documentName)->find($id).
597 597
      *
598 598
      * @param string $documentName
599
-     * @param mixed $identifier
599
+     * @param \MongoId $identifier
600 600
      * @param int $lockMode
601 601
      * @param int $lockVersion
602 602
      * @return object $document
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/DocumentRepository.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,6 @@  discard block
 block discarded – undo
64 64
      *
65 65
      * @param DocumentManager $dm The DocumentManager to use.
66 66
      * @param UnitOfWork $uow The UnitOfWork to use.
67
-     * @param Mapping\ClassMetadata $classMetadata The class descriptor.
68 67
      */
69 68
     public function __construct(DocumentManager $dm, UnitOfWork $uow, Mapping\ClassMetadata $class)
70 69
     {
@@ -261,7 +260,7 @@  discard block
 block discarded – undo
261 260
      *
262 261
      * @see Selectable::matching()
263 262
      * @param Criteria $criteria
264
-     * @return Collection
263
+     * @return ArrayCollection
265 264
      */
266 265
     public function matching(Criteria $criteria)
267 266
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Id/UuidGenerator.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     /**
61 61
      * Checks that a given string is a valid uuid.
62 62
      *
63
-     * @param string $uuid The string to check.
63
+     * @param string $guid The string to check.
64 64
      * @return boolean
65 65
      */
66 66
     public function isValid($guid)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
 namespace Doctrine\ODM\MongoDB\Id;
21 21
 
22 22
 use Doctrine\ODM\MongoDB\DocumentManager;
23
-use Doctrine\ODM\MongoDB\Mapping\ClassMetadata;
24 23
 
25 24
 /**
26 25
  * UuidGenerator generates a uuid for the id.
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
      *      - reflClass (ReflectionClass)
98 98
      *      - reflFields (ReflectionProperty array)
99 99
      *
100
-     * @return array The names of all the fields that should be serialized.
100
+     * @return string[] The names of all the fields that should be serialized.
101 101
      */
102 102
     public function __sleep()
103 103
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
 namespace Doctrine\ODM\MongoDB\Mapping;
21 21
 
22 22
 use Doctrine\Instantiator\Instantiator;
23
-use Doctrine\ODM\MongoDB\LockException;
24 23
 
25 24
 /**
26 25
  * A <tt>ClassMetadata</tt> instance holds all the object-document mapping metadata
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -300,8 +300,8 @@
 block discarded – undo
300 300
     /**
301 301
      * Adds inherited association mappings to the subclass mapping.
302 302
      *
303
-     * @param \Doctrine\ORM\Mapping\ClassMetadata $subClass
304
-     * @param \Doctrine\ORM\Mapping\ClassMetadata $parentClass
303
+     * @param ClassMetadata $subClass
304
+     * @param ClassMetadata $parentClass
305 305
      *
306 306
      * @return void
307 307
      *
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -37,6 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
     /**
39 39
      * {@inheritDoc}
40
+     * @param \Doctrine\Common\Persistence\Mapping\Driver\SymfonyFileLocator $locator
40 41
      */
41 42
     public function __construct($locator, $fileExtension = self::DEFAULT_FILE_EXTENSION)
42 43
     {
@@ -234,6 +235,9 @@  discard block
 block discarded – undo
234 235
         $class->addIndex($keys, $options);
235 236
     }
236 237
 
238
+    /**
239
+     * @param string $type
240
+     */
237 241
     private function addEmbedMapping(ClassMetadataInfo $class, $embed, $type)
238 242
     {
239 243
         $cascade = array_keys((array) $embed->cascade);
@@ -273,6 +277,9 @@  discard block
 block discarded – undo
273 277
         $this->addFieldMapping($class, $mapping);
274 278
     }
275 279
 
280
+    /**
281
+     * @param string $type
282
+     */
276 283
     private function addReferenceMapping(ClassMetadataInfo $class, $reference, $type)
277 284
     {
278 285
         $cascade = array_keys((array) $reference->cascade);
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Mapping/Driver/YamlDriver.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -38,6 +38,7 @@
 block discarded – undo
38 38
 
39 39
     /**
40 40
      * {@inheritDoc}
41
+     * @param \Doctrine\Common\Persistence\Mapping\Driver\SymfonyFileLocator $locator
41 42
      */
42 43
     public function __construct($locator, $fileExtension = self::DEFAULT_FILE_EXTENSION)
43 44
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/PersistentCollection.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -329,7 +329,7 @@
 block discarded – undo
329 329
      * INTERNAL:
330 330
      * getInsertDiff
331 331
      *
332
-     * @return array
332
+     * @return callable
333 333
      */
334 334
     public function getInsertDiff()
335 335
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Query/Builder.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
      * Construct a Builder
88 88
      *
89 89
      * @param DocumentManager $dm
90
-     * @param string[]|string|null $documentName (optional) an array of document names, the document name, or none
90
+     * @param string|null $documentName (optional) an array of document names, the document name, or none
91 91
      */
92 92
     public function __construct(DocumentManager $dm, $documentName = null)
93 93
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
 namespace Doctrine\ODM\MongoDB\Query;
21 21
 
22 22
 use Doctrine\ODM\MongoDB\DocumentManager;
23
-use Doctrine\ODM\MongoDB\Hydrator;
24 23
 use Doctrine\ODM\MongoDB\Mapping\ClassMetadataInfo;
25 24
 use Doctrine\ODM\MongoDB\Query\Expr;
26 25
 use Doctrine\ODM\MongoDB\UnitOfWork;
Please login to merge, or discard this patch.