Failed Conditions
Pull Request — master (#6546)
by Jáchym
11:13
created
tests/Doctrine/Tests/Models/DDC117/DDC117Article.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -33,6 +33,9 @@  discard block
 block discarded – undo
33 33
      */
34 34
     private $links;
35 35
 
36
+    /**
37
+     * @param string $title
38
+     */
36 39
     public function __construct($title)
37 40
     {
38 41
         $this->title = $title;
@@ -60,6 +63,10 @@  discard block
 block discarded – undo
60 63
         return $this->references;
61 64
     }
62 65
 
66
+    /**
67
+     * @param string $language
68
+     * @param string $title
69
+     */
63 70
     public function addTranslation($language, $title)
64 71
     {
65 72
         $this->translations[] = new DDC117Translation($this, $language, $title);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/DDC117/DDC117Link.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -23,6 +23,11 @@
 block discarded – undo
23 23
      */
24 24
     public $target;
25 25
 
26
+    /**
27
+     * @param DDC117Article $source
28
+     * @param DDC117Article $target
29
+     * @param string $description
30
+     */
26 31
     public function __construct($source, $target, $description)
27 32
     {
28 33
         $this->source = $source;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/DDC3579/DDC3579Group.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     }
60 60
 
61 61
     /**
62
-     * @return ArrayCollection
62
+     * @return DDC3579Admin[]
63 63
      */
64 64
     public function getAdmins()
65 65
     {
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/DDC3597/DDC3597Media.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -32,6 +32,9 @@
 block discarded – undo
32 32
      */
33 33
     private $format;
34 34
 
35
+    /**
36
+     * @param string $distributionHash
37
+     */
35 38
     function __construct($distributionHash) {
36 39
         $this->distributionHash = $distributionHash;
37 40
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/Navigation/NavCountry.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -25,6 +25,9 @@
 block discarded – undo
25 25
      */
26 26
     private $pois;
27 27
 
28
+    /**
29
+     * @param string $name
30
+     */
28 31
     function __construct($name) {
29 32
         $this->name = $name;
30 33
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/Navigation/NavPhotos.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -29,6 +29,9 @@
 block discarded – undo
29 29
      */
30 30
     private $file;
31 31
 
32
+    /**
33
+     * @param string $file
34
+     */
32 35
     function __construct($poi, $file) {
33 36
         $this->poi = $poi;
34 37
         $this->file = $file;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/StockExchange/Market.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -28,6 +28,9 @@
 block discarded – undo
28 28
      */
29 29
     public $stocks;
30 30
 
31
+    /**
32
+     * @param string $name
33
+     */
31 34
     public function __construct($name)
32 35
     {
33 36
         $this->name = $name;
Please login to merge, or discard this patch.
Tests/ORM/Cache/Persister/Collection/AbstractCollectionPersisterTest.php 4 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -94,6 +94,7 @@
 block discarded – undo
94 94
     }
95 95
 
96 96
     /**
97
+     * @param State $owner
97 98
      * @return \Doctrine\ORM\PersistentCollection
98 99
      */
99 100
     protected function createCollection($owner, $assoc = null, $class = null, $elements = null)
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -6,11 +6,9 @@
 block discarded – undo
6 6
 use Doctrine\ORM\Cache\Persister\Collection\CachedCollectionPersister;
7 7
 use Doctrine\ORM\PersistentCollection;
8 8
 use Doctrine\Tests\OrmTestCase;
9
-
10 9
 use Doctrine\ORM\Cache\Region;
11 10
 use Doctrine\ORM\EntityManager;
12 11
 use Doctrine\ORM\Persisters\Collection\CollectionPersister;
13
-
14 12
 use Doctrine\Tests\Models\Cache\State;
15 13
 use Doctrine\Common\Collections\ArrayCollection;
16 14
 
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,8 +83,8 @@
 block discarded – undo
83 83
         $this->em                   = $this->_getTestEntityManager();
84 84
         $this->region               = $this->createRegion();
85 85
         $this->collectionPersister  = $this->getMockBuilder(CollectionPersister::class)
86
-                                           ->setMethods($this->collectionPersisterMockMethods)
87
-                                           ->getMock();
86
+                                            ->setMethods($this->collectionPersisterMockMethods)
87
+                                            ->getMock();
88 88
     }
89 89
 
90 90
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
             ->with($this->equalTo($collection), $this->equalTo(1), $this->equalTo(2))
192 192
             ->will($this->returnValue($slice));
193 193
 
194
-        $this->assertEquals($slice, $persister->slice($collection, 1 , 2));
194
+        $this->assertEquals($slice, $persister->slice($collection, 1, 2));
195 195
     }
196 196
 
197 197
     public function testInvokeContains()
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
             ->with($this->equalTo($collection), $this->equalTo($element))
209 209
             ->will($this->returnValue(false));
210 210
 
211
-        $this->assertFalse($persister->contains($collection,$element));
211
+        $this->assertFalse($persister->contains($collection, $element));
212 212
     }
213 213
 
214 214
     public function testInvokeContainsKey()
Please login to merge, or discard this patch.
Doctrine/Tests/ORM/Cache/Persister/Entity/AbstractEntityPersisterTest.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
     }
115 115
 
116 116
     /**
117
-     * @return \Doctrine\ORM\Cache\Persister\AbstractEntityPersister
117
+     * @return \Doctrine\ORM\Cache\Persister\Entity\AbstractEntityPersister
118 118
      */
119 119
     protected function createPersisterDefault()
120 120
     {
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,8 +100,8 @@
 block discarded – undo
100 100
         $this->em               = $this->_getTestEntityManager();
101 101
         $this->region           = $this->createRegion();
102 102
         $this->entityPersister  = $this->getMockBuilder(EntityPersister::class)
103
-                                       ->setMethods($this->entityPersisterMockMethods)
104
-                                       ->getMock();
103
+                                        ->setMethods($this->entityPersisterMockMethods)
104
+                                        ->getMock();
105 105
     }
106 106
 
107 107
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
             ->with($this->equalTo([]), $this->equalTo('Foo'), $this->equalTo(1), $this->equalTo(2))
381 381
             ->will($this->returnValue([$entity]));
382 382
 
383
-        $this->assertEquals([$entity], $persister->getManyToManyCollection([], 'Foo', 1 ,2));
383
+        $this->assertEquals([$entity], $persister->getManyToManyCollection([], 'Foo', 1, 2));
384 384
     }
385 385
 
386 386
     public function testInvokeGetOneToManyCollection()
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
             ->with($this->equalTo([]), $this->equalTo('Foo'), $this->equalTo(1), $this->equalTo(2))
394 394
             ->will($this->returnValue([$entity]));
395 395
 
396
-        $this->assertEquals([$entity], $persister->getOneToManyCollection([], 'Foo', 1 ,2));
396
+        $this->assertEquals([$entity], $persister->getOneToManyCollection([], 'Foo', 1, 2));
397 397
     }
398 398
 
399 399
     public function testInvokeLoadManyToManyCollection()
Please login to merge, or discard this patch.