@@ -127,15 +127,15 @@ |
||
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 | 141 | */ |
@@ -184,7 +184,7 @@ |
||
184 | 184 | * Ported from the legacy code |
185 | 185 | * @see https://github.com/ezsystems/ezpublish-legacy/blob/master/kernel/search/plugins/ezsearchengine/ezsearchengine.php#L386 |
186 | 186 | * |
187 | - * @param mixed $contentId |
|
187 | + * @param integer $contentId |
|
188 | 188 | * @param mixed|null $versionId |
189 | 189 | * |
190 | 190 | * @return bool |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | /** |
71 | 71 | * Get PDOStatement to fetch metadata about content objects to be indexed. |
72 | 72 | * |
73 | - * @param array $fields Select fields |
|
73 | + * @param string[] $fields Select fields |
|
74 | 74 | * @return \PDOStatement |
75 | 75 | */ |
76 | 76 | protected function getContentDbFieldsStmt(array $fields) |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * Log warning while progress bar is shown. |
109 | 109 | * |
110 | 110 | * @param \Symfony\Component\Console\Helper\ProgressBar $progress |
111 | - * @param $message |
|
111 | + * @param string $message |
|
112 | 112 | */ |
113 | 113 | protected function logWarning(ProgressBar $progress, $message) |
114 | 114 | { |
@@ -1052,7 +1052,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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, |
@@ -36,7 +36,7 @@ |
||
36 | 36 | * |
37 | 37 | * @param \eZ\Publish\SPI\Search\Field $field |
38 | 38 | * |
39 | - * @return mixed |
|
39 | + * @return boolean |
|
40 | 40 | */ |
41 | 41 | public function map(Field $field) |
42 | 42 | { |
@@ -34,7 +34,7 @@ |
||
34 | 34 | * |
35 | 35 | * @param \eZ\Publish\SPI\Search\Field $field |
36 | 36 | * |
37 | - * @return mixed |
|
37 | + * @return integer |
|
38 | 38 | */ |
39 | 39 | public function map(Field $field) |
40 | 40 | { |
@@ -36,7 +36,7 @@ |
||
36 | 36 | * |
37 | 37 | * @param \eZ\Publish\SPI\Search\Field $field |
38 | 38 | * |
39 | - * @return mixed |
|
39 | + * @return double |
|
40 | 40 | */ |
41 | 41 | public function map(Field $field) |
42 | 42 | { |
@@ -79,7 +79,7 @@ |
||
79 | 79 | * @param \eZ\Publish\API\Repository\Values\Content\Query\SortClause $sortClause |
80 | 80 | * @param int $number |
81 | 81 | * |
82 | - * @return string |
|
82 | + * @return string[] |
|
83 | 83 | */ |
84 | 84 | public function applySelect(SelectQuery $query, SortClause $sortClause, $number) |
85 | 85 | { |
@@ -98,6 +98,9 @@ |
||
98 | 98 | ); |
99 | 99 | } |
100 | 100 | |
101 | + /** |
|
102 | + * @return \eZ\Publish\Core\Base\Utils\DeprecationWarnerInterface |
|
103 | + */ |
|
101 | 104 | public function getDeprecationWarnerMock() |
102 | 105 | { |
103 | 106 | if (!isset($this->deprecationWarnerMock)) { |