Completed
Pull Request — master (#5669)
by Jeremy
48:42 queued 40:04
created
tests/Doctrine/Tests/ORM/Performance/SecondLevelCacheTest.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -124,6 +124,9 @@  discard block
 block discarded – undo
124 124
         $this->assertEquals(503, $this->countQuery($em));
125 125
     }
126 126
 
127
+    /**
128
+     * @param string $label
129
+     */
127 130
     private function queryEntity(EntityManagerInterface $em, $label)
128 131
     {
129 132
         $times        = 100;
@@ -155,6 +158,9 @@  discard block
 block discarded – undo
155 158
         printf("\n%s\n", str_repeat('-', 50));
156 159
     }
157 160
 
161
+    /**
162
+     * @param string $label
163
+     */
158 164
     public function findEntityOneToMany(EntityManagerInterface $em, $label)
159 165
     {
160 166
         $times        = 50;
@@ -214,6 +220,9 @@  discard block
 block discarded – undo
214 220
         printf("\n%s\n", str_repeat('-', 50));
215 221
     }
216 222
 
223
+    /**
224
+     * @param string $label
225
+     */
217 226
     private function findEntity(EntityManagerInterface $em, $label)
218 227
     {
219 228
         $times        = 10;
@@ -249,6 +258,9 @@  discard block
 block discarded – undo
249 258
         printf("\n%s\n", str_repeat('-', 50));
250 259
     }
251 260
 
261
+    /**
262
+     * @param string $label
263
+     */
252 264
     private function findAllEntity(EntityManagerInterface $em, $label)
253 265
     {
254 266
         $times        = 100;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/PersistentCollectionTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Doctrine\Tests\ORM;
4 4
 
5 5
 use Doctrine\Common\Collections\ArrayCollection;
6
-use Doctrine\Common\Collections\Collection;
7 6
 use Doctrine\ORM\PersistentCollection;
8 7
 use Doctrine\Tests\Mocks\ConnectionMock;
9 8
 use Doctrine\Tests\Mocks\DriverMock;
Please login to merge, or discard this patch.
Doctrine/Tests/ORM/Persisters/BasicEntityPersisterTypeValueSqlTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use Doctrine\ORM\Persisters\Entity\BasicEntityPersister;
8 8
 use Doctrine\Tests\Models\CustomType\CustomTypeParent;
9 9
 use Doctrine\Tests\Models\CustomType\CustomTypeChild;
10
-use Doctrine\Tests\Models\CustomType\CustomTypeFriend;
11 10
 use Doctrine\Common\Collections\Expr\Comparison;
12 11
 
13 12
 class BasicEntityPersisterTypeValueSqlTest extends \Doctrine\Tests\OrmTestCase
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Proxy/ProxyFactoryTest.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\ORM\EntityNotFoundException;
6 6
 use Doctrine\ORM\Mapping\ClassMetadata;
7 7
 use Doctrine\ORM\Proxy\ProxyFactory;
8
-use Doctrine\Common\Proxy\ProxyGenerator;
9 8
 use Doctrine\Tests\Mocks\ConnectionMock;
10 9
 use Doctrine\Tests\Mocks\EntityManagerMock;
11 10
 use Doctrine\Tests\Mocks\UnitOfWorkMock;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/LanguageRecognitionTest.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -17,6 +17,9 @@  discard block
 block discarded – undo
17 17
         $this->_em = $this->_getTestEntityManager();
18 18
     }
19 19
 
20
+    /**
21
+     * @param string $dql
22
+     */
20 23
     public function assertValidDQL($dql, $debug = false)
21 24
     {
22 25
         try {
@@ -30,6 +33,9 @@  discard block
 block discarded – undo
30 33
         }
31 34
     }
32 35
 
36
+    /**
37
+     * @param string $dql
38
+     */
33 39
     public function assertInvalidDQL($dql, $debug = false)
34 40
     {
35 41
         try {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 namespace Doctrine\Tests\ORM\Query;
3 3
 
4 4
 use Doctrine\ORM\EntityManagerInterface;
5
-use Doctrine\ORM\Query,
6
-    Doctrine\ORM\Query\QueryException;
5
+use Doctrine\ORM\Query;
6
+use Doctrine\ORM\Query\QueryException;
7 7
 
8 8
 class LanguageRecognitionTest extends \Doctrine\Tests\OrmTestCase
9 9
 {
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/QueryTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,6 @@
 block discarded – undo
21 21
 
22 22
 use Doctrine\Common\Collections\ArrayCollection;
23 23
 use Doctrine\Common\Collections\Criteria;
24
-
25 24
 use Doctrine\ORM\Query\Expr;
26 25
 use Doctrine\ORM\Query\QueryExpressionVisitor;
27 26
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/UpdateSqlGenerationTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -51,6 +51,10 @@
 block discarded – undo
51 51
         $this->_em = $this->_getTestEntityManager();
52 52
     }
53 53
 
54
+    /**
55
+     * @param string $dqlToBeTested
56
+     * @param string $sqlToBeConfirmed
57
+     */
54 58
     public function assertSqlGeneration($dqlToBeTested, $sqlToBeConfirmed)
55 59
     {
56 60
         try {
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/QueryBuilderTest.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -48,6 +48,9 @@
 block discarded – undo
48 48
         $this->_em = $this->_getTestEntityManager();
49 49
     }
50 50
 
51
+    /**
52
+     * @param string $expectedDql
53
+     */
51 54
     protected function assertValidQueryBuilder(QueryBuilder $qb, $expectedDql)
52 55
     {
53 56
         $dql = $qb->getDql();
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -22,9 +22,7 @@
 block discarded – undo
22 22
 use Doctrine\Common\Collections\ArrayCollection;
23 23
 use Doctrine\Common\Collections\Criteria;
24 24
 use Doctrine\ORM\Cache;
25
-
26 25
 use Doctrine\ORM\QueryBuilder;
27
-use Doctrine\ORM\Query\Expr;
28 26
 use Doctrine\ORM\Query\Parameter;
29 27
 use Doctrine\ORM\Query\ParameterTypeInferer;
30 28
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Tools/ConvertDoctrine1SchemaTest.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@
 block discarded – undo
43 43
  */
44 44
 class ConvertDoctrine1SchemaTest extends \Doctrine\Tests\OrmTestCase
45 45
 {
46
+    /**
47
+     * @param \Doctrine\ORM\Mapping\Driver\YamlDriver $metadataDriver
48
+     */
46 49
     protected function _createEntityManager($metadataDriver)
47 50
     {
48 51
         $driverMock = new DriverMock();
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,6 @@
 block discarded – undo
25 25
 use Doctrine\ORM\Mapping\ClassMetadataInfo;
26 26
 use Doctrine\ORM\Tools\EntityGenerator;
27 27
 use Doctrine\Tests\Mocks\MetadataDriverMock;
28
-use Doctrine\Tests\Mocks\DatabasePlatformMock;
29 28
 use Doctrine\Tests\Mocks\EntityManagerMock;
30 29
 use Doctrine\Tests\Mocks\ConnectionMock;
31 30
 use Doctrine\Tests\Mocks\DriverMock;
Please login to merge, or discard this patch.