Completed
Push — ezp-24848_ct_removal_content_i... ( 76f4d9...8854bf )
by
unknown
24:46
created
Persistence/Legacy/Content/FieldValue/Converter/RelationListConverter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@
 block discarded – undo
232 232
      * "sort_key_int" or "sort_key_string". This column is then used for
233 233
      * filtering and sorting for this type.
234 234
      *
235
-     * @return bool
235
+     * @return string
236 236
      */
237 237
     public function getIndexColumn()
238 238
     {
Please login to merge, or discard this patch.
eZ/Publish/Core/Persistence/Legacy/Content/Gateway.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      * Inserts a new content object.
35 35
      *
36 36
      * @param \eZ\Publish\SPI\Persistence\Content\CreateStruct $struct
37
-     * @param mixed $currentVersionNo
37
+     * @param integer $currentVersionNo
38 38
      *
39 39
      * @return int ID
40 40
      */
@@ -331,8 +331,6 @@  discard block
 block discarded – undo
331 331
      * Loads data of related to/from $contentId.
332 332
      *
333 333
      * @param int $contentId
334
-     * @param bool $reverse Reverse relation, default false
335
-     * @param int $contentVersionNo
336 334
      * @param int $relationType
337 335
      *
338 336
      * @return mixed[][] Content data, array structured like {@see \eZ\Publish\Core\Persistence\Legacy\Content\Gateway::load()}
Please login to merge, or discard this patch.
eZ/Publish/Core/Persistence/Legacy/Content/Gateway/DoctrineDatabase.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -103,9 +103,9 @@  discard block
 block discarded – undo
103 103
      * Inserts a new content object.
104 104
      *
105 105
      * @param \eZ\Publish\SPI\Persistence\Content\CreateStruct $struct
106
-     * @param mixed $currentVersionNo
106
+     * @param integer $currentVersionNo
107 107
      *
108
-     * @return int ID
108
+     * @return string ID
109 109
      */
110 110
     public function insertContentObject(CreateStruct $struct, $currentVersionNo = 1)
111 111
     {
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
      * @param \eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo
206 206
      * @param \eZ\Publish\SPI\Persistence\Content\Field[] $fields
207 207
      *
208
-     * @return int ID
208
+     * @return string ID
209 209
      */
210 210
     public function insertVersion(VersionInfo $versionInfo, array $fields)
211 211
     {
@@ -599,7 +599,7 @@  discard block
 block discarded – undo
599 599
      * @param \eZ\Publish\SPI\Persistence\Content\Field $field
600 600
      * @param \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldValue $value
601 601
      *
602
-     * @return int ID
602
+     * @return string ID
603 603
      */
604 604
     public function insertNewField(Content $content, Field $field, StorageFieldValue $value)
605 605
     {
@@ -809,8 +809,8 @@  discard block
 block discarded – undo
809 809
      *
810 810
      * Returns an array with the relevant data.
811 811
      *
812
-     * @param mixed $contentId
813
-     * @param mixed $version
812
+     * @param integer $contentId
813
+     * @param integer $version
814 814
      * @param string[] $translations
815 815
      *
816 816
      * @return array
@@ -979,7 +979,7 @@  discard block
 block discarded – undo
979 979
     /**
980 980
      * Returns all version data for the given $contentId.
981 981
      *
982
-     * @param mixed $contentId
982
+     * @param integer $contentId
983 983
      *
984 984
      * @return string[][]
985 985
      */
@@ -1030,7 +1030,7 @@  discard block
 block discarded – undo
1030 1030
     /**
1031 1031
      * Returns all version numbers for the given $contentId.
1032 1032
      *
1033
-     * @param mixed $contentId
1033
+     * @param integer $contentId
1034 1034
      *
1035 1035
      * @return int[]
1036 1036
      */
@@ -1668,7 +1668,7 @@  discard block
 block discarded – undo
1668 1668
      *
1669 1669
      * @param \eZ\Publish\SPI\Persistence\Content\Relation\CreateStruct $createStruct
1670 1670
      *
1671
-     * @return int ID the inserted ID
1671
+     * @return string ID the inserted ID
1672 1672
      */
1673 1673
     public function insertRelation(RelationCreateStruct $createStruct)
1674 1674
     {
Please login to merge, or discard this patch.
eZ/Publish/Core/Persistence/Legacy/Content/Gateway/ExceptionConversion.php 1 patch
Doc Comments   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      * Inserts a new content object.
66 66
      *
67 67
      * @param \eZ\Publish\SPI\Persistence\Content\CreateStruct $struct
68
-     * @param mixed $currentVersionNo
68
+     * @param integer $currentVersionNo
69 69
      *
70 70
      * @return int ID
71 71
      */
@@ -618,8 +618,6 @@  discard block
 block discarded – undo
618 618
      * Loads data of related to/from $contentId.
619 619
      *
620 620
      * @param int $contentId
621
-     * @param bool $reverse Reverse relation, default false
622
-     * @param int $contentVersionNo
623 621
      * @param int $relationType
624 622
      *
625 623
      * @return mixed[][] Content data, array structured like {@see \eZ\Publish\Core\Persistence\Legacy\Content\Gateway::load()}
@@ -658,7 +656,6 @@  discard block
 block discarded – undo
658 656
     /**
659 657
      * Inserts a new relation database record.
660 658
      *
661
-     * @param \eZ\Publish\SPI\Persistence\Content\Relation\CreateStruct $createStruct
662 659
      *
663 660
      * @return int ID the inserted ID
664 661
      */
Please login to merge, or discard this patch.
eZ/Publish/Core/Persistence/Legacy/Content/Handler.php 1 patch
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      * Will contain always a complete list of fields.
143 143
      *
144 144
      * @param \eZ\Publish\SPI\Persistence\Content\CreateStruct $struct Content creation struct.
145
-     * @param mixed $versionNo Used by self::copy() to maintain version numbers
145
+     * @param integer $versionNo Used by self::copy() to maintain version numbers
146 146
      *
147 147
      * @return \eZ\Publish\SPI\Persistence\Content Content value object
148 148
      */
@@ -240,9 +240,9 @@  discard block
 block discarded – undo
240 240
      * also be an entry in the `eznode_assignment` created for the draft. This
241 241
      * is ignored in this implementation.
242 242
      *
243
-     * @param mixed $contentId
244
-     * @param mixed $srcVersion
245
-     * @param mixed $userId
243
+     * @param integer $contentId
244
+     * @param integer $srcVersion
245
+     * @param integer $userId
246 246
      *
247 247
      * @return \eZ\Publish\SPI\Persistence\Content
248 248
      */
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
     /**
345 345
      * Returns the metadata object for a content identified by $remoteId.
346 346
      *
347
-     * @param mixed $remoteId
347
+     * @param string $remoteId
348 348
      *
349 349
      * @return \eZ\Publish\SPI\Persistence\Content\ContentInfo
350 350
      */
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
      *
361 361
      * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If version is not found
362 362
      *
363
-     * @param int|string $contentId
363
+     * @param integer $contentId
364 364
      * @param int $versionNo Version number to load
365 365
      *
366 366
      * @return \eZ\Publish\SPI\Persistence\Content\VersionInfo
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
      *
513 513
      * @param int $contentId
514 514
      *
515
-     * @return bool
515
+     * @return boolean|null
516 516
      */
517 517
     public function deleteContent($contentId)
518 518
     {
@@ -544,7 +544,7 @@  discard block
 block discarded – undo
544 544
      * @param int $contentId
545 545
      * @param int $versionNo
546 546
      *
547
-     * @return bool
547
+     * @return boolean|null
548 548
      */
549 549
     public function deleteVersion($contentId, $versionNo)
550 550
     {
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
      *
658 658
      * @todo Should the existence verifications happen here or is this supposed to be handled at a higher level?
659 659
      *
660
-     * @param mixed $relationId
660
+     * @param integer $relationId
661 661
      * @param int $type {@see \eZ\Publish\API\Repository\Values\Content\Relation::COMMON,
662 662
      *                 \eZ\Publish\API\Repository\Values\Content\Relation::EMBED,
663 663
      *                 \eZ\Publish\API\Repository\Values\Content\Relation::LINK,
@@ -671,7 +671,7 @@  discard block
 block discarded – undo
671 671
     /**
672 672
      * Loads relations from $sourceContentId. Optionally, loads only those with $type and $sourceContentVersionNo.
673 673
      *
674
-     * @param mixed $sourceContentId Source Content ID
674
+     * @param integer $sourceContentId Source Content ID
675 675
      * @param mixed|null $sourceContentVersionNo Source Content Version, null if not specified
676 676
      * @param int|null $type {@see \eZ\Publish\API\Repository\Values\Content\Relation::COMMON,
677 677
      *                 \eZ\Publish\API\Repository\Values\Content\Relation::EMBED,
@@ -692,7 +692,7 @@  discard block
 block discarded – undo
692 692
      *
693 693
      * Only loads relations against published versions.
694 694
      *
695
-     * @param mixed $destinationContentId Destination Content ID
695
+     * @param integer $destinationContentId Destination Content ID
696 696
      * @param int|null $type {@see \eZ\Publish\API\Repository\Values\Content\Relation::COMMON,
697 697
      *                 \eZ\Publish\API\Repository\Values\Content\Relation::EMBED,
698 698
      *                 \eZ\Publish\API\Repository\Values\Content\Relation::LINK,
Please login to merge, or discard this patch.
eZ/Publish/Core/Persistence/Legacy/Content/Language/CachingHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
     /**
141 141
      * Delete a language.
142 142
      *
143
-     * @param mixed $id
143
+     * @param integer $id
144 144
      */
145 145
     public function delete($id)
146 146
     {
Please login to merge, or discard this patch.
Core/Persistence/Legacy/Content/Location/Gateway/DoctrineDatabase.php 1 patch
Doc Comments   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      *
92 92
      * @todo optimize
93 93
      *
94
-     * @param mixed $remoteId
94
+     * @param string $remoteId
95 95
      *
96 96
      * @return array
97 97
      */
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
     /**
247 247
      * Returns data for the first level children of the location identified by given $locationId.
248 248
      *
249
-     * @param mixed $locationId
249
+     * @param integer $locationId
250 250
      *
251 251
      * @return array
252 252
      */
@@ -542,10 +542,10 @@  discard block
 block discarded – undo
542 542
      * Make the location identified by $locationId1 refer to the Content
543 543
      * referred to by $locationId2 and vice versa.
544 544
      *
545
-     * @param mixed $locationId1
546
-     * @param mixed $locationId2
545
+     * @param integer $locationId1
546
+     * @param integer $locationId2
547 547
      *
548
-     * @return bool
548
+     * @return boolean|null
549 549
      */
550 550
     public function swap($locationId1, $locationId2)
551 551
     {
@@ -702,7 +702,7 @@  discard block
 block discarded – undo
702 702
      * Create an entry in the node assignment table.
703 703
      *
704 704
      * @param \eZ\Publish\SPI\Persistence\Content\Location\CreateStruct $createStruct
705
-     * @param mixed $parentNodeId
705
+     * @param string $parentNodeId
706 706
      * @param int $type
707 707
      */
708 708
     public function createNodeAssignment(CreateStruct $createStruct, $parentNodeId, $type = self::NODE_ASSIGNMENT_OP_CODE_CREATE_NOP)
@@ -830,8 +830,8 @@  discard block
 block discarded – undo
830 830
      *
831 831
      * Convert existing node assignments into real locations.
832 832
      *
833
-     * @param mixed $contentId
834
-     * @param mixed $versionNo
833
+     * @param integer $contentId
834
+     * @param integer $versionNo
835 835
      */
836 836
     public function createLocationsFromNodeAssignments($contentId, $versionNo)
837 837
     {
@@ -899,8 +899,8 @@  discard block
 block discarded – undo
899 899
     /**
900 900
      * Updates all Locations of content identified with $contentId with $versionNo.
901 901
      *
902
-     * @param mixed $contentId
903
-     * @param mixed $versionNo
902
+     * @param integer $contentId
903
+     * @param integer $versionNo
904 904
      */
905 905
     public function updateLocationsContentVersionNo($contentId, $versionNo)
906 906
     {
@@ -1059,8 +1059,8 @@  discard block
 block discarded – undo
1059 1059
      * the node identified by given $locationId (current main node).
1060 1060
      * Assumes that content has more than one location.
1061 1061
      *
1062
-     * @param mixed $contentId
1063
-     * @param mixed $locationId
1062
+     * @param integer $contentId
1063
+     * @param integer $locationId
1064 1064
      *
1065 1065
      * @return array
1066 1066
      */
@@ -1096,9 +1096,9 @@  discard block
 block discarded – undo
1096 1096
      *
1097 1097
      * The associated content object is left untouched.
1098 1098
      *
1099
-     * @param mixed $locationId
1099
+     * @param integer $locationId
1100 1100
      *
1101
-     * @return bool
1101
+     * @return boolean|null
1102 1102
      */
1103 1103
     public function trashLocation($locationId)
1104 1104
     {
@@ -1127,8 +1127,8 @@  discard block
 block discarded – undo
1127 1127
      * at the old position. If this is not possible ( because the old location
1128 1128
      * does not exist any more) and exception is thrown.
1129 1129
      *
1130
-     * @param mixed $locationId
1131
-     * @param mixed|null $newParentId
1130
+     * @param integer $locationId
1131
+     * @param integer $newParentId
1132 1132
      *
1133 1133
      * @return \eZ\Publish\SPI\Persistence\Content\Location
1134 1134
      */
@@ -1302,10 +1302,10 @@  discard block
 block discarded – undo
1302 1302
     /**
1303 1303
      * Set section on all content objects in the subtree.
1304 1304
      *
1305
-     * @param mixed $pathString
1306
-     * @param mixed $sectionId
1305
+     * @param string $pathString
1306
+     * @param integer $sectionId
1307 1307
      *
1308
-     * @return bool
1308
+     * @return boolean|null
1309 1309
      */
1310 1310
     public function setSectionForSubtree($pathString, $sectionId)
1311 1311
     {
@@ -1371,10 +1371,10 @@  discard block
 block discarded – undo
1371 1371
      * Updates ezcontentobject_tree table for the given $contentId and eznode_assignment table for the given
1372 1372
      * $contentId, $parentLocationId and $versionNo
1373 1373
      *
1374
-     * @param mixed $contentId
1375
-     * @param mixed $locationId
1376
-     * @param mixed $versionNo version number, needed to update eznode_assignment table
1377
-     * @param mixed $parentLocationId parent location of location identified by $locationId, needed to update
1374
+     * @param integer $contentId
1375
+     * @param integer $locationId
1376
+     * @param integer $versionNo version number, needed to update eznode_assignment table
1377
+     * @param integer $parentLocationId parent location of location identified by $locationId, needed to update
1378 1378
      *        eznode_assignment table
1379 1379
      */
1380 1380
     public function changeMainLocation($contentId, $locationId, $versionNo, $parentLocationId)
Please login to merge, or discard this patch.
eZ/Publish/Core/Persistence/Legacy/Content/Location/Handler.php 1 patch
Doc Comments   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -210,8 +210,8 @@  discard block
 block discarded – undo
210 210
      *
211 211
      * @todo update subtree modification time, optionally retain dates and set creator
212 212
      *
213
-     * @param mixed $sourceId
214
-     * @param mixed $destinationParentId
213
+     * @param integer $sourceId
214
+     * @param integer $destinationParentId
215 215
      *
216 216
      * @return Location the newly created Location.
217 217
      */
@@ -331,10 +331,10 @@  discard block
 block discarded – undo
331 331
      * destination, identified by $destinationParentId. Relations do not need
332 332
      * to be updated, since they refer to Content. URLs are not touched.
333 333
      *
334
-     * @param mixed $sourceId
335
-     * @param mixed $destinationParentId
334
+     * @param integer $sourceId
335
+     * @param integer $destinationParentId
336 336
      *
337
-     * @return bool
337
+     * @return boolean|null
338 338
      */
339 339
     public function move($sourceId, $destinationParentId)
340 340
     {
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
     /**
374 374
      * Sets a location to be hidden, and it self + all children to invisible.
375 375
      *
376
-     * @param mixed $id Location ID
376
+     * @param integer $id Location ID
377 377
      */
378 378
     public function hide($id)
379 379
     {
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
      * Sets a location to be unhidden, and self + children to visible unless a parent is hiding the tree.
387 387
      * If not make sure only children down to first hidden node is marked visible.
388 388
      *
389
-     * @param mixed $id
389
+     * @param integer $id
390 390
      */
391 391
     public function unHide($id)
392 392
     {
@@ -401,10 +401,10 @@  discard block
 block discarded – undo
401 401
      * Make the location identified by $locationId1 refer to the Content
402 402
      * referred to by $locationId2 and vice versa.
403 403
      *
404
-     * @param mixed $locationId1
405
-     * @param mixed $locationId2
404
+     * @param integer $locationId1
405
+     * @param integer $locationId2
406 406
      *
407
-     * @return bool
407
+     * @return boolean|null
408 408
      */
409 409
     public function swap($locationId1, $locationId2)
410 410
     {
@@ -451,9 +451,9 @@  discard block
 block discarded – undo
451 451
      * main Location will get the first of its other Locations assigned as the
452 452
      * new main Location.
453 453
      *
454
-     * @param mixed $locationId
454
+     * @param integer $locationId
455 455
      *
456
-     * @return bool
456
+     * @return boolean|null
457 457
      */
458 458
     public function removeSubtree($locationId)
459 459
     {
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
      * Set section on all content objects in the subtree.
465 465
      *
466 466
      * @param mixed $locationId
467
-     * @param mixed $sectionId
467
+     * @param integer $sectionId
468 468
      */
469 469
     public function setSectionForSubtree($locationId, $sectionId)
470 470
     {
Please login to merge, or discard this patch.
eZ/Publish/Core/Persistence/Legacy/Content/Location/Trash/Handler.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -97,11 +97,11 @@  discard block
 block discarded – undo
97 97
      * Moves all locations in the subtree to the Trash. The associated content
98 98
      * objects are left untouched.
99 99
      *
100
-     * @param mixed $locationId
100
+     * @param integer $locationId
101 101
      *
102 102
      * @todo Handle field types actions
103 103
      *
104
-     * @return null|\eZ\Publish\SPI\Persistence\Content\Location\Trashed null if location was deleted, otherwise Trashed object
104
+     * @return Trashed null if location was deleted, otherwise Trashed object
105 105
      */
106 106
     public function trashSubtree($locationId)
107 107
     {
@@ -154,8 +154,8 @@  discard block
 block discarded – undo
154 154
      *
155 155
      * Returns newly restored location Id.
156 156
      *
157
-     * @param mixed $trashedId
158
-     * @param mixed $newParentId
157
+     * @param integer $trashedId
158
+     * @param integer $newParentId
159 159
      *
160 160
      * @return int Newly restored location id
161 161
      *
Please login to merge, or discard this patch.