Completed
Push — EZP-30796 ( f0f472...25bc5f )
by
unknown
19:03
created
eZ/Publish/API/Repository/Tests/ContentServiceTest.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2737,7 +2737,7 @@  discard block
 block discarded – undo
2737 2737
     /**
2738 2738
      * Test for the addRelation() method.
2739 2739
      *
2740
-     * @return \eZ\Publish\API\Repository\Values\Content\Content
2740
+     * @return Relation[]
2741 2741
      *
2742 2742
      * @see \eZ\Publish\API\Repository\ContentService::addRelation()
2743 2743
      * @depends eZ\Publish\API\Repository\Tests\ContentServiceTest::testPublishVersionFromContentDraft
@@ -4554,7 +4554,7 @@  discard block
 block discarded – undo
4554 4554
      * given properties are available in $actualAliases and not more.
4555 4555
      *
4556 4556
      * @param array $expectedAliasProperties
4557
-     * @param array $actualAliases
4557
+     * @param URLAlias[] $actualAliases
4558 4558
      */
4559 4559
     private function assertAliasesCorrect(array $expectedAliasProperties, array $actualAliases)
4560 4560
     {
@@ -4716,7 +4716,7 @@  discard block
 block discarded – undo
4716 4716
     /**
4717 4717
      * Returns the default fixture of fields used in most tests.
4718 4718
      *
4719
-     * @return \eZ\Publish\API\Repository\Values\Content\Field[]
4719
+     * @return Field[]
4720 4720
      */
4721 4721
     private function createFieldsFixture()
4722 4722
     {
Please login to merge, or discard this patch.
eZ/Publish/Core/Repository/Tests/Service/Mock/ContentTest.php 2 patches
Doc Comments   +11 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1052,7 +1052,7 @@  discard block
 block discarded – undo
1052 1052
      * @param string $mainLanguageCode
1053 1053
      * @param \eZ\Publish\API\Repository\Values\Content\Field[] $structFields
1054 1054
      * @param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] $fieldDefinitions
1055
-     * @param array $languageCodes
1055
+     * @param string[] $languageCodes
1056 1056
      *
1057 1057
      * @return array
1058 1058
      */
@@ -1126,10 +1126,9 @@  discard block
 block discarded – undo
1126 1126
      * @param \eZ\Publish\SPI\Persistence\Content\Field[] $spiFields
1127 1127
      * @param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] $fieldDefinitions
1128 1128
      * @param \eZ\Publish\API\Repository\Values\Content\LocationCreateStruct[] $locationCreateStructs
1129
-     * @param \eZ\Publish\SPI\Persistence\Content\ObjectState\Group[] $objectStateGroups
1130 1129
      * @param bool $execute
1131 1130
      *
1132
-     * @return mixed
1131
+     * @return ContentCreateStruct
1133 1132
      */
1134 1133
     protected function assertForTestCreateContentNonRedundantFieldSet(
1135 1134
         $mainLanguageCode,
@@ -2006,7 +2005,7 @@  discard block
 block discarded – undo
2006 2005
      * @param \eZ\Publish\API\Repository\Values\Content\Field[] $structFields
2007 2006
      * @param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] $fieldDefinitions
2008 2007
      *
2009
-     * @return mixed
2008
+     * @return ContentCreateStruct
2010 2009
      */
2011 2010
     protected function assertForTestCreateContentRequiredField(
2012 2011
         $mainLanguageCode,
@@ -4793,6 +4792,10 @@  discard block
 block discarded – undo
4793 4792
         );
4794 4793
     }
4795 4794
 
4795
+    /**
4796
+     * @param Field[] $existingFields
4797
+     * @param FieldDefinition[] $fieldDefinitions
4798
+     */
4796 4799
     public function assertForTestUpdateContentRequiredField(
4797 4800
         $initialLanguageCode,
4798 4801
         $structFields,
@@ -4991,6 +4994,10 @@  discard block
 block discarded – undo
4991 4994
         }
4992 4995
     }
4993 4996
 
4997
+    /**
4998
+     * @param Field[] $existingFields
4999
+     * @param FieldDefinition[] $fieldDefinitions
5000
+     */
4994 5001
     public function assertForTestUpdateContentThrowsContentFieldValidationException(
4995 5002
         $initialLanguageCode,
4996 5003
         $structFields,
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 use eZ\Publish\API\Repository\ContentTypeService as APIContentTypeService;
15 15
 use eZ\Publish\API\Repository\LocationService as APILocationService;
16 16
 use eZ\Publish\API\Repository\Exceptions\NotFoundException as APINotFoundException;
17
-use eZ\Publish\API\Repository\Values\Content\ContentInfo as APIContentInfo;
17
+use eZ\Publish\API\Repository\Values\Content\ContentInfo;
18 18
 use eZ\Publish\API\Repository\Values\ContentType\ContentType as APIContentType;
19 19
 use eZ\Publish\API\Repository\Values\Content\Location as APILocation;
20 20
 use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition as APIFieldDefinition;
@@ -33,7 +33,6 @@  discard block
 block discarded – undo
33 33
 use eZ\Publish\Core\Repository\Helper\NameSchemaService;
34 34
 use eZ\Publish\API\Repository\Values\Content\Field;
35 35
 use eZ\Publish\Core\FieldType\Value;
36
-use eZ\Publish\API\Repository\Values\Content\ContentInfo;
37 36
 use eZ\Publish\API\Repository\Values\Content\VersionInfo as APIVersionInfo;
38 37
 use eZ\Publish\Core\Repository\Values\ContentType\ContentType;
39 38
 use eZ\Publish\Core\Repository\Values\ContentType\FieldDefinition;
Please login to merge, or discard this patch.
eZ/Publish/Core/Repository/LocationService.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -723,7 +723,7 @@
 block discarded – undo
723 723
      * Instantiates a new location create class.
724 724
      *
725 725
      * @param mixed $parentLocationId the parent under which the new location should be created
726
-     * @param eZ\Publish\API\Repository\Values\ContentType\ContentType|null $contentType
726
+     * @param null|ContentType $contentType
727 727
      *
728 728
      * @return \eZ\Publish\API\Repository\Values\Content\LocationCreateStruct
729 729
      */
Please login to merge, or discard this patch.
eZ/Publish/Core/Repository/ContentService.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1416,7 +1416,7 @@  discard block
 block discarded – undo
1416 1416
      *
1417 1417
      * @param \eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct $contentUpdateStruct
1418 1418
      *
1419
-     * @return array
1419
+     * @return string[]
1420 1420
      */
1421 1421
     private function getUpdatedLanguageCodes(APIContentUpdateStruct $contentUpdateStruct)
1422 1422
     {
@@ -1443,7 +1443,7 @@  discard block
 block discarded – undo
1443 1443
      * @param \eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct $contentUpdateStruct
1444 1444
      * @param \eZ\Publish\API\Repository\Values\Content\Content $content
1445 1445
      *
1446
-     * @return array
1446
+     * @return string[]
1447 1447
      */
1448 1448
     protected function getLanguageCodesForUpdate(APIContentUpdateStruct $contentUpdateStruct, APIContent $content)
1449 1449
     {
@@ -1572,7 +1572,7 @@  discard block
 block discarded – undo
1572 1572
 
1573 1573
     /**
1574 1574
      * @param \eZ\Publish\API\Repository\Values\Content\VersionInfo $versionInfo
1575
-     * @param array $translations
1575
+     * @param string[] $translations
1576 1576
      *
1577 1577
      * @throws \eZ\Publish\API\Repository\Exceptions\BadStateException
1578 1578
      * @throws \eZ\Publish\API\Repository\Exceptions\ContentFieldValidationException
@@ -1642,7 +1642,7 @@  discard block
 block discarded – undo
1642 1642
      * @param \eZ\Publish\API\Repository\Values\Content\VersionInfo $versionInfo
1643 1643
      * @param int|null $publicationDate If null existing date is kept if there is one, otherwise current time is used.
1644 1644
      *
1645
-     * @return \eZ\Publish\API\Repository\Values\Content\Content
1645
+     * @return LocationCreateStruct
1646 1646
      */
1647 1647
     protected function internalPublishVersion(APIVersionInfo $versionInfo, $publicationDate = null)
1648 1648
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 use eZ\Publish\API\Repository\Repository as RepositoryInterface;
13 13
 use eZ\Publish\Core\Repository\Values\Content\Location;
14 14
 use eZ\Publish\API\Repository\Values\Content\Language;
15
-use eZ\Publish\SPI\Persistence\Content\Type;
16 15
 use eZ\Publish\SPI\Persistence\Handler;
17 16
 use eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct as APIContentUpdateStruct;
18 17
 use eZ\Publish\API\Repository\Values\ContentType\ContentType;
Please login to merge, or discard this patch.
eZ/Publish/Core/Repository/Helper/DomainMapper.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
      * @throws InvalidArgumentType On invalid $contentType
242 242
      *
243 243
      * @param \eZ\Publish\SPI\Persistence\Content\Field[] $spiFields
244
-     * @param \eZ\Publish\API\Repository\Values\ContentType\ContentType|\eZ\Publish\SPI\Persistence\Content\Type $contentType
244
+     * @param ContentType $contentType
245 245
      * @param array $prioritizedLanguages A language priority, filters returned fields and is used as prioritized language code on
246 246
      *                         returned value object. If not given all languages are returned.
247 247
      * @param string|null $alwaysAvailableLanguage Language code fallback if a given field is not found in $prioritizedLanguages
@@ -684,7 +684,7 @@  discard block
 block discarded – undo
684 684
      * @param \eZ\Publish\API\Repository\Values\Content\Location $parentLocation
685 685
      * @param mixed $mainLocation
686 686
      * @param mixed $contentId
687
-     * @param mixed $contentVersionNo
687
+     * @param null|integer $contentVersionNo
688 688
      *
689 689
      * @return \eZ\Publish\SPI\Persistence\Content\Location\CreateStruct
690 690
      */
Please login to merge, or discard this patch.