Completed
Pull Request — master (#5800)
by Herberto
10:37
created
tests/Doctrine/Tests/ORM/Hydration/HydrationTestCase.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\Hydration;
4 4
 
5 5
 use Doctrine\ORM\Query\ParserResult;
6
-use Doctrine\ORM\Query\Parser;
7 6
 
8 7
 class HydrationTestCase extends \Doctrine\Tests\OrmTestCase
9 8
 {
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php 2 patches
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,6 +16,9 @@  discard block
 block discarded – undo
16 16
 {
17 17
     abstract protected function _loadDriver();
18 18
 
19
+    /**
20
+     * @param string $entityClassName
21
+     */
19 22
     public function createClassMetadata($entityClassName)
20 23
     {
21 24
         $mappingDriver = $this->_loadDriver();
@@ -28,7 +31,6 @@  discard block
 block discarded – undo
28 31
     }
29 32
 
30 33
     /**
31
-     * @param \Doctrine\ORM\EntityManager $entityClassName
32 34
      * @return \Doctrine\ORM\Mapping\ClassMetadataFactory
33 35
      */
34 36
     protected function createClassMetadataFactory(\Doctrine\ORM\EntityManager $em = null)
Please login to merge, or discard this 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\Mapping;
4 4
 
5 5
 use Doctrine\ORM\Events;
6
-use Doctrine\ORM\Event\LifecycleEventArgs;
7 6
 use Doctrine\Tests\Models\Company\CompanyFixContract;
8 7
 use Doctrine\Tests\Models\Company\CompanyFlexContract;
9 8
 use Doctrine\Tests\Models\Cache\City;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Mapping/AnnotationDriverTest.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -117,6 +117,9 @@
 block discarded – undo
117 117
         return $this->createAnnotationDriver();
118 118
     }
119 119
 
120
+    /**
121
+     * @param string $entityClassName
122
+     */
120 123
     protected function _ensureIsLoaded($entityClassName)
121 124
     {
122 125
         new $entityClassName;
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -3,9 +3,6 @@
 block discarded – undo
3 3
 namespace Doctrine\Tests\ORM\Mapping;
4 4
 
5 5
 use Doctrine\ORM\Mapping\ClassMetadata;
6
-use Doctrine\ORM\Events;
7
-use Doctrine\Tests\Models\DDC2825\ExplicitSchemaAndTable;
8
-use Doctrine\Tests\Models\DDC2825\SchemaAndTableInTableName;
9 6
 
10 7
 class AnnotationDriverTest extends AbstractMappingDriverTest
11 8
 {
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Mapping/ClassMetadataFactoryTest.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -244,7 +244,6 @@  discard block
 block discarded – undo
244 244
     }
245 245
 
246 246
     /**
247
-     * @param string $class
248 247
      * @return ClassMetadata
249 248
      */
250 249
     protected function _createValidClassMetadata()
@@ -456,6 +455,10 @@  discard block
 block discarded – undo
456 455
         return $this->mockMetadata[$className];
457 456
     }
458 457
 
458
+    /**
459
+     * @param string $className
460
+     * @param ClassMetadata $metadata
461
+     */
459 462
     public function setMetadataForClass($className, $metadata)
460 463
     {
461 464
         $this->mockMetadata[$className] = $metadata;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Mapping/ClassMetadataLoadEventTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Doctrine\Tests\ORM\Mapping;
4 4
 
5
-use Doctrine\ORM\Mapping\ClassMetadata;
6 5
 use Doctrine\ORM\Events;
7 6
 
8 7
 class ClassMetadataLoadEventTest extends \Doctrine\Tests\OrmTestCase
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Mapping/YamlMappingDriverTest.php 1 patch
Unused Use Statements   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Doctrine\Tests\ORM\Mapping;
4 4
 
5
-use Doctrine\ORM\Mapping\ClassMetadata,
6
-    Doctrine\ORM\Mapping\Driver\XmlDriver,
7
-    Doctrine\ORM\Mapping\Driver\YamlDriver;
5
+use Doctrine\ORM\Mapping\ClassMetadata;
6
+use Doctrine\ORM\Mapping\Driver\YamlDriver;
8 7
 
9 8
 class YamlMappingDriverTest extends AbstractMappingDriverTest
10 9
 {
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Performance/HydrationPerformanceTest.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Doctrine\Tests\ORM\Performance;
4 4
 
5
-use Doctrine\Tests\Mocks\HydratorMockStatement,
6
-    Doctrine\ORM\Query\ResultSetMapping,
7
-    Doctrine\ORM\Query;
5
+use Doctrine\Tests\Mocks\HydratorMockStatement;
6
+use Doctrine\ORM\Query\ResultSetMapping;
7
+use Doctrine\ORM\Query;
8 8
 
9 9
 /**
10 10
  * Tests to prevent serious performance regressions.
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Performance/PersisterPerformanceTest.php 1 patch
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -2,14 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Doctrine\Tests\ORM\Performance;
4 4
 
5
-use Doctrine\ORM\Tools\SchemaTool;
6
-use Doctrine\ORM\Query;
7 5
 use Doctrine\Tests\Models\CMS\CmsUser;
8
-use Doctrine\Tests\Models\CMS\CmsPhonenumber;
9
-use Doctrine\Tests\Models\CMS\CmsAddress;
10 6
 use Doctrine\Tests\Models\CMS\CmsGroup;
11 7
 use Doctrine\Tests\Models\CMS\CmsArticle;
12
-use Doctrine\Tests\Models\CMS\CmsComment;
13 8
 
14 9
 /**
15 10
  * @group performance
Please login to merge, or discard this patch.
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.