Completed
Pull Request — master (#154)
by
unknown
02:14 queued 37s
created
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/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/Configuration.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -250,7 +250,7 @@
 block discarded – undo
250 250
     /**
251 251
      * @param string $name
252 252
      * @param string $className
253
-     * @param array $options
253
+     * @param string $options
254 254
      */
255 255
     public function addDesignDocument($name, $className, $options)
256 256
     {
Please login to merge, or discard this patch.
Unused Use Statements   +7 added lines, -12 removed lines patch added patch discarded remove patch
@@ -2,18 +2,13 @@
 block discarded – undo
2 2
 
3 3
 namespace Doctrine\ODM\CouchDB;
4 4
 
5
-use Doctrine\Common\Cache\Cache;
6
-use Doctrine\Common\Persistence\Mapping\Driver\MappingDriver;
7
-
8
-use Doctrine\CouchDB\HTTP\Client;
9
-use Doctrine\CouchDB\HTTP\SocketClient;
10
-use Doctrine\CouchDB\HTTP\LoggingClient;
11
-
12
-use Doctrine\ODM\CouchDB\Mapping\MetadataResolver\MetadataResolver;
13
-use Doctrine\ODM\CouchDB\Mapping\MetadataResolver\DoctrineResolver;
14
-use Doctrine\ODM\CouchDB\Migrations\DocumentMigration;
15
-use Doctrine\ODM\CouchDB\Proxy\ProxyFactory;
16
-use ProxyManager\Configuration as ProxyManagerConfiguration;
5
+use Doctrine\Common\Cache\Cache;
6
+use Doctrine\Common\Persistence\Mapping\Driver\MappingDriver;
7
+use Doctrine\ODM\CouchDB\Mapping\MetadataResolver\MetadataResolver;
8
+use Doctrine\ODM\CouchDB\Mapping\MetadataResolver\DoctrineResolver;
9
+use Doctrine\ODM\CouchDB\Migrations\DocumentMigration;
10
+use Doctrine\ODM\CouchDB\Proxy\ProxyFactory;
11
+use ProxyManager\Configuration as ProxyManagerConfiguration;
17 12
 use ProxyManager\Factory\LazyLoadingGhostFactory;
18 13
 
19 14
 /**
Please login to merge, or discard this patch.
lib/Doctrine/ODM/CouchDB/DocumentManager.php 2 patches
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.
Unused Use Statements   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -2,14 +2,14 @@
 block discarded – undo
2 2
 
3 3
 namespace Doctrine\ODM\CouchDB;
4 4
 
5
-use Doctrine\Common\EventManager;
6
-use Doctrine\Common\Persistence\ObjectManager;
7
-use Doctrine\CouchDB\CouchDBClient;
8
-use Doctrine\CouchDB\View;
9
-use Doctrine\CouchDB\View\Query;
10
-use Doctrine\ODM\CouchDB\Mapping\ClassMetadataFactory;
11
-use Doctrine\ODM\CouchDB\View\ODMQuery;
12
-use Doctrine\ODM\CouchDB\View\ODMLuceneQuery;
5
+use Doctrine\Common\EventManager;
6
+use Doctrine\Common\Persistence\ObjectManager;
7
+use Doctrine\CouchDB\CouchDBClient;
8
+use Doctrine\CouchDB\View;
9
+use Doctrine\CouchDB\View\Query;
10
+use Doctrine\ODM\CouchDB\Mapping\ClassMetadataFactory;
11
+use Doctrine\ODM\CouchDB\View\ODMQuery;
12
+use Doctrine\ODM\CouchDB\View\ODMLuceneQuery;
13 13
 use Doctrine\ODM\CouchDB\CouchDBException;
14 14
 
15 15
 class DocumentManager implements ObjectManager
Please login to merge, or discard this patch.
lib/Doctrine/ODM/CouchDB/Event/LifecycleEventArgs.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -9,6 +9,9 @@
 block discarded – undo
9 9
 
10 10
     private $documentManager;
11 11
 
12
+    /**
13
+     * @param \Doctrine\ODM\CouchDB\DocumentManager $documentManager
14
+     */
12 15
     function __construct($document, $documentManager)
13 16
     {
14 17
         $this->document = $document;
Please login to merge, or discard this patch.