Completed
Pull Request — develop (#6743)
by Grégoire
65:46
created
tests/Doctrine/Tests/Models/Cache/Token.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -51,6 +51,9 @@
 block discarded – undo
51 51
      */
52 52
     public $complexAction;
53 53
 
54
+    /**
55
+     * @param string $token
56
+     */
54 57
     public function __construct($token, Client $client = null)
55 58
     {
56 59
         $this->logins    = new ArrayCollection();
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\Models\Cache;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/Company/CompanyCar.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -19,6 +19,9 @@
 block discarded – undo
19 19
      */
20 20
     private $brand;
21 21
 
22
+    /**
23
+     * @param string $brand
24
+     */
22 25
     public function __construct($brand = null) {
23 26
         $this->brand = $brand;
24 27
     }
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\Models\Company;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/Company/CompanyFlexContract.php 3 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -79,6 +79,9 @@  discard block
 block discarded – undo
79 79
         return $this->hoursWorked;
80 80
     }
81 81
 
82
+    /**
83
+     * @param integer $hoursWorked
84
+     */
82 85
     public function setHoursWorked($hoursWorked)
83 86
     {
84 87
         $this->hoursWorked = $hoursWorked;
@@ -89,6 +92,9 @@  discard block
 block discarded – undo
89 92
         return $this->pricePerHour;
90 93
     }
91 94
 
95
+    /**
96
+     * @param integer $pricePerHour
97
+     */
92 98
     public function setPricePerHour($pricePerHour)
93 99
     {
94 100
         $this->pricePerHour = $pricePerHour;
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\Models\Company;
6 6
 
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,9 +4,7 @@
 block discarded – undo
4 4
 
5 5
 namespace Doctrine\Tests\Models\Company;
6 6
 
7
-use Doctrine\DBAL\Types\Type;
8 7
 use Doctrine\ORM\Annotation as ORM;
9
-use Doctrine\ORM\Mapping;
10 8
 
11 9
 /**
12 10
  * @ORM\Entity
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/DDC117/DDC117Article.php 2 patches
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.
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\Models\DDC117;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/DDC117/DDC117Link.php 2 patches
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.
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\Models\DDC117;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/DDC3579/DDC3579Group.php 2 patches
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.
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\Models\DDC3579;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/StockExchange/Market.php 2 patches
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.
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\Models\StockExchange;
6 6
 
Please login to merge, or discard this patch.
Tests/ORM/Cache/Persister/Collection/AbstractCollectionPersisterTest.php 3 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.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,8 +90,8 @@
 block discarded – undo
90 90
         $this->em                   = $this->getTestEntityManager();
91 91
         $this->region               = $this->createRegion();
92 92
         $this->collectionPersister  = $this->getMockBuilder(CollectionPersister::class)
93
-                                           ->setMethods($this->collectionPersisterMockMethods)
94
-                                           ->getMock();
93
+                                            ->setMethods($this->collectionPersisterMockMethods)
94
+                                            ->getMock();
95 95
     }
96 96
 
97 97
     /**
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\Cache\Persister\Collection;
6 6
 
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
             ->with($this->equalTo($collection), $this->equalTo(1), $this->equalTo(2))
199 199
             ->will($this->returnValue($slice));
200 200
 
201
-        self::assertEquals($slice, $persister->slice($collection, 1 , 2));
201
+        self::assertEquals($slice, $persister->slice($collection, 1, 2));
202 202
     }
203 203
 
204 204
     public function testInvokeContains()
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
             ->with($this->equalTo($collection), $this->equalTo($element))
216 216
             ->will($this->returnValue(false));
217 217
 
218
-        self::assertFalse($persister->contains($collection,$element));
218
+        self::assertFalse($persister->contains($collection, $element));
219 219
     }
220 220
 
221 221
     public function testInvokeContainsKey()
Please login to merge, or discard this patch.
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.