Completed
Push — ezp-31088-refactor-content-mod... ( ab3ba3...3726c8 )
by
unknown
14:09
created
eZ/Publish/Core/Persistence/Legacy/Content/Handler.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.
Publish/Core/Persistence/Legacy/Content/Type/Gateway/DoctrineDatabase.php 1 patch
Doc Comments   +15 added lines, -16 removed lines patch added patch discarded remove patch
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
      * @param \eZ\Publish\SPI\Persistence\Content\Type $type
331 331
      * @param mixed|null $typeId
332 332
      *
333
-     * @return mixed Type ID
333
+     * @return integer Type ID
334 334
      */
335 335
     public function insertType(Type $type, $typeId = null)
336 336
     {
@@ -425,8 +425,8 @@  discard block
 block discarded – undo
425 425
     /**
426 426
      * Insert assignment of $typeId to $groupId.
427 427
      *
428
-     * @param mixed $groupId
429
-     * @param mixed $typeId
428
+     * @param integer $groupId
429
+     * @param integer $typeId
430 430
      * @param int $status
431 431
      */
432 432
     public function insertGroupAssignment($groupId, $typeId, $status)
@@ -457,8 +457,8 @@  discard block
 block discarded – undo
457 457
     /**
458 458
      * Deletes a group assignments for a Type.
459 459
      *
460
-     * @param mixed $groupId
461
-     * @param mixed $typeId
460
+     * @param integer $groupId
461
+     * @param integer $typeId
462 462
      * @param int $status
463 463
      */
464 464
     public function deleteGroupAssignment($groupId, $typeId, $status)
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
     /**
508 508
      * Loads data about Group with $identifier.
509 509
      *
510
-     * @param mixed $identifier
510
+     * @param string $identifier
511 511
      *
512 512
      * @return string[][]
513 513
      */
@@ -566,7 +566,7 @@  discard block
 block discarded – undo
566 566
     /**
567 567
      * Loads data for all Types in $status in $groupId.
568 568
      *
569
-     * @param mixed $groupId
569
+     * @param integer $groupId
570 570
      * @param int $status
571 571
      *
572 572
      * @return string[][]
@@ -587,12 +587,12 @@  discard block
 block discarded – undo
587 587
     /**
588 588
      * Inserts a $fieldDefinition for $typeId.
589 589
      *
590
-     * @param mixed $typeId
590
+     * @param integer $typeId
591 591
      * @param int $status
592 592
      * @param \eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition
593 593
      * @param \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition $storageFieldDef
594 594
      *
595
-     * @return mixed Field definition ID
595
+     * @return integer Field definition ID
596 596
      */
597 597
     public function insertFieldDefinition(
598 598
         $typeId,
@@ -808,9 +808,9 @@  discard block
 block discarded – undo
808 808
     /**
809 809
      * Deletes a field definition.
810 810
      *
811
-     * @param mixed $typeId
811
+     * @param integer $typeId
812 812
      * @param int $status
813
-     * @param mixed $fieldDefinitionId
813
+     * @param integer $fieldDefinitionId
814 814
      */
815 815
     public function deleteFieldDefinition($typeId, $status, $fieldDefinitionId)
816 816
     {
@@ -851,7 +851,7 @@  discard block
 block discarded – undo
851 851
     /**
852 852
      * Updates a $fieldDefinition for $typeId.
853 853
      *
854
-     * @param mixed $typeId
854
+     * @param integer $typeId
855 855
      * @param int $status
856 856
      * @param \eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition
857 857
      * @param \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition $storageFieldDef
@@ -994,9 +994,8 @@  discard block
 block discarded – undo
994 994
     /**
995 995
      * Update a type with $updateStruct.
996 996
      *
997
-     * @param mixed $typeId
997
+     * @param integer $typeId
998 998
      * @param int $status
999
-     * @param \eZ\Publish\SPI\Persistence\Content\Type\UpdateStruct $updateStruct
1000 999
      */
1001 1000
     public function updateType($typeId, $status, Type $type)
1002 1001
     {
@@ -1039,7 +1038,7 @@  discard block
 block discarded – undo
1039 1038
     /**
1040 1039
      * Loads an array with data about $typeId in $status.
1041 1040
      *
1042
-     * @param mixed $typeId
1041
+     * @param integer $typeId
1043 1042
      * @param int $status
1044 1043
      *
1045 1044
      * @return array Data rows.
@@ -1081,7 +1080,7 @@  discard block
 block discarded – undo
1081 1080
      * Loads an array with data about the type referred to by $remoteId in
1082 1081
      * $status.
1083 1082
      *
1084
-     * @param mixed $remoteId
1083
+     * @param string $remoteId
1085 1084
      * @param int $status
1086 1085
      *
1087 1086
      * @return array(int=>array(string=>mixed)) Data rows.
Please login to merge, or discard this patch.
eZ/Bundle/EzPublishCoreBundle/Command/ReindexCommand.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -332,7 +332,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
MVC/Symfony/EventListener/Tests/ContentViewTwigVariablesSubscriberTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
eZ/Publish/Core/FieldType/BinaryBase/BinaryBaseStorage.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
eZ/Publish/Core/Persistence/Database/DatabaseHandler.php 1 patch
Doc Comments   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,16 +27,19 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
eZ/Publish/Core/Persistence/Legacy/Content/Language/CachingHandler.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     /**
74 74
      * Get language by id.
75 75
      *
76
-     * @param mixed $id
76
+     * @param integer $id
77 77
      *
78 78
      * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If language could not be found by $id
79 79
      *
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
     /**
180 180
      * Delete a language.
181 181
      *
182
-     * @param mixed $id
182
+     * @param integer $id
183 183
      */
184 184
     public function delete($id)
185 185
     {
Please login to merge, or discard this patch.
eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Handler.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
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
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
      * @param string $text
467 467
      * @param string $textMD5
468 468
      *
469
-     * @return mixed
469
+     * @return integer
470 470
      */
471 471
     protected function insertNopEntry($parentId, $text, $textMD5)
472 472
     {
Please login to merge, or discard this patch.
Legacy/Tests/Content/Type/ContentUpdater/Action/RemoveFieldTest.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
     /**
285 285
      * Returns a Content Gateway mock.
286 286
      *
287
-     * @return \PHPUnit\Framework\MockObject\MockObject|\eZ\Publish\Core\Persistence\Legacy\Content\Gateway
287
+     * @return Gateway
288 288
      */
289 289
     protected function getContentGatewayMock()
290 290
     {
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
     /**
299 299
      * Returns a Content StorageHandler mock.
300 300
      *
301
-     * @return \PHPUnit\Framework\MockObject\MockObject|\eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler
301
+     * @return StorageHandler
302 302
      */
303 303
     protected function getContentStorageHandlerMock()
304 304
     {
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
     /**
313 313
      * Returns a Content mapper mock.
314 314
      *
315
-     * @return \PHPUnit\Framework\MockObject\MockObject|\eZ\Publish\Core\Persistence\Legacy\Content\Mapper
315
+     * @return ContentMapper
316 316
      */
317 317
     protected function getContentMapperMock()
318 318
     {
Please login to merge, or discard this patch.