Completed
Pull Request — master (#5669)
by Jeremy
48:42 queued 40:04
created
tests/Doctrine/Tests/ORM/Functional/NativeQueryTest.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/Functional/NotifyPolicyTest.php 2 patches
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -94,6 +94,9 @@  discard block
 block discarded – undo
94 94
         $this->listeners[] = $listener;
95 95
     }
96 96
 
97
+    /**
98
+     * @param string $propName
99
+     */
97 100
     protected function onPropertyChanged($propName, $oldValue, $newValue) {
98 101
         if ($this->listeners) {
99 102
             foreach ($this->listeners as $listener) {
@@ -126,6 +129,9 @@  discard block
 block discarded – undo
126 129
         return $this->name;
127 130
     }
128 131
 
132
+    /**
133
+     * @param string $name
134
+     */
129 135
     function setName($name) {
130 136
         $this->onPropertyChanged('name', $this->name, $name);
131 137
         $this->name = $name;
@@ -159,6 +165,9 @@  discard block
 block discarded – undo
159 165
         return $this->name;
160 166
     }
161 167
 
168
+    /**
169
+     * @param string $name
170
+     */
162 171
     function setName($name) {
163 172
         $this->onPropertyChanged('name', $this->name, $name);
164 173
         $this->name = $name;
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Doctrine\Tests\ORM\Functional;
3 3
 
4
-use Doctrine\Common\Collections\ArrayCollection,
5
-    Doctrine\Common\NotifyPropertyChanged,
6
-    Doctrine\Common\PropertyChangedListener;
4
+use Doctrine\Common\Collections\ArrayCollection;
5
+use Doctrine\Common\NotifyPropertyChanged;
6
+use Doctrine\Common\PropertyChangedListener;
7 7
 
8 8
 /**
9 9
  * NativeQueryTest
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/OneToManyOrphanRemovalTest.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\Functional;
4 4
 
5
-use Doctrine\Tests\Models\CMS\CmsUser,
6
-    Doctrine\Tests\Models\CMS\CmsAddress,
7
-    Doctrine\Tests\Models\CMS\CmsPhonenumber;
5
+use Doctrine\Tests\Models\CMS\CmsUser;
6
+use Doctrine\Tests\Models\CMS\CmsPhonenumber;
8 7
 
9 8
 /**
10 9
  * Tests a bidirectional one-to-many association mapping with orphan removal.
Please login to merge, or discard this patch.
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/OneToOneOrphanRemovalTest.php 1 patch
Unused Use Statements   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,10 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Doctrine\Tests\ORM\Functional;
4 4
 
5
-use Doctrine\Tests\Models\CMS\CmsUser,
6
-    Doctrine\Tests\Models\CMS\CmsEmail,
7
-    Doctrine\Tests\Models\CMS\CmsAddress,
8
-    Doctrine\Tests\Models\CMS\CmsPhonenumber;
5
+use Doctrine\Tests\Models\CMS\CmsUser;
6
+use Doctrine\Tests\Models\CMS\CmsEmail;
7
+use Doctrine\Tests\Models\CMS\CmsAddress;
9 8
 
10 9
 /**
11 10
  * Tests a bidirectional one-to-one association mapping with orphan removal.
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/ProxiesLikeEntitiesTest.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\Functional;
4 4
 
5
-use Doctrine\Common\Util\ClassUtils;
6 5
 use Doctrine\Tests\Models\CMS\CmsUser;
7 6
 
8 7
 /**
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/QueryTest.php 1 patch
Unused Use Statements   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,11 +3,9 @@
 block discarded – undo
3 3
 namespace Doctrine\Tests\ORM\Functional;
4 4
 
5 5
 use Doctrine\Common\Collections\ArrayCollection;
6
-
7
-use Doctrine\DBAL\Connection;
8
-use Doctrine\Tests\Models\CMS\CmsUser,
9
-    Doctrine\Tests\Models\CMS\CmsArticle,
10
-    Doctrine\Tests\Models\CMS\CmsPhonenumber;
6
+use Doctrine\Tests\Models\CMS\CmsUser;
7
+use Doctrine\Tests\Models\CMS\CmsArticle;
8
+use Doctrine\Tests\Models\CMS\CmsPhonenumber;
11 9
 use Doctrine\ORM\Mapping\ClassMetadata;
12 10
 use Doctrine\ORM\Query;
13 11
 use Doctrine\ORM\Query\Parameter;
Please login to merge, or discard this patch.