Completed
Push — ezp-31088-replace-content-gw-d... ( e5a0f6 )
by
unknown
17:33 queued 03:34
created
eZ/Bundle/EzPublishCoreBundle/EventListener/ConfigScopeListener.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@
 block discarded – undo
24 24
     /** @var \eZ\Publish\Core\MVC\Symfony\View\ViewProvider|\eZ\Publish\Core\MVC\Symfony\SiteAccess\SiteAccessAware */
25 25
     private $viewProviders;
26 26
 
27
+    /**
28
+     * @param \PHPUnit\Framework\MockObject\MockObject[] $configResolvers
29
+     */
27 30
     public function __construct(
28 31
         iterable $configResolvers,
29 32
         ViewManagerInterface $viewManager
Please login to merge, or discard this patch.
eZ/Publish/Core/Repository/Tests/Service/Mock/ContentTest.php 1 patch
Doc Comments   +12 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1082,7 +1082,7 @@  discard block
 block discarded – undo
1082 1082
      * @param string $mainLanguageCode
1083 1083
      * @param \eZ\Publish\API\Repository\Values\Content\Field[] $structFields
1084 1084
      * @param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] $fieldDefinitions
1085
-     * @param array $languageCodes
1085
+     * @param string[] $languageCodes
1086 1086
      *
1087 1087
      * @return array
1088 1088
      *
@@ -1158,10 +1158,9 @@  discard block
 block discarded – undo
1158 1158
      * @param \eZ\Publish\SPI\Persistence\Content\Field[] $spiFields
1159 1159
      * @param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] $fieldDefinitions
1160 1160
      * @param \eZ\Publish\API\Repository\Values\Content\LocationCreateStruct[] $locationCreateStructs
1161
-     * @param \eZ\Publish\SPI\Persistence\Content\ObjectState\Group[] $objectStateGroups
1162 1161
      * @param bool $execute
1163 1162
      *
1164
-     * @return mixed
1163
+     * @return ContentCreateStruct
1165 1164
      */
1166 1165
     protected function assertForTestCreateContentNonRedundantFieldSet(
1167 1166
         $mainLanguageCode,
@@ -2045,7 +2044,7 @@  discard block
 block discarded – undo
2045 2044
      * @param \eZ\Publish\API\Repository\Values\Content\Field[] $structFields
2046 2045
      * @param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] $fieldDefinitions
2047 2046
      *
2048
-     * @return mixed
2047
+     * @return ContentCreateStruct
2049 2048
      */
2050 2049
     protected function assertForTestCreateContentRequiredField(
2051 2050
         $mainLanguageCode,
@@ -4873,6 +4872,10 @@  discard block
 block discarded – undo
4873 4872
         );
4874 4873
     }
4875 4874
 
4875
+    /**
4876
+     * @param Field[] $existingFields
4877
+     * @param FieldDefinition[] $fieldDefinitions
4878
+     */
4876 4879
     public function assertForTestUpdateContentRequiredField(
4877 4880
         $initialLanguageCode,
4878 4881
         $structFields,
@@ -5081,6 +5084,10 @@  discard block
 block discarded – undo
5081 5084
         }
5082 5085
     }
5083 5086
 
5087
+    /**
5088
+     * @param Field[] $existingFields
5089
+     * @param FieldDefinition[] $fieldDefinitions
5090
+     */
5084 5091
     public function assertForTestUpdateContentThrowsContentFieldValidationException(
5085 5092
         $initialLanguageCode,
5086 5093
         $structFields,
@@ -5820,7 +5827,7 @@  discard block
 block discarded – undo
5820 5827
      * @param array $translations
5821 5828
      * @param bool $useAlwaysAvailable
5822 5829
      *
5823
-     * @return \PHPUnit\Framework\MockObject\MockObject|\eZ\Publish\API\Repository\Values\Content\Content
5830
+     * @return APIContent
5824 5831
      */
5825 5832
     private function mockBuildContentDomainObject(SPIContent $spiContent, array $translations = null, bool $useAlwaysAvailable = null)
5826 5833
     {
Please login to merge, or discard this patch.
eZ/Publish/API/Repository/Exceptions/InvalidVariationException.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -12,6 +12,10 @@
 block discarded – undo
12 12
 
13 13
 class InvalidVariationException extends InvalidArgumentException
14 14
 {
15
+    /**
16
+     * @param string $variationName
17
+     * @param string $variationType
18
+     */
15 19
     public function __construct($variationName, $variationType, $code = 0, Exception $previous = null)
16 20
     {
17 21
         parent::__construct("Invalid variation '$variationName' for $variationType", $code, $previous);
Please login to merge, or discard this patch.
Bundle/EzPublishCoreBundle/DependencyInjection/Configuration/Parser/IO.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -100,6 +100,7 @@
 block discarded – undo
100 100
 
101 101
     /**
102 102
      * Applies dependencies of complex $parameter in $scope.
103
+     * @param string $parameter
103 104
      */
104 105
     private function addComplexParametersDependencies($parameter, $scope, ContainerBuilder $container)
105 106
     {
Please login to merge, or discard this patch.
eZ/Bundle/EzPublishIOBundle/EventListener/StreamFileListener.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -77,6 +77,7 @@
 block discarded – undo
77 77
      * Tests if $uri is an IO file uri root.
78 78
      *
79 79
      * @param string $uri
80
+     * @param string $urlPrefix
80 81
      *
81 82
      * @return bool
82 83
      */
Please login to merge, or discard this patch.
eZ/Publish/Core/Repository/ContentService.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1481,7 +1481,7 @@  discard block
 block discarded – undo
1481 1481
      *
1482 1482
      * @param \eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct $contentUpdateStruct
1483 1483
      *
1484
-     * @return array
1484
+     * @return string[]
1485 1485
      */
1486 1486
     private function getUpdatedLanguageCodes(APIContentUpdateStruct $contentUpdateStruct)
1487 1487
     {
@@ -1508,7 +1508,7 @@  discard block
 block discarded – undo
1508 1508
      * @param \eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct $contentUpdateStruct
1509 1509
      * @param \eZ\Publish\API\Repository\Values\Content\Content $content
1510 1510
      *
1511
-     * @return array
1511
+     * @return string[]
1512 1512
      */
1513 1513
     protected function getLanguageCodesForUpdate(APIContentUpdateStruct $contentUpdateStruct, APIContent $content)
1514 1514
     {
@@ -1632,7 +1632,7 @@  discard block
 block discarded – undo
1632 1632
 
1633 1633
     /**
1634 1634
      * @param \eZ\Publish\API\Repository\Values\Content\VersionInfo $versionInfo
1635
-     * @param array $translations
1635
+     * @param string[] $translations
1636 1636
      *
1637 1637
      * @throws \eZ\Publish\API\Repository\Exceptions\BadStateException
1638 1638
      * @throws \eZ\Publish\API\Repository\Exceptions\ContentFieldValidationException
Please login to merge, or discard this patch.
eZ/Publish/Core/Repository/RoleService.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1052,7 +1052,7 @@
 block discarded – undo
1052 1052
      *
1053 1053
      * @param \eZ\Publish\API\Repository\Values\User\RoleCreateStruct $roleCreateStruct
1054 1054
      *
1055
-     * @return \eZ\Publish\Core\FieldType\ValidationError[][][]
1055
+     * @return \eZ\Publish\Core\FieldType\ValidationError[]
1056 1056
      *
1057 1057
      * @throws \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException
1058 1058
      */
Please login to merge, or discard this patch.
eZ/Publish/Core/Persistence/Legacy/Content/Handler.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      * Will contain always a complete list of fields.
151 151
      *
152 152
      * @param \eZ\Publish\SPI\Persistence\Content\CreateStruct $struct Content creation struct.
153
-     * @param mixed $versionNo Used by self::copy() to maintain version numbers
153
+     * @param integer $versionNo Used by self::copy() to maintain version numbers
154 154
      *
155 155
      * @return \eZ\Publish\SPI\Persistence\Content Content value object
156 156
      */
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
     /**
438 438
      * Returns the metadata object for a content identified by $remoteId.
439 439
      *
440
-     * @param mixed $remoteId
440
+     * @param string $remoteId
441 441
      *
442 442
      * @return \eZ\Publish\SPI\Persistence\Content\ContentInfo
443 443
      */
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
      *
635 635
      * @param int $contentId
636 636
      *
637
-     * @return bool
637
+     * @return boolean|null
638 638
      */
639 639
     public function deleteContent($contentId)
640 640
     {
@@ -666,7 +666,7 @@  discard block
 block discarded – undo
666 666
      * @param int $contentId
667 667
      * @param int $versionNo
668 668
      *
669
-     * @return bool
669
+     * @return boolean|null
670 670
      */
671 671
     public function deleteVersion($contentId, $versionNo)
672 672
     {
@@ -704,8 +704,8 @@  discard block
 block discarded – undo
704 704
      *
705 705
      * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If content or version is not found
706 706
      *
707
-     * @param mixed $contentId
708
-     * @param mixed|null $versionNo Copy all versions if left null
707
+     * @param integer $contentId
708
+     * @param integer $versionNo Copy all versions if left null
709 709
      * @param int|null $newOwnerId
710 710
      *
711 711
      * @return \eZ\Publish\SPI\Persistence\Content
@@ -793,7 +793,7 @@  discard block
 block discarded – undo
793 793
      *
794 794
      * @todo Should the existence verifications happen here or is this supposed to be handled at a higher level?
795 795
      *
796
-     * @param mixed $relationId
796
+     * @param integer $relationId
797 797
      * @param int $type {@see \eZ\Publish\API\Repository\Values\Content\Relation::COMMON,
798 798
      *                 \eZ\Publish\API\Repository\Values\Content\Relation::EMBED,
799 799
      *                 \eZ\Publish\API\Repository\Values\Content\Relation::LINK,
@@ -807,7 +807,7 @@  discard block
 block discarded – undo
807 807
     /**
808 808
      * Loads relations from $sourceContentId. Optionally, loads only those with $type and $sourceContentVersionNo.
809 809
      *
810
-     * @param mixed $sourceContentId Source Content ID
810
+     * @param integer $sourceContentId Source Content ID
811 811
      * @param mixed|null $sourceContentVersionNo Source Content Version, null if not specified
812 812
      * @param int|null $type {@see \eZ\Publish\API\Repository\Values\Content\Relation::COMMON,
813 813
      *                 \eZ\Publish\API\Repository\Values\Content\Relation::EMBED,
@@ -836,7 +836,7 @@  discard block
 block discarded – undo
836 836
      *
837 837
      * Only loads relations against published versions.
838 838
      *
839
-     * @param mixed $destinationContentId Destination Content ID
839
+     * @param integer $destinationContentId Destination Content ID
840 840
      * @param int|null $type {@see \eZ\Publish\API\Repository\Values\Content\Relation::COMMON,
841 841
      *                 \eZ\Publish\API\Repository\Values\Content\Relation::EMBED,
842 842
      *                 \eZ\Publish\API\Repository\Values\Content\Relation::LINK,
Please login to merge, or discard this patch.
Core/Persistence/Legacy/Content/UrlAlias/Gateway/DoctrineDatabase.php 1 patch
Doc Comments   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     /**
105 105
      * Loads list of aliases by given $locationId.
106 106
      *
107
-     * @param mixed $locationId
107
+     * @param integer $locationId
108 108
      * @param bool $custom
109 109
      * @param mixed $languageId
110 110
      *
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
      *
275 275
      * @param string $action
276 276
      * @param mixed $languageId
277
-     * @param mixed $newId
277
+     * @param integer $newId
278 278
      * @param mixed $parentId
279 279
      * @param string $textMD5
280 280
      */
@@ -448,9 +448,9 @@  discard block
 block discarded – undo
448 448
      *
449 449
      * Removes given $languageId from entry's language mask
450 450
      *
451
-     * @param mixed $parentId
451
+     * @param integer $parentId
452 452
      * @param string $textMD5
453
-     * @param mixed $languageId
453
+     * @param integer $languageId
454 454
      */
455 455
     protected function removeTranslation($parentId, $textMD5, $languageId)
456 456
     {
@@ -533,8 +533,8 @@  discard block
 block discarded – undo
533 533
      *
534 534
      * Update includes history entries.
535 535
      *
536
-     * @param mixed $oldParentId
537
-     * @param mixed $newParentId
536
+     * @param integer $oldParentId
537
+     * @param integer $newParentId
538 538
      */
539 539
     public function reparent($oldParentId, $newParentId)
540 540
     {
@@ -680,7 +680,7 @@  discard block
 block discarded – undo
680 680
     /**
681 681
      * Returns next value for "id" column.
682 682
      *
683
-     * @return mixed
683
+     * @return integer
684 684
      */
685 685
     public function getNextId()
686 686
     {
@@ -823,7 +823,7 @@  discard block
 block discarded – undo
823 823
      * Loads autogenerated entry id by given $action and optionally $parentId.
824 824
      *
825 825
      * @param string $action
826
-     * @param mixed|null $parentId
826
+     * @param integer $parentId
827 827
      *
828 828
      * @return array
829 829
      */
@@ -1007,7 +1007,7 @@  discard block
 block discarded – undo
1007 1007
     /**
1008 1008
      * Deletes single custom alias row matched by composite primary key.
1009 1009
      *
1010
-     * @param mixed $parentId
1010
+     * @param integer $parentId
1011 1011
      * @param string $textMD5
1012 1012
      *
1013 1013
      * @return bool
@@ -1045,10 +1045,10 @@  discard block
 block discarded – undo
1045 1045
      *
1046 1046
      * If $id is set only autogenerated entries will be removed.
1047 1047
      *
1048
-     * @param mixed $action
1049
-     * @param mixed|null $id
1048
+     * @param string $action
1049
+     * @param integer $id
1050 1050
      *
1051
-     * @return bool
1051
+     * @return boolean|null
1052 1052
      */
1053 1053
     public function remove($action, $id = null)
1054 1054
     {
Please login to merge, or discard this patch.