Completed
Pull Request — master (#5938)
by Maximilian
16:49 queued 08:43
created
tests/Doctrine/Tests/ORM/Functional/OneToOneEagerLoadingTest.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -286,6 +286,9 @@  discard block
 block discarded – undo
286 286
      */
287 287
     public $train;
288 288
 
289
+    /**
290
+     * @param string $name
291
+     */
289 292
     public function __construct($name)
290 293
     {
291 294
         $this->name = $name;
@@ -312,6 +315,9 @@  discard block
 block discarded – undo
312 315
      */
313 316
     public $train;
314 317
 
318
+    /**
319
+     * @param string $name
320
+     */
315 321
     public function __construct($name)
316 322
     {
317 323
         $this->name = $name;
@@ -336,6 +342,9 @@  discard block
 block discarded – undo
336 342
      */
337 343
     public $train;
338 344
 
345
+    /**
346
+     * @param Train $train
347
+     */
339 348
     public function setTrain($train)
340 349
     {
341 350
         $this->train = $train;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/PaginationTest.php 1 patch
Doc Comments   +24 added lines patch added patch discarded remove patch
@@ -118,6 +118,10 @@  discard block
 block discarded – undo
118 118
         $this->assertCount(3, $paginator->getIterator());
119 119
     }
120 120
 
121
+    /**
122
+     * @param string $baseDql
123
+     * @param string $checkField
124
+     */
121 125
     private function iterateWithOrderAsc($useOutputWalkers, $fetchJoinCollection, $baseDql, $checkField)
122 126
     {
123 127
         // Ascending
@@ -132,6 +136,10 @@  discard block
 block discarded – undo
132 136
         $this->assertEquals($checkField . "0", $result[0]->$checkField);
133 137
     }
134 138
 
139
+    /**
140
+     * @param string $baseDql
141
+     * @param string $checkField
142
+     */
135 143
     private function iterateWithOrderAscWithLimit($useOutputWalkers, $fetchJoinCollection, $baseDql, $checkField)
136 144
     {
137 145
         // Ascending
@@ -148,6 +156,10 @@  discard block
 block discarded – undo
148 156
         $this->assertEquals($checkField . "0", $result[0]->$checkField);
149 157
     }
150 158
 
159
+    /**
160
+     * @param string $baseDql
161
+     * @param string $checkField
162
+     */
151 163
     private function iterateWithOrderAscWithLimitAndOffset($useOutputWalkers, $fetchJoinCollection, $baseDql, $checkField)
152 164
     {
153 165
         // Ascending
@@ -164,6 +176,10 @@  discard block
 block discarded – undo
164 176
         $this->assertEquals($checkField . "3", $result[0]->$checkField);
165 177
     }
166 178
 
179
+    /**
180
+     * @param string $baseDql
181
+     * @param string $checkField
182
+     */
167 183
     private function iterateWithOrderDesc($useOutputWalkers, $fetchJoinCollection, $baseDql, $checkField)
168 184
     {
169 185
         $dql = "$baseDql DESC";
@@ -177,6 +193,10 @@  discard block
 block discarded – undo
177 193
         $this->assertEquals($checkField . "8", $result[0]->$checkField);
178 194
     }
179 195
 
196
+    /**
197
+     * @param string $baseDql
198
+     * @param string $checkField
199
+     */
180 200
     private function iterateWithOrderDescWithLimit($useOutputWalkers, $fetchJoinCollection, $baseDql, $checkField)
181 201
     {
182 202
         $dql = "$baseDql DESC";
@@ -192,6 +212,10 @@  discard block
 block discarded – undo
192 212
         $this->assertEquals($checkField . "8", $result[0]->$checkField);
193 213
     }
194 214
 
215
+    /**
216
+     * @param string $baseDql
217
+     * @param string $checkField
218
+     */
195 219
     private function iterateWithOrderDescWithLimitAndOffset($useOutputWalkers, $fetchJoinCollection, $baseDql, $checkField)
196 220
     {
197 221
         $dql = "$baseDql DESC";
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/PostLoadEventTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -318,6 +318,9 @@
 block discarded – undo
318 318
         }
319 319
     }
320 320
 
321
+    /**
322
+     * @param string $className
323
+     */
321 324
     public function countHandledEvents($className)
322 325
     {
323 326
         return isset($this->firedByClasses[$className]) ? $this->firedByClasses[$className] : 0;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/ReadOnlyTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -84,6 +84,10 @@
 block discarded – undo
84 84
     /** @Column(type="integer") */
85 85
     public $numericValue;
86 86
 
87
+    /**
88
+     * @param string $name
89
+     * @param integer $number
90
+     */
87 91
     public function __construct($name, $number)
88 92
     {
89 93
         $this->name = $name;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/ReferenceProxyTest.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\Functional;
4 4
 
5 5
 use Doctrine\ORM\Proxy\ProxyFactory;
6
-use Doctrine\ORM\Proxy\ProxyClassGenerator;
7 6
 use Doctrine\Tests\Models\ECommerce\ECommerceProduct;
8 7
 use Doctrine\Tests\Models\ECommerce\ECommerceShipping;
9 8
 use Doctrine\Tests\Models\Company\CompanyAuction;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SecondLevelCacheTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -329,6 +329,9 @@
 block discarded – undo
329 329
         $this->callbacks = $callbacks;
330 330
     }
331 331
 
332
+    /**
333
+     * @param string $eventName
334
+     */
332 335
     private function dispatch($eventName, $args)
333 336
     {
334 337
         if (isset($this->callbacks[$eventName])) {
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SQLFilterTest.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -173,6 +173,9 @@  discard block
 block discarded – undo
173 173
         $this->assertFalse($em->getFilters()->isEnabled("foo_filter"));        
174 174
     }
175 175
     
176
+    /**
177
+     * @param \Doctrine\ORM\EntityManager $em
178
+     */
176 179
     protected function configureFilters($em)
177 180
     {
178 181
         // Add filters to the configuration of the EM
@@ -878,6 +881,9 @@  discard block
 block discarded – undo
878 881
         $this->assertEquals(2, count($manager->managedContracts->slice(0, 10)));
879 882
     }
880 883
 
884
+    /**
885
+     * @param string $name
886
+     */
881 887
     private function usePersonNameFilter($name)
882 888
     {
883 889
         // Enable the filter
Please login to merge, or discard this patch.
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -7,19 +7,15 @@
 block discarded – undo
7 7
 use Doctrine\ORM\Query\Filter\SQLFilter;
8 8
 use Doctrine\ORM\Mapping\ClassMetadata;
9 9
 use Doctrine\Common\Cache\ArrayCache;
10
-
11 10
 use Doctrine\ORM\Mapping\ClassMetadataInfo;
12
-
13 11
 use Doctrine\Tests\Models\CMS\CmsUser;
14 12
 use Doctrine\Tests\Models\CMS\CmsAddress;
15 13
 use Doctrine\Tests\Models\CMS\CmsGroup;
16 14
 use Doctrine\Tests\Models\CMS\CmsArticle;
17
-
18 15
 use Doctrine\Tests\Models\Company\CompanyPerson;
19 16
 use Doctrine\Tests\Models\Company\CompanyManager;
20 17
 use Doctrine\Tests\Models\Company\CompanyOrganization;
21 18
 use Doctrine\Tests\Models\Company\CompanyAuction;
22
-
23 19
 use Doctrine\Tests\Models\Company\CompanyFlexContract;
24 20
 use Doctrine\Tests\Models\Company\CompanyFlexUltraContract;
25 21
 use Doctrine\Tests\OrmFunctionalTestCase;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/StandardEntityPersisterTest.php 1 patch
Unused Use Statements   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,12 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Doctrine\Tests\ORM\Functional;
4 4
 
5
-use Doctrine\Tests\Models\ECommerce\ECommerceCart,
6
-    Doctrine\Tests\Models\ECommerce\ECommerceFeature,
7
-    Doctrine\Tests\Models\ECommerce\ECommerceCustomer,
8
-    Doctrine\Tests\Models\ECommerce\ECommerceProduct;
9
-
10
-use Doctrine\ORM\Mapping\AssociationMapping;
5
+use Doctrine\Tests\Models\ECommerce\ECommerceCart;
6
+use Doctrine\Tests\Models\ECommerce\ECommerceFeature;
7
+use Doctrine\Tests\Models\ECommerce\ECommerceCustomer;
8
+use Doctrine\Tests\Models\ECommerce\ECommerceProduct;
11 9
 
12 10
 /**
13 11
  * Tests capabilities of the persister.
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1080Test.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     }
126 126
 
127 127
     /**
128
-     * @param field_type $fooTitle
128
+     * @param string $fooTitle
129 129
      */
130 130
     public function setFooTitle($fooTitle)
131 131
     {
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
     }
204 204
 
205 205
     /**
206
-     * @param field_type $barTitle
206
+     * @param string $barTitle
207 207
      */
208 208
     public function setBarTitle($barTitle)
209 209
     {
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
     /**
293 293
      * Retrieve the orderNr property
294 294
      *
295
-     * @return int|null
295
+     * @return integer
296 296
      */
297 297
     public function getOrderNr()
298 298
     {
Please login to merge, or discard this patch.