Completed
Pull Request — master (#1410)
by Piotr
09:50
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/Mapping/ClassMetadata.php 1 patch
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.
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/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.
lib/Doctrine/ODM/MongoDB/Query/CriteriaMerger.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,6 @@
 block discarded – undo
31 31
     /**
32 32
      * Combines any number of criteria arrays as clauses of an "$and" query.
33 33
      *
34
-     * @param array $criteria,... Any number of query criteria arrays
35 34
      * @return array
36 35
      */
37 36
     public function merge(/* array($field => $value), ... */)
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Query/Query.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      * @param boolean $hydrate
98 98
      * @param boolean $refresh
99 99
      * @param array $primers
100
-     * @param null $requireIndexes
100
+     * @param boolean $requireIndexes
101 101
      */
102 102
     public function __construct(DocumentManager $dm, ClassMetadata $class, Collection $collection, array $query = array(), array $options = array(), $hydrate = true, $refresh = false, array $primers = array(), $requireIndexes = null)
103 103
     {
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     /**
207 207
      * Gets an array of the unindexed fields in this query.
208 208
      *
209
-     * @return array
209
+     * @return string
210 210
      */
211 211
     public function getUnindexedFields()
212 212
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Tools/Console/Command/Schema/UpdateCommand.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     /**
46 46
      * @param InputInterface $input
47 47
      * @param OutputInterface $output
48
-     * @return int|null|void
48
+     * @return integer
49 49
      */
50 50
     protected function execute(InputInterface $input, OutputInterface $output)
51 51
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/UnitOfWork.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2811,7 +2811,7 @@
 block discarded – undo
2811 2811
      * @param array $data The data for the document.
2812 2812
      * @param array $hints Any hints to account for during reconstitution/lookup of the document.
2813 2813
      * @param object The document to be hydrated into in case of creation
2814
-     * @return object The document instance.
2814
+     * @return callable|null The document instance.
2815 2815
      * @internal Highly performance-sensitive method.
2816 2816
      */
2817 2817
     public function getOrCreateDocument($className, $data, &$hints = array(), $document = null)
Please login to merge, or discard this patch.