Completed
Push — sf_cache ( b9ead9...8c890f )
by André
18:16
created
eZ/Publish/Core/FieldType/Tests/DateAndTimeTest.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      * NOT take care for test case wide caching of the field type, just return
31 31
      * a new instance from this method!
32 32
      *
33
-     * @return FieldType
33
+     * @return DateAndTime
34 34
      */
35 35
     protected function createFieldTypeUnderTest()
36 36
     {
@@ -218,7 +218,6 @@  discard block
 block discarded – undo
218 218
     }
219 219
 
220 220
     /**
221
-     * @param mixed $inputValue
222 221
      * @param array $expectedResult
223 222
      *
224 223
      * @dataProvider provideInputForFromHash
Please login to merge, or discard this patch.
eZ/Publish/API/Repository/Tests/ContentServiceTest.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2858,7 +2858,7 @@  discard block
 block discarded – undo
2858 2858
     /**
2859 2859
      * Test for the addRelation() method.
2860 2860
      *
2861
-     * @return \eZ\Publish\API\Repository\Values\Content\Content
2861
+     * @return Relation[]
2862 2862
      *
2863 2863
      * @see \eZ\Publish\API\Repository\ContentService::addRelation()
2864 2864
      * @depends eZ\Publish\API\Repository\Tests\ContentServiceTest::testPublishVersionFromContentDraft
@@ -4768,7 +4768,7 @@  discard block
 block discarded – undo
4768 4768
     /**
4769 4769
      * Simplify creating custom role with limited set of policies.
4770 4770
      *
4771
-     * @param $roleName
4771
+     * @param string $roleName
4772 4772
      * @param array $policies e.g. [ ['content', 'create'], ['content', 'edit'], ]
4773 4773
      */
4774 4774
     private function createRoleWithPolicies($roleName, array $policies)
@@ -4791,7 +4791,7 @@  discard block
 block discarded – undo
4791 4791
      * given properties are available in $actualAliases and not more.
4792 4792
      *
4793 4793
      * @param array $expectedAliasProperties
4794
-     * @param array $actualAliases
4794
+     * @param URLAlias[] $actualAliases
4795 4795
      */
4796 4796
     private function assertAliasesCorrect(array $expectedAliasProperties, array $actualAliases)
4797 4797
     {
@@ -4953,7 +4953,7 @@  discard block
 block discarded – undo
4953 4953
     /**
4954 4954
      * Returns the default fixture of fields used in most tests.
4955 4955
      *
4956
-     * @return \eZ\Publish\API\Repository\Values\Content\Field[]
4956
+     * @return Field[]
4957 4957
      */
4958 4958
     private function createFieldsFixture()
4959 4959
     {
Please login to merge, or discard this patch.
eZ/Publish/API/Repository/Tests/ContentTypeServiceTest.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -888,7 +888,7 @@  discard block
 block discarded – undo
888 888
      * Asserts that the given $actualDefinition is correctly created from the
889 889
      * create struct in $expectedCreate.
890 890
      *
891
-     * @param \eZ\Publish\API\Repository\Values\FieldDefinitionCreateStruct $expectedDefinitionCreate
891
+     * @param \eZ\Publish\API\Repository\Values\FieldDefinitionCreateStruct $expectedCreate
892 892
      * @param \eZ\Publish\API\Repository\Values\FieldDefinition $actualDefinition
893 893
      */
894 894
     protected function assertFieldDefinitionsEqual($expectedCreate, $actualDefinition)
@@ -3007,7 +3007,7 @@  discard block
 block discarded – undo
3007 3007
     /**
3008 3008
      * @param \eZ\Publish\API\Repository\Values\ContentType\ContentType $originalType
3009 3009
      * @param \eZ\Publish\API\Repository\Values\ContentType\ContentType $copiedType
3010
-     * @param array $excludedProperties
3010
+     * @param string[] $excludedProperties
3011 3011
      */
3012 3012
     private function assertCopyContentTypeValues($originalType, $copiedType, $excludedProperties = [])
3013 3013
     {
Please login to merge, or discard this patch.
eZ/Publish/API/Repository/Tests/SetupFactory/Legacy.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -228,6 +228,9 @@  discard block
 block discarded – undo
228 228
         return __DIR__ . '/../../../../../../var';
229 229
     }
230 230
 
231
+    /**
232
+     * @param string $sourceDir
233
+     */
231 234
     protected function cleanupVarDir($sourceDir)
232 235
     {
233 236
         $fs = new Filesystem();
@@ -312,7 +315,7 @@  discard block
 block discarded – undo
312 315
     /**
313 316
      * Applies the given SQL $statements to the database in use.
314 317
      *
315
-     * @param array $statements
318
+     * @param string[] $statements
316 319
      */
317 320
     protected function applyStatements(array $statements)
318 321
     {
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
@@ -114,9 +114,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
eZ/Publish/Core/Repository/ContentService.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1338,7 +1338,7 @@  discard block
 block discarded – undo
1338 1338
      * @param \eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct $contentUpdateStruct
1339 1339
      * @param \eZ\Publish\API\Repository\Values\Content\Content $content
1340 1340
      *
1341
-     * @return array
1341
+     * @return string[]
1342 1342
      */
1343 1343
     protected function getLanguageCodesForUpdate(APIContentUpdateStruct $contentUpdateStruct, APIContent $content)
1344 1344
     {
@@ -1467,7 +1467,7 @@  discard block
 block discarded – undo
1467 1467
      * @param \eZ\Publish\API\Repository\Values\Content\VersionInfo $versionInfo
1468 1468
      * @param int|null $publicationDate If null existing date is kept if there is one, otherwise current time is used.
1469 1469
      *
1470
-     * @return \eZ\Publish\API\Repository\Values\Content\Content
1470
+     * @return LocationCreateStruct
1471 1471
      */
1472 1472
     protected function internalPublishVersion(APIVersionInfo $versionInfo, $publicationDate = null)
1473 1473
     {
Please login to merge, or discard this patch.
eZ/Publish/Core/Persistence/Cache/ContentHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -369,7 +369,7 @@
 block discarded – undo
369 369
      * @param bool $withFields Set to true if item contains fields which should be expired on relation or type updates.
370 370
      * @param array $tags Optional, can be used to specify other tags.
371 371
      *
372
-     * @return array
372
+     * @return string[]
373 373
      */
374 374
     private function getCacheTags(ContentInfo $contentInfo, $withFields = false, array $tags = [])
375 375
     {
Please login to merge, or discard this patch.
eZ/Publish/Core/Persistence/Cache/Tests/HandlerTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -248,7 +248,7 @@
 block discarded – undo
248 248
 
249 249
 
250 250
     /**
251
-     * @param $key
251
+     * @param string $key
252 252
      * @param null $value If null the cache item will be assumed to be a cache miss here.
253 253
      * @param int $defaultLifetime
254 254
      *
Please login to merge, or discard this patch.
eZ/Publish/Core/Persistence/Cache/UserHandler.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
  */
9 9
 namespace eZ\Publish\Core\Persistence\Cache;
10 10
 
11
-use eZ\Publish\API\Repository\Exceptions\NotFoundException;
12 11
 use eZ\Publish\SPI\Persistence\User\Handler as UserHandlerInterface;
13 12
 use eZ\Publish\SPI\Persistence\User;
14 13
 use eZ\Publish\SPI\Persistence\User\Role;
Please login to merge, or discard this patch.