@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * Inserts a new content object. |
121 | 121 | * |
122 | 122 | * @param \eZ\Publish\SPI\Persistence\Content\CreateStruct $struct |
123 | - * @param mixed $currentVersionNo |
|
123 | + * @param integer $currentVersionNo |
|
124 | 124 | * |
125 | 125 | * @return int ID |
126 | 126 | */ |
@@ -1237,7 +1237,7 @@ discard block |
||
1237 | 1237 | * |
1238 | 1238 | * Result is returned with oldest version first (using version id as it has index and is auto increment). |
1239 | 1239 | * |
1240 | - * @param mixed $contentId |
|
1240 | + * @param integer $contentId |
|
1241 | 1241 | * @param mixed|null $status Optional argument to filter versions by status, like {@see VersionInfo::STATUS_ARCHIVED}. |
1242 | 1242 | * @param int $limit Limit for items returned, -1 means none. |
1243 | 1243 | * |
@@ -1305,7 +1305,7 @@ discard block |
||
1305 | 1305 | /** |
1306 | 1306 | * Returns all version numbers for the given $contentId. |
1307 | 1307 | * |
1308 | - * @param mixed $contentId |
|
1308 | + * @param integer $contentId |
|
1309 | 1309 | * |
1310 | 1310 | * @return int[] |
1311 | 1311 | */ |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | * |
131 | 131 | * @param \eZ\Publish\SPI\Persistence\Content\Type\Group $group |
132 | 132 | * |
133 | - * @return mixed Group ID |
|
133 | + * @return integer Group ID |
|
134 | 134 | */ |
135 | 135 | public function insertGroup(Group $group) |
136 | 136 | { |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | * @param \eZ\Publish\SPI\Persistence\Content\Type $type |
330 | 330 | * @param mixed|null $typeId |
331 | 331 | * |
332 | - * @return mixed Type ID |
|
332 | + * @return integer Type ID |
|
333 | 333 | */ |
334 | 334 | public function insertType(Type $type, $typeId = null) |
335 | 335 | { |
@@ -424,8 +424,8 @@ discard block |
||
424 | 424 | /** |
425 | 425 | * Insert assignment of $typeId to $groupId. |
426 | 426 | * |
427 | - * @param mixed $groupId |
|
428 | - * @param mixed $typeId |
|
427 | + * @param integer $groupId |
|
428 | + * @param integer $typeId |
|
429 | 429 | * @param int $status |
430 | 430 | */ |
431 | 431 | public function insertGroupAssignment($groupId, $typeId, $status) |
@@ -456,8 +456,8 @@ discard block |
||
456 | 456 | /** |
457 | 457 | * Deletes a group assignments for a Type. |
458 | 458 | * |
459 | - * @param mixed $groupId |
|
460 | - * @param mixed $typeId |
|
459 | + * @param integer $groupId |
|
460 | + * @param integer $typeId |
|
461 | 461 | * @param int $status |
462 | 462 | */ |
463 | 463 | public function deleteGroupAssignment($groupId, $typeId, $status) |
@@ -506,7 +506,7 @@ discard block |
||
506 | 506 | /** |
507 | 507 | * Loads data about Group with $identifier. |
508 | 508 | * |
509 | - * @param mixed $identifier |
|
509 | + * @param string $identifier |
|
510 | 510 | * |
511 | 511 | * @return string[][] |
512 | 512 | */ |
@@ -565,7 +565,7 @@ discard block |
||
565 | 565 | /** |
566 | 566 | * Loads data for all Types in $status in $groupId. |
567 | 567 | * |
568 | - * @param mixed $groupId |
|
568 | + * @param integer $groupId |
|
569 | 569 | * @param int $status |
570 | 570 | * |
571 | 571 | * @return string[][] |
@@ -586,12 +586,12 @@ discard block |
||
586 | 586 | /** |
587 | 587 | * Inserts a $fieldDefinition for $typeId. |
588 | 588 | * |
589 | - * @param mixed $typeId |
|
589 | + * @param integer $typeId |
|
590 | 590 | * @param int $status |
591 | 591 | * @param \eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition |
592 | 592 | * @param \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition $storageFieldDef |
593 | 593 | * |
594 | - * @return mixed Field definition ID |
|
594 | + * @return integer Field definition ID |
|
595 | 595 | */ |
596 | 596 | public function insertFieldDefinition( |
597 | 597 | $typeId, |
@@ -804,9 +804,9 @@ discard block |
||
804 | 804 | /** |
805 | 805 | * Deletes a field definition. |
806 | 806 | * |
807 | - * @param mixed $typeId |
|
807 | + * @param integer $typeId |
|
808 | 808 | * @param int $status |
809 | - * @param mixed $fieldDefinitionId |
|
809 | + * @param integer $fieldDefinitionId |
|
810 | 810 | */ |
811 | 811 | public function deleteFieldDefinition($typeId, $status, $fieldDefinitionId) |
812 | 812 | { |
@@ -847,7 +847,7 @@ discard block |
||
847 | 847 | /** |
848 | 848 | * Updates a $fieldDefinition for $typeId. |
849 | 849 | * |
850 | - * @param mixed $typeId |
|
850 | + * @param integer $typeId |
|
851 | 851 | * @param int $status |
852 | 852 | * @param \eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition |
853 | 853 | * @param \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition $storageFieldDef |
@@ -990,9 +990,8 @@ discard block |
||
990 | 990 | /** |
991 | 991 | * Update a type with $updateStruct. |
992 | 992 | * |
993 | - * @param mixed $typeId |
|
993 | + * @param integer $typeId |
|
994 | 994 | * @param int $status |
995 | - * @param \eZ\Publish\SPI\Persistence\Content\Type\UpdateStruct $updateStruct |
|
996 | 995 | */ |
997 | 996 | public function updateType($typeId, $status, Type $type) |
998 | 997 | { |
@@ -1035,7 +1034,7 @@ discard block |
||
1035 | 1034 | /** |
1036 | 1035 | * Loads an array with data about $typeId in $status. |
1037 | 1036 | * |
1038 | - * @param mixed $typeId |
|
1037 | + * @param integer $typeId |
|
1039 | 1038 | * @param int $status |
1040 | 1039 | * |
1041 | 1040 | * @return array Data rows. |
@@ -1077,7 +1076,7 @@ discard block |
||
1077 | 1076 | * Loads an array with data about the type referred to by $remoteId in |
1078 | 1077 | * $status. |
1079 | 1078 | * |
1080 | - * @param mixed $remoteId |
|
1079 | + * @param string $remoteId |
|
1081 | 1080 | * @param int $status |
1082 | 1081 | * |
1083 | 1082 | * @return array(int=>array(string=>mixed)) Data rows. |
@@ -104,7 +104,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | { |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * |
48 | 48 | * @param \eZ\Publish\SPI\Persistence\Content\UrlWildcard $urlWildcard |
49 | 49 | * |
50 | - * @return mixed |
|
50 | + * @return integer |
|
51 | 51 | */ |
52 | 52 | public function insertUrlWildcard(UrlWildcard $urlWildcard) |
53 | 53 | { |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | /** |
92 | 92 | * Deletes the UrlWildcard with given $id. |
93 | 93 | * |
94 | - * @param mixed $id |
|
94 | + * @param integer $id |
|
95 | 95 | */ |
96 | 96 | public function deleteUrlWildcard($id) |
97 | 97 | { |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | /** |
112 | 112 | * Loads an array with data about UrlWildcard with $id. |
113 | 113 | * |
114 | - * @param mixed $id |
|
114 | + * @param integer $id |
|
115 | 115 | * |
116 | 116 | * @return array |
117 | 117 | */ |
@@ -138,8 +138,8 @@ discard block |
||
138 | 138 | /** |
139 | 139 | * Loads an array with data about UrlWildcards (paged). |
140 | 140 | * |
141 | - * @param mixed $offset |
|
142 | - * @param mixed $limit |
|
141 | + * @param integer $offset |
|
142 | + * @param integer $limit |
|
143 | 143 | * |
144 | 144 | * @return array |
145 | 145 | */ |
@@ -127,18 +127,18 @@ |
||
127 | 127 | * Link word with specific content object (legacy db table: ezsearch_object_word_link). |
128 | 128 | * |
129 | 129 | * @param $wordId |
130 | - * @param $contentId |
|
131 | - * @param $frequency |
|
132 | - * @param $placement |
|
130 | + * @param integer $contentId |
|
131 | + * @param integer $frequency |
|
132 | + * @param integer $placement |
|
133 | 133 | * @param $nextWordId |
134 | 134 | * @param $prevWordId |
135 | - * @param $contentTypeId |
|
135 | + * @param integer $contentTypeId |
|
136 | 136 | * @param $fieldTypeId |
137 | - * @param $published |
|
138 | - * @param $sectionId |
|
137 | + * @param integer $published |
|
138 | + * @param integer $sectionId |
|
139 | 139 | * @param $identifier |
140 | 140 | * @param $integerValue |
141 | - * @param $languageMask |
|
141 | + * @param integer $languageMask |
|
142 | 142 | */ |
143 | 143 | public function addObjectWordLink($wordId, |
144 | 144 | $contentId, |
@@ -332,7 +332,7 @@ |
||
332 | 332 | } |
333 | 333 | |
334 | 334 | /** |
335 | - * @param mixed $locationId |
|
335 | + * @param integer $locationId |
|
336 | 336 | * @param bool $count |
337 | 337 | * |
338 | 338 | * @return \Doctrine\DBAL\Driver\Statement |
@@ -1235,7 +1235,7 @@ discard block |
||
1235 | 1235 | /** |
1236 | 1236 | * Create test Content with ezcountry field having multiple countries selected. |
1237 | 1237 | * |
1238 | - * @return \eZ\Publish\API\Repository\Values\Content\Content[] |
|
1238 | + * @return Content |
|
1239 | 1239 | */ |
1240 | 1240 | protected function createMultipleCountriesContent() |
1241 | 1241 | { |
@@ -3871,6 +3871,7 @@ discard block |
||
3871 | 3871 | * Test for the findContent() method. |
3872 | 3872 | * |
3873 | 3873 | * @see \eZ\Publish\API\Repository\SearchService::findContent() |
3874 | + * @param string $queryType |
|
3874 | 3875 | */ |
3875 | 3876 | public function testUserMetadataGroupHorizontalFilterContent($queryType = null) |
3876 | 3877 | { |
@@ -3960,6 +3961,7 @@ discard block |
||
3960 | 3961 | * Test for the findLocations() method. |
3961 | 3962 | * |
3962 | 3963 | * @see \eZ\Publish\API\Repository\SearchService::findLocations() |
3964 | + * @param string $queryType |
|
3963 | 3965 | */ |
3964 | 3966 | public function testUserMetadataGroupHorizontalFilterLocation($queryType = null) |
3965 | 3967 | { |
@@ -4678,7 +4680,7 @@ discard block |
||
4678 | 4680 | * |
4679 | 4681 | * @param null|callable $closure |
4680 | 4682 | * |
4681 | - * @return callable |
|
4683 | + * @return \Closure |
|
4682 | 4684 | */ |
4683 | 4685 | private function getContentInfoFixtureClosure($closure = null) |
4684 | 4686 | { |
@@ -4779,7 +4781,7 @@ discard block |
||
4779 | 4781 | /** |
4780 | 4782 | * @param string $findMethod |
4781 | 4783 | * @param \eZ\Publish\API\Repository\Values\Content\Query $query |
4782 | - * @param array $languages |
|
4784 | + * @param string[] $languages |
|
4783 | 4785 | * @param bool $useAlwaysAvailable |
4784 | 4786 | * |
4785 | 4787 | * @throws \InvalidArgumentException |
@@ -10,11 +10,10 @@ |
||
10 | 10 | |
11 | 11 | use eZ\Publish\API\Repository\PermissionCriterionResolver; |
12 | 12 | use eZ\Publish\API\Repository\Values\Content\Language; |
13 | -use eZ\Publish\API\Repository\Values\Content\Location; |
|
13 | +use eZ\Publish\API\Repository\Values\Content\Location as APILocation; |
|
14 | 14 | use eZ\Publish\API\Repository\Values\Content\LocationUpdateStruct; |
15 | 15 | use eZ\Publish\API\Repository\Values\Content\LocationCreateStruct; |
16 | 16 | use eZ\Publish\API\Repository\Values\Content\ContentInfo; |
17 | -use eZ\Publish\API\Repository\Values\Content\Location as APILocation; |
|
18 | 17 | use eZ\Publish\API\Repository\Values\Content\LocationList; |
19 | 18 | use eZ\Publish\API\Repository\Values\Content\VersionInfo; |
20 | 19 | use eZ\Publish\SPI\Persistence\Content\Location as SPILocation; |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException |
310 | 310 | * @throws \eZ\Publish\API\Repository\Exceptions\ForbiddenException |
311 | 311 | * |
312 | - * @param mixed $locationId |
|
312 | + * @param integer $locationId |
|
313 | 313 | * @param string $path |
314 | 314 | * @param bool $forwarding |
315 | 315 | * @param string $languageCode |
@@ -486,7 +486,7 @@ discard block |
||
486 | 486 | * |
487 | 487 | * @throws \eZ\Publish\API\Repository\Exceptions\BadStateException |
488 | 488 | * |
489 | - * @param mixed $locationId |
|
489 | + * @param integer $locationId |
|
490 | 490 | * @param bool $custom if true the user generated aliases are listed otherwise the autogenerated |
491 | 491 | * |
492 | 492 | * @return \eZ\Publish\SPI\Persistence\Content\UrlAlias[] |
@@ -622,9 +622,9 @@ discard block |
||
622 | 622 | * |
623 | 623 | * This method triggers the change of the autogenerated aliases. |
624 | 624 | * |
625 | - * @param mixed $locationId |
|
626 | - * @param mixed $oldParentId |
|
627 | - * @param mixed $newParentId |
|
625 | + * @param integer $locationId |
|
626 | + * @param integer $oldParentId |
|
627 | + * @param integer $newParentId |
|
628 | 628 | */ |
629 | 629 | public function locationMoved($locationId, $oldParentId, $newParentId) |
630 | 630 | { |
@@ -652,9 +652,9 @@ discard block |
||
652 | 652 | * |
653 | 653 | * This method triggers the creation of the autogenerated aliases for the copied locations |
654 | 654 | * |
655 | - * @param mixed $locationId |
|
656 | - * @param mixed $newLocationId |
|
657 | - * @param mixed $newParentId |
|
655 | + * @param integer $locationId |
|
656 | + * @param integer $newLocationId |
|
657 | + * @param integer $newParentId |
|
658 | 658 | */ |
659 | 659 | public function locationCopied($locationId, $newLocationId, $newParentId) |
660 | 660 | { |