Failed Conditions
Pull Request — master (#6749)
by Konstantin
21:03 queued 11:29
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1163Test.php 1 patch
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.
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   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
                 $this->_em->getClassMetadata(DDC1238User::class),
17 17
                 ]
18 18
             );
19
-        } catch(\Exception $e) {
19
+        } catch (\Exception $e) {
20 20
 
21 21
         }
22 22
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1392Test.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -89,6 +89,7 @@
 block discarded – undo
89 89
 
90 90
     /**
91 91
      * Set file
92
+     * @param DDC1392File $value
92 93
      */
93 94
     public function setFile($value = null)
94 95
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
         $em->flush();
59 59
 
60
-        $q = $this->_em->createQuery("SELECT COUNT(e) FROM " . __NAMESPACE__ . '\DDC1392File e');
60
+        $q = $this->_em->createQuery("SELECT COUNT(e) FROM ".__NAMESPACE__.'\DDC1392File e');
61 61
         $result = $q->getSingleScalarResult();
62 62
 
63 63
         self::assertEquals(1, $result);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1430Test.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -170,6 +170,9 @@
 block discarded – undo
170 170
         return $this->id;
171 171
     }
172 172
 
173
+    /**
174
+     * @param string $status
175
+     */
173 176
     public function __construct($status)
174 177
     {
175 178
         $this->status   = $status;
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -226,11 +226,11 @@  discard block
 block discarded – undo
226 226
 class DDC1430OrderProduct
227 227
 {
228 228
 
229
-     /**
230
-     * @Id
231
-     * @Column(type="integer")
232
-     * @GeneratedValue()
233
-     */
229
+        /**
230
+         * @Id
231
+         * @Column(type="integer")
232
+         * @GeneratedValue()
233
+         */
234 234
     protected $id;
235 235
 
236 236
     /**
@@ -254,9 +254,9 @@  discard block
 block discarded – undo
254 254
         $this->value = $value;
255 255
     }
256 256
 
257
-     /**
258
-     * @return int
259
-     */
257
+        /**
258
+         * @return int
259
+         */
260 260
     public function getId()
261 261
     {
262 262
         return $this->id;
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   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
         // step 1
40 40
         $page = $this->_em
41
-                ->createQuery('SELECT p, parent FROM ' . __NAMESPACE__ . '\DDC1436Page p LEFT JOIN p.parent parent WHERE p.id = :id')
41
+                ->createQuery('SELECT p, parent FROM '.__NAMESPACE__.'\DDC1436Page p LEFT JOIN p.parent parent WHERE p.id = :id')
42 42
                 ->setParameter('id', $id)
43 43
                 ->getOneOrNullResult();
44 44
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1509Test.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -85,6 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
     /**
87 87
      * Set file
88
+     * @param DDC1509File $value
88 89
      */
89 90
     public function setFile($value = null)
90 91
     {
@@ -104,6 +105,9 @@  discard block
 block discarded – undo
104 105
         return $this->thumbnail;
105 106
     }
106 107
 
108
+    /**
109
+     * @param DDC1509File $thumbnail
110
+     */
107 111
     public function setThumbnail($thumbnail)
108 112
     {
109 113
         $this->thumbnail = $thumbnail;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1690Test.php 2 patches
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -83,6 +83,9 @@  discard block
 block discarded – undo
83 83
         }
84 84
     }
85 85
 
86
+    /**
87
+     * @param string $propName
88
+     */
86 89
     protected function onPropertyChanged($propName, $oldValue, $newValue) {
87 90
         if ($this->listeners) {
88 91
             foreach ($this->listeners as $listener) {
@@ -111,11 +114,17 @@  discard block
 block discarded – undo
111 114
         return $this->name;
112 115
     }
113 116
 
117
+    /**
118
+     * @param string $name
119
+     */
114 120
     function setName($name) {
115 121
         $this->onPropertyChanged('name', $this->name, $name);
116 122
         $this->name = $name;
117 123
     }
118 124
 
125
+    /**
126
+     * @param DDC1690Child $child
127
+     */
119 128
     function setChild($child) {
120 129
         $this->child = $child;
121 130
     }
@@ -144,11 +153,17 @@  discard block
 block discarded – undo
144 153
         return $this->name;
145 154
     }
146 155
 
156
+    /**
157
+     * @param string $name
158
+     */
147 159
     function setName($name) {
148 160
         $this->onPropertyChanged('name', $this->name, $name);
149 161
         $this->name = $name;
150 162
     }
151 163
 
164
+    /**
165
+     * @param DDC1690Parent $parent
166
+     */
152 167
     function setParent($parent) {
153 168
         $this->parent = $parent;
154 169
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
     public $listeners = [];
78 78
 
79 79
     public function addPropertyChangedListener(PropertyChangedListener $listener) {
80
-        if (!in_array($listener, $this->listeners)) {
80
+        if ( ! in_array($listener, $this->listeners)) {
81 81
             $this->listeners[] = $listener;
82 82
         }
83 83
     }
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   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@  discard block
 block discarded – undo
14 14
         try {
15 15
             $this->_schemaTool->createSchema(
16 16
                 [
17
-                $this->_em->getClassMetadata(__NAMESPACE__ . '\DDC2084\MyEntity1'),
18
-                $this->_em->getClassMetadata(__NAMESPACE__ . '\DDC2084\MyEntity2'),
17
+                $this->_em->getClassMetadata(__NAMESPACE__.'\DDC2084\MyEntity1'),
18
+                $this->_em->getClassMetadata(__NAMESPACE__.'\DDC2084\MyEntity2'),
19 19
                 ]
20 20
             );
21 21
         } catch (\Exception $exc) {
@@ -42,10 +42,10 @@  discard block
 block discarded – undo
42 42
     {
43 43
         $e1 = $this->loadFixture();
44 44
         $e2 = $e1->getMyEntity2();
45
-        $e  = $this->_em->find(__NAMESPACE__ . '\DDC2084\MyEntity1', $e2);
45
+        $e  = $this->_em->find(__NAMESPACE__.'\DDC2084\MyEntity1', $e2);
46 46
 
47
-        $this->assertInstanceOf(__NAMESPACE__ . '\DDC2084\MyEntity1', $e);
48
-        $this->assertInstanceOf(__NAMESPACE__ . '\DDC2084\MyEntity2', $e->getMyEntity2());
47
+        $this->assertInstanceOf(__NAMESPACE__.'\DDC2084\MyEntity1', $e);
48
+        $this->assertInstanceOf(__NAMESPACE__.'\DDC2084\MyEntity2', $e->getMyEntity2());
49 49
         $this->assertEquals('Foo', $e->getMyEntity2()->getValue());
50 50
     }
51 51
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function testinvalidIdentifierBindingEntityException()
57 57
     {
58
-        $this->_em->find(__NAMESPACE__ . '\DDC2084\MyEntity1', new DDC2084\MyEntity2('Foo'));
58
+        $this->_em->find(__NAMESPACE__.'\DDC2084\MyEntity1', new DDC2084\MyEntity2('Foo'));
59 59
     }
60 60
 }
61 61
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2138Test.php 1 patch
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.