Completed
Push — cs-fix-header-comment ( 27e626 )
by
unknown
27:18
created
eZ/Publish/Core/Persistence/Doctrine/ConnectionHandler.php 1 patch
Doc Comments   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     protected $connection;
26 26
 
27 27
     /**
28
-     * @param array|string $dsn
28
+     * @param string $dsn
29 29
      *
30 30
      * @return \Doctrine\DBAL\Connection
31 31
      */
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     /**
69 69
      * Create a Connection Handler with corresponding Doctrine connection from DSN.
70 70
      *
71
-     * @param array|string $dsn
71
+     * @param string $dsn
72 72
      *
73 73
      * @return ConnectionHandler
74 74
      */
@@ -459,8 +459,9 @@  discard block
 block discarded – undo
459 459
      *
460 460
      * This is an optimization and works around the ezcDB implementation.
461 461
      *
462
-     * @param string $identifier
463 462
      *
463
+     * @param string $name
464
+     * @param string $alias
464 465
      * @return string
465 466
      */
466 467
     public function alias($name, $alias)
@@ -495,7 +496,7 @@  discard block
 block discarded – undo
495 496
      * @param string $table
496 497
      * @param string $column
497 498
      *
498
-     * @return mixed
499
+     * @return string
499 500
      */
500 501
     public function getAutoIncrementValue($table, $column)
501 502
     {
Please login to merge, or discard this patch.
eZ/Publish/Core/Persistence/Legacy/Tests/Content/ContentHandlerTest.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1478,7 +1478,7 @@  discard block
 block discarded – undo
1478 1478
      *
1479 1479
      * @param string[] $methods
1480 1480
      *
1481
-     * @return \eZ\Publish\Core\Persistence\Legacy\Content\Handler
1481
+     * @return \PHPUnit\Framework\MockObject\MockObject
1482 1482
      */
1483 1483
     protected function getPartlyMockedHandler(array $methods)
1484 1484
     {
@@ -1502,7 +1502,7 @@  discard block
 block discarded – undo
1502 1502
     /**
1503 1503
      * Returns a TreeHandler mock.
1504 1504
      *
1505
-     * @return \eZ\Publish\Core\Persistence\Legacy\Content\TreeHandler|\PHPUnit\Framework\MockObject\MockObject
1505
+     * @return TreeHandler
1506 1506
      */
1507 1507
     protected function getTreeHandlerMock()
1508 1508
     {
@@ -1516,7 +1516,7 @@  discard block
 block discarded – undo
1516 1516
     /**
1517 1517
      * Returns a ContentTypeHandler mock.
1518 1518
      *
1519
-     * @return \eZ\Publish\Core\Persistence\Legacy\Content\Type\Handler|\PHPUnit\Framework\MockObject\MockObject
1519
+     * @return Type\Handler
1520 1520
      */
1521 1521
     protected function getContentTypeHandlerMock()
1522 1522
     {
Please login to merge, or discard this patch.
eZ/Publish/Core/Persistence/Legacy/Tests/Content/TreeHandlerTest.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
     /**
352 352
      * Returns Location Gateway mock.
353 353
      *
354
-     * @return \eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway|\PHPUnit\Framework\MockObject\MockObject
354
+     * @return LocationGateway
355 355
      */
356 356
     protected function getLocationGatewayMock()
357 357
     {
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
     /**
369 369
      * Returns a Location Mapper mock.
370 370
      *
371
-     * @return \eZ\Publish\Core\Persistence\Legacy\Content\Location\Mapper|\PHPUnit\Framework\MockObject\MockObject
371
+     * @return LocationMapper
372 372
      */
373 373
     protected function getLocationMapperMock()
374 374
     {
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
     /**
386 386
      * Returns Content Gateway mock.
387 387
      *
388
-     * @return \eZ\Publish\Core\Persistence\Legacy\Content\Gateway|\PHPUnit\Framework\MockObject\MockObject
388
+     * @return Gateway
389 389
      */
390 390
     protected function getContentGatewayMock()
391 391
     {
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
     /**
403 403
      * Returns a Content Mapper mock.
404 404
      *
405
-     * @return \eZ\Publish\Core\Persistence\Legacy\Content\Mapper|\PHPUnit\Framework\MockObject\MockObject
405
+     * @return Mapper
406 406
      */
407 407
     protected function getContentMapperMock()
408 408
     {
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
     /**
420 420
      * Returns a FieldHandler mock.
421 421
      *
422
-     * @return \eZ\Publish\Core\Persistence\Legacy\Content\FieldHandler|\PHPUnit\Framework\MockObject\MockObject
422
+     * @return FieldHandler
423 423
      */
424 424
     protected function getFieldHandlerMock()
425 425
     {
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
     }
432 432
 
433 433
     /**
434
-     * @param array $methods
434
+     * @param string[] $methods
435 435
      *
436 436
      * @return \eZ\Publish\Core\Persistence\Legacy\Content\TreeHandler|\PHPUnit\Framework\MockObject\MockObject
437 437
      */
Please login to merge, or discard this patch.
Legacy/Tests/Content/Type/ContentUpdater/Action/AddFieldTest.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -510,7 +510,7 @@  discard block
 block discarded – undo
510 510
      * Returns a Content fixture.
511 511
      *
512 512
      * @param int $versionNo
513
-     * @param array $languageCodes
513
+     * @param string[] $languageCodes
514 514
      *
515 515
      * @return \eZ\Publish\SPI\Persistence\Content
516 516
      */
@@ -566,7 +566,7 @@  discard block
 block discarded – undo
566 566
     /**
567 567
      * Returns a Content StorageHandler mock.
568 568
      *
569
-     * @return \eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler|\PHPUnit\Framework\MockObject\MockObject
569
+     * @return StorageHandler
570 570
      */
571 571
     protected function getContentStorageHandlerMock()
572 572
     {
@@ -580,7 +580,7 @@  discard block
 block discarded – undo
580 580
     /**
581 581
      * Returns a Content mapper mock.
582 582
      *
583
-     * @return \eZ\Publish\Core\Persistence\Legacy\Content\Mapper|\PHPUnit\Framework\MockObject\MockObject
583
+     * @return ContentMapper
584 584
      */
585 585
     protected function getContentMapperMock()
586 586
     {
Please login to merge, or discard this patch.
Legacy/Tests/Content/Type/ContentUpdater/Action/RemoveFieldTest.php 1 patch
Doc Comments   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -266,6 +266,8 @@  discard block
 block discarded – undo
266 266
     /**
267 267
      * Returns a Content fixture.
268 268
      *
269
+     * @param integer $versionNo
270
+     * @param string[] $languageCodes
269 271
      * @return \eZ\Publish\SPI\Persistence\Content
270 272
      */
271 273
     protected function getContentFixture($versionNo, $languageCodes)
@@ -317,7 +319,7 @@  discard block
 block discarded – undo
317 319
     /**
318 320
      * Returns a Content StorageHandler mock.
319 321
      *
320
-     * @return \eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler|\PHPUnit\Framework\MockObject\MockObject
322
+     * @return StorageHandler
321 323
      */
322 324
     protected function getContentStorageHandlerMock()
323 325
     {
@@ -331,7 +333,7 @@  discard block
 block discarded – undo
331 333
     /**
332 334
      * Returns a Content mapper mock.
333 335
      *
334
-     * @return \eZ\Publish\Core\Persistence\Legacy\Content\Mapper|\PHPUnit\Framework\MockObject\MockObject
336
+     * @return ContentMapper
335 337
      */
336 338
     protected function getContentMapperMock()
337 339
     {
Please login to merge, or discard this patch.
eZ/Publish/Core/Repository/Tests/Service/Mock/Base.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     }
148 148
 
149 149
     /**
150
-     * @return \eZ\Publish\Core\Repository\Helper\ContentTypeDomainMapper|\PHPUnit\Framework\MockObject\MockObject
150
+     * @return ContentTypeDomainMapper
151 151
      */
152 152
     protected function getContentTypeDomainMapperMock()
153 153
     {
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
      *
259 259
      * @param int $id
260 260
      *
261
-     * @return \eZ\Publish\API\Repository\Values\User\User
261
+     * @return null|\eZ\Publish\API\Repository\Values\User\UserReference
262 262
      */
263 263
     protected function getStubbedUser($id)
264 264
     {
Please login to merge, or discard this patch.
eZ/Publish/Core/Repository/Tests/Service/Mock/PermissionTest.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -656,7 +656,7 @@  discard block
 block discarded – undo
656 656
      * Returns Role stub.
657 657
      *
658 658
      * @param array $policiesData
659
-     * @param mixed $roleId
659
+     * @param integer $roleId
660 660
      *
661 661
      * @return \eZ\Publish\SPI\Persistence\User\Role
662 662
      */
@@ -1090,7 +1090,7 @@  discard block
 block discarded – undo
1090 1090
     protected $roleDomainMapperMock;
1091 1091
 
1092 1092
     /**
1093
-     * @return \eZ\Publish\Core\Repository\Helper\RoleDomainMapper|\PHPUnit\Framework\MockObject\MockObject
1093
+     * @return integer
1094 1094
      */
1095 1095
     protected function getRoleDomainMapperMock($methods = [])
1096 1096
     {
Please login to merge, or discard this patch.
eZ/Publish/Core/Repository/Tests/Service/Mock/UrlAliasTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3443,7 +3443,7 @@
 block discarded – undo
3443 3443
     }
3444 3444
 
3445 3445
     /**
3446
-     * @return \eZ\Publish\Core\Repository\Helper\NameSchemaService|\PHPUnit_Framework_MockObject_MockObject
3446
+     * @return NameSchemaService
3447 3447
      */
3448 3448
     protected function getNameSchemaServiceMock()
3449 3449
     {
Please login to merge, or discard this patch.
eZ/Publish/Core/Repository/Tests/Service/Mock/UrlTest.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -441,6 +441,9 @@  discard block
 block discarded – undo
441 441
             ->willReturn($hasAccess);
442 442
     }
443 443
 
444
+    /**
445
+     * @param URL $object
446
+     */
444 447
     protected function configureUrlViewPermission($object, $hasAccess = false)
445 448
     {
446 449
         $this->permissionResolver
@@ -454,6 +457,9 @@  discard block
 block discarded – undo
454 457
             ->willReturn($hasAccess);
455 458
     }
456 459
 
460
+    /**
461
+     * @param URL $object
462
+     */
457 463
     protected function configureUrlUpdatePermission($object, $hasAccess = false)
458 464
     {
459 465
         $this->permissionResolver
@@ -488,6 +494,10 @@  discard block
 block discarded – undo
488 494
             ->getMock();
489 495
     }
490 496
 
497
+    /**
498
+     * @param integer $id
499
+     * @param string $url
500
+     */
491 501
     private function getApiUrl($id = null, $url = null)
492 502
     {
493 503
         return new URL(['id' => $id, 'url' => $url]);
Please login to merge, or discard this patch.