Completed
Pull Request — master (#138)
by
unknown
02:54
created
tests/Doctrine/Tests/ODM/CouchDB/Functional/CascadeRemoveTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -41,6 +41,9 @@
 block discarded – undo
41 41
         });
42 42
     }
43 43
 
44
+    /**
45
+     * @param \Closure $closure
46
+     */
44 47
     public function wrapRemove($closure)
45 48
     {
46 49
         $group1 = new \Doctrine\Tests\Models\CMS\CmsGroup();
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ODM/CouchDB/Mapping/AnnotationDriverTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -65,6 +65,9 @@
 block discarded – undo
65 65
         return new \Doctrine\ODM\CouchDB\Mapping\Driver\AnnotationDriver($reader);
66 66
     }
67 67
 
68
+    /**
69
+     * @param string $entityClassName
70
+     */
68 71
     protected function ensureIsLoaded($entityClassName)
69 72
     {
70 73
         new $entityClassName;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ODM/CouchDB/Proxy/ProxyFactoryTest.php 1 patch
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -8,12 +8,7 @@
 block discarded – undo
8 8
 use Doctrine\ODM\CouchDB\UnitOfWork;
9 9
 use Doctrine\ODM\CouchDB\Mapping\ClassMetadata;
10 10
 use Doctrine\ODM\CouchDB\Mapping\ClassMetadataFactory;
11
-
12
-use Doctrine\Tests\Models\ECommerce\ECommerceCart;
13
-use Doctrine\Tests\Models\ECommerce\ECommerceCustomer;
14 11
 use Doctrine\Tests\Models\ECommerce\ECommerceFeature;
15
-use Doctrine\Tests\Models\ECommerce\ECommerceProduct;
16
-use Doctrine\Tests\Models\ECommerce\ECommerceShipping;
17 12
 
18 13
 /**
19 14
  * Test the proxy factory.
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ODM/CouchDB/UnitOfWorkTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Doctrine\ODM\CouchDB\UnitOfWork;
6 6
 use Doctrine\ODM\CouchDB\Mapping\ClassMetadata;
7 7
 use Doctrine\ODM\CouchDB\Id\idGenerator;
8
-
9 8
 use Doctrine\Common\Persistence\Mapping\RuntimeReflectionService;
10 9
 
11 10
 class UnitOfWorkTest extends CouchDBTestCase
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ODM/CouchDB/View/DoctrineAssociationsTest.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     }
19 19
 
20 20
     /**
21
-     * @return NativeQuery
21
+     * @return Query
22 22
      */
23 23
     protected function createDoctrineViewQuery()
24 24
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Doctrine\Tests\ODM\CouchDB\View;
4 4
 
5
-use Doctrine\CouchDB\HTTP\SocketClient;
6 5
 use Doctrine\CouchDB\View\Query;
7 6
 use Doctrine\ODM\CouchDB\View\DoctrineAssociations;
8
-use Doctrine\ODM\CouchDB\Mapping\ClassMetadata;
9 7
 use Doctrine\Tests\ODM\CouchDB\CouchDBFunctionalTestCase;
10 8
 
11 9
 class DoctrineAssociationsTest extends CouchDBFunctionalTestCase
Please login to merge, or discard this patch.
lib/Doctrine/ODM/CouchDB/Tools/Console/Command/GenerateProxiesCommand.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
19 19
 
20 20
 namespace Doctrine\ODM\CouchDB\Tools\Console\Command;
21 21
 
22
-use Symfony\Component\Console\Input\InputArgument,
23
-    Symfony\Component\Console\Input\InputOption,
24
-    Symfony\Component\Console,
25
-    Doctrine\ODM\CouchDB\Tools\Console\MetadataFilter;
22
+use Symfony\Component\Console\Input\InputArgument;
23
+use Symfony\Component\Console\Input\InputOption;
24
+use Symfony\Component\Console;
25
+use Doctrine\ODM\CouchDB\Tools\Console\MetadataFilter;
26 26
 
27 27
 /**
28 28
  * Command to (re)generate the proxy classes used by doctrine.
Please login to merge, or discard this patch.
lib/Doctrine/ODM/CouchDB/Tools/Console/Command/UpdateDesignDocCommand.php 1 patch
Unused Use Statements   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,11 +19,10 @@
 block discarded – undo
19 19
 
20 20
 namespace Doctrine\ODM\CouchDB\Tools\Console\Command;
21 21
 
22
-use Symfony\Component\Console\Input\InputArgument,
23
-    Symfony\Component\Console\Input\InputOption,
24
-    Symfony\Component\Console\Input\InputInterface,
25
-    Symfony\Component\Console\Output\OutputInterface,
26
-    Symfony\Component\Console\Command\Command;
22
+use Symfony\Component\Console\Input\InputArgument;
23
+use Symfony\Component\Console\Input\InputInterface;
24
+use Symfony\Component\Console\Output\OutputInterface;
25
+use Symfony\Component\Console\Command\Command;
27 26
 
28 27
 class UpdateDesignDocCommand extends Command
29 28
 {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/CouchDB/Mapping/EmbeddedDocumentSerializer.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -40,6 +40,10 @@
 block discarded – undo
40 40
 
41 41
     private $documentManager;
42 42
 
43
+    /**
44
+     * @param ClassMetadataFactory $metadataFactory
45
+     * @param \Doctrine\ODM\CouchDB\DocumentManager $documentManager
46
+     */
43 47
     public function __construct($metadataFactory, $metadataResolver, $documentManager = null)
44 48
     {
45 49
         $this->metadataFactory = $metadataFactory;
Please login to merge, or discard this patch.
lib/Doctrine/ODM/CouchDB/UnitOfWork.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -147,6 +147,9 @@
 block discarded – undo
147 147
             $dm);
148 148
     }
149 149
 
150
+    /**
151
+     * @param string $documentName
152
+     */
150 153
     private function assertValidDocumentType($documentName, $document, $type)
151 154
     {
152 155
         if ($documentName && !($document instanceof $documentName)) {
Please login to merge, or discard this patch.