@@ -65,6 +65,9 @@ discard block |
||
| 65 | 65 | ); |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | + /** |
|
| 69 | + * @param string $default |
|
| 70 | + */ |
|
| 68 | 71 | private function buildList($groups, $default) |
| 69 | 72 | { |
| 70 | 73 | return new ArrayTranslatorFieldsGroupsList( |
@@ -75,7 +78,7 @@ discard block |
||
| 75 | 78 | } |
| 76 | 79 | |
| 77 | 80 | /** |
| 78 | - * @return \Symfony\Component\Translation\TranslatorInterface|\PHPUnit_Framework_MockObject_MockObject |
|
| 81 | + * @return \Symfony\Component\Translation\TranslatorInterface |
|
| 79 | 82 | */ |
| 80 | 83 | private function getTranslatorMock() |
| 81 | 84 | { |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | * @param \eZ\Publish\API\Repository\Values\ValueObject $object |
| 117 | 117 | * @param \eZ\Publish\API\Repository\Values\ValueObject[]|null $targets The context of the $object, like Location of Content, if null none where provided by caller |
| 118 | 118 | * |
| 119 | - * @return bool |
|
| 119 | + * @return boolean|null |
|
| 120 | 120 | */ |
| 121 | 121 | public function evaluate(APILimitationValue $value, APIUserReference $currentUser, ValueObject $object, array $targets = null) |
| 122 | 122 | { |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | protected static $locationIds = []; |
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | - * @return mixed |
|
| 17 | + * @return integer |
|
| 18 | 18 | */ |
| 19 | 19 | public static function getContentId() |
| 20 | 20 | { |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | - * @return array |
|
| 90 | + * @return string[] |
|
| 91 | 91 | */ |
| 92 | 92 | private static function getAllSignals() |
| 93 | 93 | { |
@@ -43,8 +43,6 @@ |
||
| 43 | 43 | * |
| 44 | 44 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with no parameters. |
| 45 | 45 | * |
| 46 | - * @param string|array(string) $... Either a string with a logical expression name |
|
| 47 | - * or an array with logical expressions. |
|
| 48 | 46 | * |
| 49 | 47 | * @return \eZ\Publish\Core\Persistence\Database\DeleteQuery |
| 50 | 48 | */ |
@@ -47,7 +47,6 @@ discard block |
||
| 47 | 47 | * |
| 48 | 48 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with no parameters.. |
| 49 | 49 | * |
| 50 | - * @param string|array(string) $... Either a string with a column name or an array of column names. |
|
| 51 | 50 | * |
| 52 | 51 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery returns a pointer to $this. |
| 53 | 52 | */ |
@@ -107,7 +106,6 @@ discard block |
||
| 107 | 106 | * |
| 108 | 107 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with no parameters.. |
| 109 | 108 | * |
| 110 | - * @param string|array(string) $... Either a string with a column name or an array of column names. |
|
| 111 | 109 | * |
| 112 | 110 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery returns a pointer to $this. |
| 113 | 111 | */ |
@@ -131,7 +129,6 @@ discard block |
||
| 131 | 129 | * |
| 132 | 130 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with no parameters. |
| 133 | 131 | * |
| 134 | - * @param string|array(string) $... Either a string with a table name or an array of table names. |
|
| 135 | 132 | * |
| 136 | 133 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery a pointer to $this |
| 137 | 134 | */ |
@@ -183,8 +180,6 @@ discard block |
||
| 183 | 180 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with inconsistent parameters or if |
| 184 | 181 | * invoked without preceding call to from(). |
| 185 | 182 | * |
| 186 | - * @param string $table2,... The table to join with, followed by either the |
|
| 187 | - * two join columns, or a join condition. |
|
| 188 | 183 | * |
| 189 | 184 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery |
| 190 | 185 | */ |
@@ -236,8 +231,6 @@ discard block |
||
| 236 | 231 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with inconsistent parameters or if |
| 237 | 232 | * invoked without preceding call to from(). |
| 238 | 233 | * |
| 239 | - * @param string $table2,... The table to join with, followed by either the |
|
| 240 | - * two join columns, or a join condition. |
|
| 241 | 234 | * |
| 242 | 235 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery |
| 243 | 236 | */ |
@@ -289,8 +282,6 @@ discard block |
||
| 289 | 282 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with inconsistent parameters or if |
| 290 | 283 | * invoked without preceding call to from(). |
| 291 | 284 | * |
| 292 | - * @param string $table2,... The table to join with, followed by either the |
|
| 293 | - * two join columns, or a join condition. |
|
| 294 | 285 | * |
| 295 | 286 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery |
| 296 | 287 | */ |
@@ -313,8 +304,6 @@ discard block |
||
| 313 | 304 | * |
| 314 | 305 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with no parameters. |
| 315 | 306 | * |
| 316 | - * @param string|array(string) $... Either a string with a logical expression name |
|
| 317 | - * or an array with logical expressions. |
|
| 318 | 307 | * |
| 319 | 308 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery |
| 320 | 309 | */ |
@@ -378,7 +367,6 @@ discard block |
||
| 378 | 367 | * |
| 379 | 368 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with no parameters. |
| 380 | 369 | * |
| 381 | - * @param string $column a column name in the result set |
|
| 382 | 370 | * |
| 383 | 371 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery a pointer to $this |
| 384 | 372 | */ |
@@ -399,8 +387,6 @@ discard block |
||
| 399 | 387 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException |
| 400 | 388 | * if called with no parameters. |
| 401 | 389 | * |
| 402 | - * @param string|array(string) $... Either a string with a logical expression name |
|
| 403 | - * or an array with logical expressions. |
|
| 404 | 390 | * |
| 405 | 391 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery a pointer to $this |
| 406 | 392 | */ |
@@ -54,8 +54,6 @@ |
||
| 54 | 54 | * |
| 55 | 55 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with no parameters. |
| 56 | 56 | * |
| 57 | - * @param string|array(string) $... Either a string with a logical expression name |
|
| 58 | - * or an array with logical expressions. |
|
| 59 | 57 | * |
| 60 | 58 | * @return \eZ\Publish\Core\Persistence\Database\UpdateQuery |
| 61 | 59 | */ |
@@ -114,9 +114,9 @@ discard block |
||
| 114 | 114 | * Inserts a new content object. |
| 115 | 115 | * |
| 116 | 116 | * @param \eZ\Publish\SPI\Persistence\Content\CreateStruct $struct |
| 117 | - * @param mixed $currentVersionNo |
|
| 117 | + * @param integer $currentVersionNo |
|
| 118 | 118 | * |
| 119 | - * @return int ID |
|
| 119 | + * @return string ID |
|
| 120 | 120 | */ |
| 121 | 121 | public function insertContentObject(CreateStruct $struct, $currentVersionNo = 1) |
| 122 | 122 | { |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | * @param \eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo |
| 217 | 217 | * @param \eZ\Publish\SPI\Persistence\Content\Field[] $fields |
| 218 | 218 | * |
| 219 | - * @return int ID |
|
| 219 | + * @return string ID |
|
| 220 | 220 | */ |
| 221 | 221 | public function insertVersion(VersionInfo $versionInfo, array $fields) |
| 222 | 222 | { |
@@ -610,7 +610,7 @@ discard block |
||
| 610 | 610 | * @param \eZ\Publish\SPI\Persistence\Content\Field $field |
| 611 | 611 | * @param \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldValue $value |
| 612 | 612 | * |
| 613 | - * @return int ID |
|
| 613 | + * @return string ID |
|
| 614 | 614 | */ |
| 615 | 615 | public function insertNewField(Content $content, Field $field, StorageFieldValue $value) |
| 616 | 616 | { |
@@ -820,8 +820,8 @@ discard block |
||
| 820 | 820 | * |
| 821 | 821 | * Returns an array with the relevant data. |
| 822 | 822 | * |
| 823 | - * @param mixed $contentId |
|
| 824 | - * @param mixed $version |
|
| 823 | + * @param integer $contentId |
|
| 824 | + * @param integer $version |
|
| 825 | 825 | * @param string[] $translations |
| 826 | 826 | * |
| 827 | 827 | * @return array |
@@ -992,7 +992,7 @@ discard block |
||
| 992 | 992 | * |
| 993 | 993 | * Result is returned with oldest version first (using version id as it has index and is auto increment). |
| 994 | 994 | * |
| 995 | - * @param mixed $contentId |
|
| 995 | + * @param integer $contentId |
|
| 996 | 996 | * @param mixed|null $status Optional argument to filter versions by status, like {@see VersionInfo::STATUS_ARCHIVED}. |
| 997 | 997 | * @param int $limit Limit for items returned, -1 means none. |
| 998 | 998 | * |
@@ -1060,7 +1060,7 @@ discard block |
||
| 1060 | 1060 | /** |
| 1061 | 1061 | * Returns all version numbers for the given $contentId. |
| 1062 | 1062 | * |
| 1063 | - * @param mixed $contentId |
|
| 1063 | + * @param integer $contentId |
|
| 1064 | 1064 | * |
| 1065 | 1065 | * @return int[] |
| 1066 | 1066 | */ |
@@ -1698,7 +1698,7 @@ discard block |
||
| 1698 | 1698 | * |
| 1699 | 1699 | * @param \eZ\Publish\SPI\Persistence\Content\Relation\CreateStruct $createStruct |
| 1700 | 1700 | * |
| 1701 | - * @return int ID the inserted ID |
|
| 1701 | + * @return string ID the inserted ID |
|
| 1702 | 1702 | */ |
| 1703 | 1703 | public function insertRelation(RelationCreateStruct $createStruct) |
| 1704 | 1704 | { |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | * |
| 117 | 117 | * Result is returned with oldest version first (using version id as it has index and is auto increment). |
| 118 | 118 | * |
| 119 | - * @param mixed $contentId |
|
| 119 | + * @param integer $contentId |
|
| 120 | 120 | * @param mixed|null $status Optional argument to filter versions by status, like {@see VersionInfo::STATUS_ARCHIVED}. |
| 121 | 121 | * @param int $limit Limit for items returned, -1 means none. |
| 122 | 122 | * |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | * |
| 172 | 172 | * @param mixed $locationId |
| 173 | 173 | * |
| 174 | - * @return bool |
|
| 174 | + * @return boolean|null |
|
| 175 | 175 | */ |
| 176 | 176 | public function removeSubtree($locationId) |
| 177 | 177 | { |