Failed Conditions
Push — develop ( 67dede...5c2ff2 )
by Marco
17s
created
tests/Doctrine/Tests/ORM/Functional/DatabaseDriverTestCase.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     }
28 28
 
29 29
     /**
30
-     * @param  string $className
30
+     * @param  string $classNames
31 31
      * @return ClassMetadata
32 32
      */
33 33
     protected function extractClassMetadata(array $classNames)
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional;
6 6
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $driver = new DatabaseDriver($sm);
54 54
 
55 55
         foreach ($driver->getAllClassNames() as $className) {
56
-            if (!in_array(strtolower($className), $classNames)) {
56
+            if ( ! in_array(strtolower($className), $classNames)) {
57 57
                 continue;
58 58
             }
59 59
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         }
66 66
 
67 67
         if (count($metadatas) != count($classNames)) {
68
-            $this->fail("Have not found all classes matching the names '" . implode(", ", $classNames) . "' only tables " . implode(", ", array_keys($metadatas)));
68
+            $this->fail("Have not found all classes matching the names '".implode(", ", $classNames)."' only tables ".implode(", ", array_keys($metadatas)));
69 69
         }
70 70
         return $metadatas;
71 71
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/OneToOneEagerLoadingTest.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional;
6 6
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
                 $this->em->getClassMetadata(TrainOrder::class),
30 30
                 ]
31 31
             );
32
-        } catch(\Exception $e) {}
32
+        } catch (\Exception $e) {}
33 33
     }
34 34
 
35 35
     /**
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1163Test.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@
 block discarded – undo
203 203
     }
204 204
 
205 205
     /**
206
-     * @param Product $product
206
+     * @param DDC1163Product $product
207 207
      */
208 208
     public function setProduct(DDC1163Product $product)
209 209
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1238Test.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -90,6 +90,9 @@
 block discarded – undo
90 90
         return $this->name;
91 91
     }
92 92
 
93
+    /**
94
+     * @param string $name
95
+     */
93 96
     public function setName($name)
94 97
     {
95 98
         $this->name = $name;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
                 $this->em->getClassMetadata(DDC1238User::class),
21 21
                 ]
22 22
             );
23
-        } catch(\Exception $e) {
23
+        } catch (\Exception $e) {
24 24
 
25 25
         }
26 26
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1436Test.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -81,6 +81,9 @@
 block discarded – undo
81 81
         return $this->parent;
82 82
     }
83 83
 
84
+    /**
85
+     * @param null|DDC1436Page $parent
86
+     */
84 87
     public function setParent($parent)
85 88
     {
86 89
         $this->parent = $parent;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
         // step 1
44 44
         $page = $this->em
45
-                ->createQuery('SELECT p, parent FROM ' . __NAMESPACE__ . '\DDC1436Page p LEFT JOIN p.parent parent WHERE p.id = :id')
45
+                ->createQuery('SELECT p, parent FROM '.__NAMESPACE__.'\DDC1436Page p LEFT JOIN p.parent parent WHERE p.id = :id')
46 46
                 ->setParameter('id', $id)
47 47
                 ->getOneOrNullResult();
48 48
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2084Test.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -106,6 +106,9 @@
 block discarded – undo
106 106
      */
107 107
     private $value;
108 108
 
109
+    /**
110
+     * @param string $value
111
+     */
109 112
     public function __construct($value)
110 113
     {
111 114
         $this->value = $value;
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
         try {
17 17
             $this->schemaTool->createSchema(
18 18
                 [
19
-                $this->em->getClassMetadata(__NAMESPACE__ . '\DDC2084\MyEntity1'),
20
-                $this->em->getClassMetadata(__NAMESPACE__ . '\DDC2084\MyEntity2'),
19
+                $this->em->getClassMetadata(__NAMESPACE__.'\DDC2084\MyEntity1'),
20
+                $this->em->getClassMetadata(__NAMESPACE__.'\DDC2084\MyEntity2'),
21 21
                 ]
22 22
             );
23 23
         } catch (\Exception $exc) {
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $e1 = $this->loadFixture();
46 46
         $e2 = $e1->getMyEntity2();
47
-        $e  = $this->em->find(__NAMESPACE__ . '\DDC2084\MyEntity1', $e2);
47
+        $e  = $this->em->find(__NAMESPACE__.'\DDC2084\MyEntity1', $e2);
48 48
 
49
-        self::assertInstanceOf(__NAMESPACE__ . '\DDC2084\MyEntity1', $e);
50
-        self::assertInstanceOf(__NAMESPACE__ . '\DDC2084\MyEntity2', $e->getMyEntity2());
49
+        self::assertInstanceOf(__NAMESPACE__.'\DDC2084\MyEntity1', $e);
50
+        self::assertInstanceOf(__NAMESPACE__.'\DDC2084\MyEntity2', $e->getMyEntity2());
51 51
         self::assertEquals('Foo', $e->getMyEntity2()->getValue());
52 52
     }
53 53
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function testinvalidIdentifierBindingEntityException()
59 59
     {
60
-        $this->em->find(__NAMESPACE__ . '\DDC2084\MyEntity1', new DDC2084\MyEntity2('Foo'));
60
+        $this->em->find(__NAMESPACE__.'\DDC2084\MyEntity1', new DDC2084\MyEntity2('Foo'));
61 61
     }
62 62
 }
63 63
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2138Test.php 2 patches
Doc Comments   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -169,7 +169,6 @@  discard block
 block discarded – undo
169 169
      *
170 170
      * @param User $user
171 171
      * @param User $followedUser
172
-     * @param bool $giveAgency
173 172
      */
174 173
     public function __construct(User $user, User $followedUser)
175 174
     {
@@ -247,7 +246,7 @@  discard block
 block discarded – undo
247 246
      * Add followedUsers
248 247
      *
249 248
      * @param  UserFollowedUser $followedUsers
250
-     * @return User
249
+     * @return DDC2138User
251 250
      */
252 251
     public function addFollowedUser(UserFollowedUser $followedUsers)
253 252
     {
@@ -260,7 +259,7 @@  discard block
 block discarded – undo
260 259
      * Remove followedUsers
261 260
      *
262 261
      * @param  UserFollowedUser $followedUsers
263
-     * @return User
262
+     * @return DDC2138User
264 263
      */
265 264
     public function removeFollowedUser(UserFollowedUser $followedUsers)
266 265
     {
@@ -272,7 +271,7 @@  discard block
 block discarded – undo
272 271
     /**
273 272
      * Get followedUsers
274 273
      *
275
-     * @return Doctrine\Common\Collections\Collection
274
+     * @return ArrayCollection
276 275
      */
277 276
     public function getFollowedUsers()
278 277
     {
@@ -283,7 +282,7 @@  discard block
 block discarded – undo
283 282
      * Add followedStructures
284 283
      *
285 284
      * @param  UserFollowedStructure $followedStructures
286
-     * @return User
285
+     * @return DDC2138User
287 286
      */
288 287
     public function addFollowedStructure(UserFollowedStructure $followedStructures)
289 288
     {
@@ -296,7 +295,7 @@  discard block
 block discarded – undo
296 295
      * Remove followedStructures
297 296
      *
298 297
      * @param  UserFollowedStructure $followedStructures
299
-     * @return User
298
+     * @return DDC2138User
300 299
      */
301 300
     public function removeFollowedStructure(UserFollowedStructure $followedStructures)
302 301
     {
@@ -308,7 +307,7 @@  discard block
 block discarded – undo
308 307
     /**
309 308
      * Get followedStructures
310 309
      *
311
-     * @return Doctrine\Common\Collections\Collection
310
+     * @return ArrayCollection
312 311
      */
313 312
     public function getFollowedStructures()
314 313
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2862Test.php 2 patches
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,6 +139,10 @@  discard block
 block discarded – undo
139 139
      */
140 140
     protected $userProfile;
141 141
 
142
+    /**
143
+     * @param string $name
144
+     * @param DDC2862User $userProfile
145
+     */
142 146
     public function __construct($name, $userProfile = null)
143 147
     {
144 148
         $this->name        = $name;
@@ -178,7 +182,7 @@  discard block
 block discarded – undo
178 182
     }
179 183
 
180 184
     /**
181
-     * @return \Entities\User
185
+     * @return User
182 186
      */
183 187
     public function getUserProfile()
184 188
     {
@@ -209,6 +213,9 @@  discard block
 block discarded – undo
209 213
      */
210 214
     protected $name;
211 215
 
216
+    /**
217
+     * @param string $name
218
+     */
212 219
     public function __construct($name)
213 220
     {
214 221
         $this->name = $name;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public function testIssue()
33 33
     {
34 34
         $user1    = new DDC2862User('Foo');
35
-        $driver1  = new DDC2862Driver('Bar' , $user1);
35
+        $driver1  = new DDC2862Driver('Bar', $user1);
36 36
 
37 37
         $this->em->persist($user1);
38 38
         $this->em->persist($driver1);
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     public function testIssueReopened()
71 71
     {
72 72
         $user1    = new DDC2862User('Foo');
73
-        $driver1  = new DDC2862Driver('Bar' , $user1);
73
+        $driver1  = new DDC2862Driver('Bar', $user1);
74 74
 
75 75
         $this->em->persist($user1);
76 76
         $this->em->persist($driver1);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC353Test.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -112,6 +112,7 @@
 block discarded – undo
112 112
 
113 113
     /**
114 114
      * Set file
115
+     * @param DDC353File $value
115 116
      */
116 117
     public function setFile($value)
117 118
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
                 $this->em->getClassMetadata(DDC353Picture::class),
20 20
                 ]
21 21
             );
22
-        } catch(\Exception $ignored) {}
22
+        } catch (\Exception $ignored) {}
23 23
     }
24 24
 
25 25
     public function testWorkingCase()
Please login to merge, or discard this patch.