@@ -33,6 +33,9 @@ discard block |
||
| 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 |
||
| 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); |
@@ -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\Models\DDC117; |
| 6 | 6 | |
@@ -23,6 +23,11 @@ |
||
| 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; |
@@ -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\Models\DDC117; |
| 6 | 6 | |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | - * @return ArrayCollection |
|
| 62 | + * @return DDC3579Admin[] |
|
| 63 | 63 | */ |
| 64 | 64 | public function getAdmins() |
| 65 | 65 | { |
@@ -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\Models\DDC3579; |
| 6 | 6 | |
@@ -28,6 +28,9 @@ |
||
| 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; |
@@ -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\Models\StockExchange; |
| 6 | 6 | |
@@ -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 | |
@@ -53,7 +53,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -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 | } |
@@ -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 | |