@@ -94,6 +94,7 @@ |
||
| 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) |
@@ -90,8 +90,8 @@ |
||
| 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 | /** |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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() |
@@ -27,7 +27,7 @@ |
||
| 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) |
@@ -1,6 +1,6 @@ discard block |
||
| 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 | |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | $driver = new DatabaseDriver($sm); |
| 43 | 43 | |
| 44 | 44 | foreach ($driver->getAllClassNames() as $className) { |
| 45 | - if (!in_array(strtolower($className), $classNames)) { |
|
| 45 | + if ( ! in_array(strtolower($className), $classNames)) { |
|
| 46 | 46 | continue; |
| 47 | 47 | } |
| 48 | 48 | $class = new ClassMetadata($className); |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | if (count($metadatas) != count($classNames)) { |
| 54 | - $this->fail("Have not found all classes matching the names '" . implode(", ", $classNames) . "' only tables " . implode(", ", array_keys($metadatas))); |
|
| 54 | + $this->fail("Have not found all classes matching the names '".implode(", ", $classNames)."' only tables ".implode(", ", array_keys($metadatas))); |
|
| 55 | 55 | } |
| 56 | 56 | return $metadatas; |
| 57 | 57 | } |
@@ -141,6 +141,9 @@ |
||
| 141 | 141 | return $this->session; |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | + /** |
|
| 145 | + * @param string $session |
|
| 146 | + */ |
|
| 144 | 147 | public function setSession($session) |
| 145 | 148 | { |
| 146 | 149 | $this->session = $session; |
@@ -1,6 +1,6 @@ |
||
| 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 | |
@@ -286,6 +286,9 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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; |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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 | /** |
@@ -203,7 +203,7 @@ |
||
| 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 | { |
@@ -1,6 +1,6 @@ |
||
| 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 | |
@@ -90,6 +90,9 @@ |
||
| 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; |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -89,6 +89,7 @@ |
||
| 89 | 89 | |
| 90 | 90 | /** |
| 91 | 91 | * Set file |
| 92 | + * @param DDC1392File $value |
|
| 92 | 93 | */ |
| 93 | 94 | public function setFile($value = null) |
| 94 | 95 | { |
@@ -1,6 +1,6 @@ discard block |
||
| 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 | |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | |
| 61 | 61 | $em->flush(); |
| 62 | 62 | |
| 63 | - $q = $this->em->createQuery("SELECT COUNT(e) FROM " . __NAMESPACE__ . '\DDC1392File e'); |
|
| 63 | + $q = $this->em->createQuery("SELECT COUNT(e) FROM ".__NAMESPACE__.'\DDC1392File e'); |
|
| 64 | 64 | $result = $q->getSingleScalarResult(); |
| 65 | 65 | |
| 66 | 66 | self::assertEquals(1, $result); |
@@ -81,6 +81,9 @@ |
||
| 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; |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -85,6 +85,7 @@ discard block |
||
| 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 |
||
| 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; |
@@ -1,6 +1,6 @@ |
||
| 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 | |