Completed
Pull Request — master (#137)
by
unknown
02:42
created
lib/Doctrine/ODM/CouchDB/UnitOfWork.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -145,6 +145,9 @@
 block discarded – undo
145 145
                                                                            $this->metadataResolver);
146 146
     }
147 147
 
148
+    /**
149
+     * @param string $documentName
150
+     */
148 151
     private function assertValidDocumentType($documentName, $document, $type)
149 152
     {
150 153
         if ($documentName && !($document instanceof $documentName)) {
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ODM/CouchDB/CouchDBFunctionalTestCase.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -46,6 +46,9 @@
 block discarded – undo
46 46
         return $this->logger;
47 47
     }
48 48
 
49
+    /**
50
+     * @return string
51
+     */
49 52
     public function getTestDatabase()
50 53
     {
51 54
         return TestUtil::getTestDatabase();
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use Doctrine\ODM\CouchDB\Configuration;
9 9
 use Doctrine\ODM\CouchDB\Mapping\Driver\AnnotationDriver;
10 10
 use Doctrine\Common\Cache\ArrayCache;
11
-use Doctrine\Common\Annotations\AnnotationReader;
12 11
 
13 12
 abstract class CouchDBFunctionalTestCase extends \PHPUnit_Framework_TestCase
14 13
 {
Please login to merge, or discard this patch.
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/Functional/EmbedManyTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 
4 4
 use Doctrine\Tests\Models\Embedded\Embedded;
5 5
 use Doctrine\Tests\Models\Embedded\Embedder;
6
-use Doctrine\Tests\Models\Embedded\Nested;
7 6
 
8 7
 class EmbedManyTest extends \Doctrine\Tests\ODM\CouchDB\CouchDBFunctionalTestCase
9 8
 {
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.