Completed
Push — EZP-31046-chain-config-resolve... ( 8dab85...449289 )
by
unknown
17:14 queued 02:33
created
Core/Repository/Strategy/ContentThumbnail/FirstMatchingFieldStrategy.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -50,6 +50,9 @@
 block discarded – undo
50 50
         return null;
51 51
     }
52 52
 
53
+    /**
54
+     * @return Field
55
+     */
53 56
     private function getFieldByIdentifier(string $identifier, array $fields): ?Field
54 57
     {
55 58
         /** @var \eZ\Publish\API\Repository\Values\Content\Field $field */
Please login to merge, or discard this patch.
eZ/Publish/Core/Repository/Values/ContentType/ContentTypeDraft.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
     /**
128 128
      * This method returns the content type field definitions from this type.
129 129
      *
130
-     * @return \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[]
130
+     * @return APIFieldDefinitionCollection
131 131
      */
132 132
     public function getFieldDefinitions(): APIFieldDefinitionCollection
133 133
     {
Please login to merge, or discard this patch.
eZ/Publish/Core/Repository/Tests/Service/Mock/DomainMapperTest.php 1 patch
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,11 +17,10 @@
 block discarded – undo
17 17
 use eZ\Publish\Core\Repository\Helper\DomainMapper;
18 18
 use eZ\Publish\Core\Repository\Values\Content\Content;
19 19
 use eZ\Publish\Core\Repository\Values\Content\VersionInfo;
20
-use eZ\Publish\SPI\Persistence\Content\ContentInfo;
20
+use eZ\Publish\SPI\Persistence\Content\ContentInfo as SPIContentInfo;
21 21
 use eZ\Publish\SPI\Persistence\Content\Location;
22 22
 use eZ\Publish\API\Repository\Values\Content\Location as APILocation;
23 23
 use eZ\Publish\SPI\Persistence\Content\VersionInfo as SPIVersionInfo;
24
-use eZ\Publish\SPI\Persistence\Content\ContentInfo as SPIContentInfo;
25 24
 
26 25
 /**
27 26
  * Mock test case for internal DomainMapper.
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.