Completed
Pull Request — master (#154)
by
unknown
05:50 queued 01:40
created
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/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/ClassMetadataFactory.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@
 block discarded – undo
169 169
      * is still not loaded.
170 170
      *
171 171
      * @param string $className The name of the class for which the metadata should get loaded.
172
-     * @return array
172
+     * @return string[]
173 173
      * @throws MappingException
174 174
      */
175 175
     protected function loadMetadata($className)
Please login to merge, or discard this patch.
Unused Use Statements   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace Doctrine\ODM\CouchDB\Mapping;
4 4
 
5
-use Doctrine\ODM\CouchDB\DocumentManager,
6
-    Doctrine\Common\Persistence\Mapping\Driver\MappingDriver,
7
-    Doctrine\Common\Persistence\Mapping\ClassMetadata as ClassMetadataInterface,
8
-    Doctrine\Common\Persistence\Mapping\ReflectionService,
9
-    Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory;
5
+use Doctrine\ODM\CouchDB\DocumentManager;
6
+use Doctrine\Common\Persistence\Mapping\Driver\MappingDriver;
7
+use Doctrine\Common\Persistence\Mapping\ClassMetadata as ClassMetadataInterface;
8
+use Doctrine\Common\Persistence\Mapping\ReflectionService;
9
+use Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory;
10 10
 
11 11
 /**
12 12
  * The ClassMetadataFactory is used to create ClassMetadata objects that contain all the
Please login to merge, or discard this patch.
lib/Doctrine/ODM/CouchDB/DocumentManager.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
     /**
259 259
      * Refresh the given document by querying the CouchDB to get the current state.
260 260
      *
261
-     * @param object $document
261
+     * @param \ProxyManager\Proxy\GhostObjectInterface $document
262 262
      */
263 263
     public function refresh($document)
264 264
     {
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
     }
304 304
 
305 305
     /**
306
-     * @param  object $document
306
+     * @param  \Doctrine\Tests\Models\CMS\CmsUser $document
307 307
      * @return bool
308 308
      */
309 309
     public function contains($document)
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
@@ -10,12 +10,7 @@
 block discarded – undo
10 10
 use Doctrine\ODM\CouchDB\UnitOfWork;
11 11
 use Doctrine\ODM\CouchDB\Mapping\ClassMetadata;
12 12
 use Doctrine\ODM\CouchDB\Mapping\ClassMetadataFactory;
13
-
14
-use Doctrine\Tests\Models\ECommerce\ECommerceCart;
15
-use Doctrine\Tests\Models\ECommerce\ECommerceCustomer;
16 13
 use Doctrine\Tests\Models\ECommerce\ECommerceFeature;
17
-use Doctrine\Tests\Models\ECommerce\ECommerceProduct;
18
-use Doctrine\Tests\Models\ECommerce\ECommerceShipping;
19 14
 use ProxyManager\Proxy\GhostObjectInterface;
20 15
 
21 16
 /**
Please login to merge, or discard this patch.