@@ -77,6 +77,7 @@ |
||
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 | */ |
@@ -1052,7 +1052,7 @@ |
||
1052 | 1052 | * |
1053 | 1053 | * @param \eZ\Publish\API\Repository\Values\User\RoleCreateStruct $roleCreateStruct |
1054 | 1054 | * |
1055 | - * @return \eZ\Publish\Core\FieldType\ValidationError[][][] |
|
1055 | + * @return \eZ\Publish\Core\FieldType\ValidationError[] |
|
1056 | 1056 | * |
1057 | 1057 | * @throws \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException |
1058 | 1058 | */ |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | * Will contain always a complete list of fields. |
151 | 151 | * |
152 | 152 | * @param \eZ\Publish\SPI\Persistence\Content\CreateStruct $struct Content creation struct. |
153 | - * @param mixed $versionNo Used by self::copy() to maintain version numbers |
|
153 | + * @param integer $versionNo Used by self::copy() to maintain version numbers |
|
154 | 154 | * |
155 | 155 | * @return \eZ\Publish\SPI\Persistence\Content Content value object |
156 | 156 | */ |
@@ -437,7 +437,7 @@ discard block |
||
437 | 437 | /** |
438 | 438 | * Returns the metadata object for a content identified by $remoteId. |
439 | 439 | * |
440 | - * @param mixed $remoteId |
|
440 | + * @param string $remoteId |
|
441 | 441 | * |
442 | 442 | * @return \eZ\Publish\SPI\Persistence\Content\ContentInfo |
443 | 443 | */ |
@@ -634,7 +634,7 @@ discard block |
||
634 | 634 | * |
635 | 635 | * @param int $contentId |
636 | 636 | * |
637 | - * @return bool |
|
637 | + * @return boolean|null |
|
638 | 638 | */ |
639 | 639 | public function deleteContent($contentId) |
640 | 640 | { |
@@ -666,7 +666,7 @@ discard block |
||
666 | 666 | * @param int $contentId |
667 | 667 | * @param int $versionNo |
668 | 668 | * |
669 | - * @return bool |
|
669 | + * @return boolean|null |
|
670 | 670 | */ |
671 | 671 | public function deleteVersion($contentId, $versionNo) |
672 | 672 | { |
@@ -704,8 +704,8 @@ discard block |
||
704 | 704 | * |
705 | 705 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If content or version is not found |
706 | 706 | * |
707 | - * @param mixed $contentId |
|
708 | - * @param mixed|null $versionNo Copy all versions if left null |
|
707 | + * @param integer $contentId |
|
708 | + * @param integer $versionNo Copy all versions if left null |
|
709 | 709 | * @param int|null $newOwnerId |
710 | 710 | * |
711 | 711 | * @return \eZ\Publish\SPI\Persistence\Content |
@@ -793,7 +793,7 @@ discard block |
||
793 | 793 | * |
794 | 794 | * @todo Should the existence verifications happen here or is this supposed to be handled at a higher level? |
795 | 795 | * |
796 | - * @param mixed $relationId |
|
796 | + * @param integer $relationId |
|
797 | 797 | * @param int $type {@see \eZ\Publish\API\Repository\Values\Content\Relation::COMMON, |
798 | 798 | * \eZ\Publish\API\Repository\Values\Content\Relation::EMBED, |
799 | 799 | * \eZ\Publish\API\Repository\Values\Content\Relation::LINK, |
@@ -807,7 +807,7 @@ discard block |
||
807 | 807 | /** |
808 | 808 | * Loads relations from $sourceContentId. Optionally, loads only those with $type and $sourceContentVersionNo. |
809 | 809 | * |
810 | - * @param mixed $sourceContentId Source Content ID |
|
810 | + * @param integer $sourceContentId Source Content ID |
|
811 | 811 | * @param mixed|null $sourceContentVersionNo Source Content Version, null if not specified |
812 | 812 | * @param int|null $type {@see \eZ\Publish\API\Repository\Values\Content\Relation::COMMON, |
813 | 813 | * \eZ\Publish\API\Repository\Values\Content\Relation::EMBED, |
@@ -836,7 +836,7 @@ discard block |
||
836 | 836 | * |
837 | 837 | * Only loads relations against published versions. |
838 | 838 | * |
839 | - * @param mixed $destinationContentId Destination Content ID |
|
839 | + * @param integer $destinationContentId Destination Content ID |
|
840 | 840 | * @param int|null $type {@see \eZ\Publish\API\Repository\Values\Content\Relation::COMMON, |
841 | 841 | * \eZ\Publish\API\Repository\Values\Content\Relation::EMBED, |
842 | 842 | * \eZ\Publish\API\Repository\Values\Content\Relation::LINK, |
@@ -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 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | final class ContentViewTwigVariablesSubscriberTest extends TestCase |
24 | 24 | { |
25 | 25 | /** |
26 | - * @return \eZ\Publish\Core\MVC\Symfony\View\ContentView|\PHPUnit\Framework\MockObject\MockObject |
|
26 | + * @return View |
|
27 | 27 | */ |
28 | 28 | private function getContentViewMock(): ContentView |
29 | 29 | { |
@@ -118,7 +118,7 @@ |
||
118 | 118 | * Removes the old file referenced by $fieldId in $versionNo, if not |
119 | 119 | * referenced else where. |
120 | 120 | * |
121 | - * @param mixed $fieldId |
|
121 | + * @param integer $fieldId |
|
122 | 122 | * @param string $versionNo |
123 | 123 | * @param array $context |
124 | 124 | */ |
@@ -27,16 +27,19 @@ discard block |
||
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Begin a transaction. |
30 | + * @return void |
|
30 | 31 | */ |
31 | 32 | public function beginTransaction(); |
32 | 33 | |
33 | 34 | /** |
34 | 35 | * Commit a transaction. |
36 | + * @return void |
|
35 | 37 | */ |
36 | 38 | public function commit(); |
37 | 39 | |
38 | 40 | /** |
39 | 41 | * Rollback a transaction. |
42 | + * @return void |
|
40 | 43 | */ |
41 | 44 | public function rollBack(); |
42 | 45 | |
@@ -60,6 +63,7 @@ discard block |
||
60 | 63 | * Execute a query against the database. |
61 | 64 | * |
62 | 65 | * @param string $query |
66 | + * @return void |
|
63 | 67 | */ |
64 | 68 | public function exec($query); |
65 | 69 | |
@@ -68,7 +72,8 @@ discard block |
||
68 | 72 | * |
69 | 73 | * Statements are ducktyped, but need to work like PDOStatement. |
70 | 74 | * |
71 | - * @return object |
|
75 | + * @param string $query |
|
76 | + * @return \Doctrine\DBAL\Driver\Statement |
|
72 | 77 | */ |
73 | 78 | public function prepare($query); |
74 | 79 | |
@@ -138,8 +143,9 @@ discard block |
||
138 | 143 | * |
139 | 144 | * This is an optimization and works around the ezcDB implementation. |
140 | 145 | * |
141 | - * @param string $identifier |
|
142 | 146 | * |
147 | + * @param string $name |
|
148 | + * @param string $alias |
|
143 | 149 | * @return string |
144 | 150 | */ |
145 | 151 | public function alias($name, $alias); |
@@ -168,7 +174,7 @@ discard block |
||
168 | 174 | * @param string $table |
169 | 175 | * @param string $column |
170 | 176 | * |
171 | - * @return mixed |
|
177 | + * @return string |
|
172 | 178 | */ |
173 | 179 | public function getAutoIncrementValue($table, $column); |
174 | 180 | |
@@ -185,7 +191,7 @@ discard block |
||
185 | 191 | /** |
186 | 192 | * Returns underlying connection (e.g. Doctrine connection object). |
187 | 193 | * |
188 | - * @return mixed |
|
194 | + * @return \Doctrine\DBAL\Connection |
|
189 | 195 | */ |
190 | 196 | public function getConnection(); |
191 | 197 | } |