Completed
Push — reduce_skipped ( 794435...2c646b )
by André
46:28 queued 21:36
created
Core/Persistence/Legacy/Content/Location/Gateway/DoctrineDatabase.php 1 patch
Doc Comments   +26 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
      */
@@ -380,6 +380,9 @@  discard block
 block discarded – undo
380 380
         }
381 381
     }
382 382
 
383
+    /**
384
+     * @param string $pathString
385
+     */
383 386
     private function isHiddenByParent($pathString, array $rows)
384 387
     {
385 388
         $parentNodeIds = explode('/', trim($pathString, '/'));
@@ -579,10 +582,10 @@  discard block
 block discarded – undo
579 582
      * Make the location identified by $locationId1 refer to the Content
580 583
      * referred to by $locationId2 and vice versa.
581 584
      *
582
-     * @param mixed $locationId1
583
-     * @param mixed $locationId2
585
+     * @param integer $locationId1
586
+     * @param integer $locationId2
584 587
      *
585
-     * @return bool
588
+     * @return boolean|null
586 589
      */
587 590
     public function swap($locationId1, $locationId2)
588 591
     {
@@ -739,7 +742,7 @@  discard block
 block discarded – undo
739 742
      * Create an entry in the node assignment table.
740 743
      *
741 744
      * @param \eZ\Publish\SPI\Persistence\Content\Location\CreateStruct $createStruct
742
-     * @param mixed $parentNodeId
745
+     * @param string $parentNodeId
743 746
      * @param int $type
744 747
      */
745 748
     public function createNodeAssignment(CreateStruct $createStruct, $parentNodeId, $type = self::NODE_ASSIGNMENT_OP_CODE_CREATE_NOP)
@@ -867,8 +870,8 @@  discard block
 block discarded – undo
867 870
      *
868 871
      * Convert existing node assignments into real locations.
869 872
      *
870
-     * @param mixed $contentId
871
-     * @param mixed $versionNo
873
+     * @param integer $contentId
874
+     * @param integer $versionNo
872 875
      */
873 876
     public function createLocationsFromNodeAssignments($contentId, $versionNo)
874 877
     {
@@ -936,8 +939,8 @@  discard block
 block discarded – undo
936 939
     /**
937 940
      * Updates all Locations of content identified with $contentId with $versionNo.
938 941
      *
939
-     * @param mixed $contentId
940
-     * @param mixed $versionNo
942
+     * @param integer $contentId
943
+     * @param integer $versionNo
941 944
      */
942 945
     public function updateLocationsContentVersionNo($contentId, $versionNo)
943 946
     {
@@ -1096,8 +1099,8 @@  discard block
 block discarded – undo
1096 1099
      * the node identified by given $locationId (current main node).
1097 1100
      * Assumes that content has more than one location.
1098 1101
      *
1099
-     * @param mixed $contentId
1100
-     * @param mixed $locationId
1102
+     * @param integer $contentId
1103
+     * @param integer $locationId
1101 1104
      *
1102 1105
      * @return array
1103 1106
      */
@@ -1133,9 +1136,9 @@  discard block
 block discarded – undo
1133 1136
      *
1134 1137
      * The associated content object is left untouched.
1135 1138
      *
1136
-     * @param mixed $locationId
1139
+     * @param integer $locationId
1137 1140
      *
1138
-     * @return bool
1141
+     * @return boolean|null
1139 1142
      */
1140 1143
     public function trashLocation($locationId)
1141 1144
     {
@@ -1164,8 +1167,8 @@  discard block
 block discarded – undo
1164 1167
      * at the old position. If this is not possible ( because the old location
1165 1168
      * does not exist any more) and exception is thrown.
1166 1169
      *
1167
-     * @param mixed $locationId
1168
-     * @param mixed|null $newParentId
1170
+     * @param integer $locationId
1171
+     * @param integer $newParentId
1169 1172
      *
1170 1173
      * @return \eZ\Publish\SPI\Persistence\Content\Location
1171 1174
      */
@@ -1339,10 +1342,10 @@  discard block
 block discarded – undo
1339 1342
     /**
1340 1343
      * Set section on all content objects in the subtree.
1341 1344
      *
1342
-     * @param mixed $pathString
1343
-     * @param mixed $sectionId
1345
+     * @param string $pathString
1346
+     * @param integer $sectionId
1344 1347
      *
1345
-     * @return bool
1348
+     * @return boolean|null
1346 1349
      */
1347 1350
     public function setSectionForSubtree($pathString, $sectionId)
1348 1351
     {
@@ -1408,10 +1411,10 @@  discard block
 block discarded – undo
1408 1411
      * Updates ezcontentobject_tree table for the given $contentId and eznode_assignment table for the given
1409 1412
      * $contentId, $parentLocationId and $versionNo
1410 1413
      *
1411
-     * @param mixed $contentId
1412
-     * @param mixed $locationId
1413
-     * @param mixed $versionNo version number, needed to update eznode_assignment table
1414
-     * @param mixed $parentLocationId parent location of location identified by $locationId, needed to update
1414
+     * @param integer $contentId
1415
+     * @param integer $locationId
1416
+     * @param integer $versionNo version number, needed to update eznode_assignment table
1417
+     * @param integer $parentLocationId parent location of location identified by $locationId, needed to update
1415 1418
      *        eznode_assignment table
1416 1419
      */
1417 1420
     public function changeMainLocation($contentId, $locationId, $versionNo, $parentLocationId)
Please login to merge, or discard this patch.
eZ/Publish/Core/Persistence/Doctrine/ConnectionHandler.php 1 patch
Doc Comments   +7 added lines, -6 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     protected $connection;
25 25
 
26 26
     /**
27
-     * @param string|array $dsn
27
+     * @param string $dsn
28 28
      *
29 29
      * @return \Doctrine\DBAL\Connection
30 30
      */
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     /**
65 65
      * Create a Connection Handler with corresponding Doctrine connection from DSN.
66 66
      *
67
-     * @param string|array $dsn
67
+     * @param string $dsn
68 68
      *
69 69
      * @return ConnectionHandler
70 70
      */
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
     /**
374 374
      * Create Insert Query object.
375 375
      *
376
-     * @return \eZ\Publish\Core\Persistence\Database\InsertQuery
376
+     * @return string
377 377
      */
378 378
     public function createInsertQuery()
379 379
     {
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
     /**
394 394
      * Create a Delete Query object.
395 395
      *
396
-     * @return \eZ\Publish\Core\Persistence\Database\DeleteQuery
396
+     * @return string
397 397
      */
398 398
     public function createDeleteQuery()
399 399
     {
@@ -455,8 +455,9 @@  discard block
 block discarded – undo
455 455
      *
456 456
      * This is an optimization and works around the ezcDB implementation.
457 457
      *
458
-     * @param string $identifier
459 458
      *
459
+     * @param string $name
460
+     * @param string $alias
460 461
      * @return string
461 462
      */
462 463
     public function alias($name, $alias)
@@ -491,7 +492,7 @@  discard block
 block discarded – undo
491 492
      * @param string $table
492 493
      * @param string $column
493 494
      *
494
-     * @return mixed
495
+     * @return string
495 496
      */
496 497
     public function getAutoIncrementValue($table, $column)
497 498
     {
Please login to merge, or discard this patch.
eZ/Publish/Core/FieldType/Tests/TimeTest.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      * NOT take care for test case wide caching of the field type, just return
30 30
      * a new instance from this method!
31 31
      *
32
-     * @return FieldType
32
+     * @return Time
33 33
      */
34 34
     protected function createFieldTypeUnderTest()
35 35
     {
@@ -417,7 +417,6 @@  discard block
 block discarded – undo
417 417
     }
418 418
 
419 419
     /**
420
-     * @param mixed $inputValue
421 420
      * @param array $expectedResult
422 421
      *
423 422
      * This overrides the FieldTypeTest method until it gets updated and all field types fixed in EZP-25424
Please login to merge, or discard this patch.
Core/Helper/Tests/FieldsGroups/ArrayTranslatorFieldsGroupsListTest.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,6 +65,9 @@  discard block
 block discarded – undo
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 SettingsFieldsGroupsList(
@@ -75,7 +78,7 @@  discard block
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Helper/Tests/FieldsGroups/RepositoryConfigFieldsGroupsListFactoryTest.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     }
34 34
 
35 35
     /**
36
-     * @return \PHPUnit_Framework_MockObject_MockObject|\eZ\Bundle\EzPublishCoreBundle\ApiLoader\RepositoryConfigurationProvider
36
+     * @return \eZ\Bundle\EzPublishCoreBundle\ApiLoader\RepositoryConfigurationProvider
37 37
      */
38 38
     protected function getRepositoryConfigMock()
39 39
     {
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     }
49 49
 
50 50
     /**
51
-     * @return \PHPUnit_Framework_MockObject_MockObject|\Symfony\Component\Translation\TranslatorInterface
51
+     * @return \Symfony\Component\Translation\TranslatorInterface
52 52
      */
53 53
     protected function getTranslatorMock()
54 54
     {
Please login to merge, or discard this patch.
eZ/Bundle/EzPublishRestBundle/Tests/Functional/RoleTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,6 +119,7 @@  discard block
 block discarded – undo
119 119
      * @depends testCreateRole
120 120
      * @covers POST /user/roles/{roleId}
121 121
      *
122
+     * @param string $roleHref
122 123
      * @return string The created role draft href
123 124
      */
124 125
     public function testCreateRoleDraft($roleHref)
@@ -412,7 +413,6 @@  discard block
 block discarded – undo
412 413
     /**
413 414
      * @covers       POST /user/users/{userId}/roles
414 415
      *
415
-     * @param string $roleHref
416 416
      * @param array $limitation
417 417
      *
418 418
      * @return string assigned role href
Please login to merge, or discard this patch.
eZ/Publish/Core/REST/Server/Controller/Role.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -456,7 +456,7 @@
 block discarded – undo
456 456
      * This is needed because the RoleService addPolicy() and addPolicyByRoleDraft() methods return the role,
457 457
      * not the policy.
458 458
      *
459
-     * @param $role \eZ\Publish\API\Repository\Values\User\Role
459
+     * @param \eZ\Publish\API\Repository\Values\User\Role $role \eZ\Publish\API\Repository\Values\User\Role
460 460
      *
461 461
      * @return \eZ\Publish\API\Repository\Values\User\Policy
462 462
      */
Please login to merge, or discard this patch.
Core/Base/Container/ApiLoader/FieldTypeNameableCollectionFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      * Registers an eZ Publish field type.
42 42
      * Field types are being registered as a closure so that they will be lazy loaded.
43 43
      *
44
-     * @param string $nameableFieldTypeServiceId The field type nameable service Id
44
+     * @param string $fieldTypeServiceId The field type nameable service Id
45 45
      * @param string $fieldTypeAlias The field type alias (e.g. "ezstring")
46 46
      */
47 47
     public function registerNonNameableFieldType($fieldTypeServiceId, $fieldTypeAlias)
Please login to merge, or discard this patch.
eZ/Bundle/EzPublishRestBundle/DependencyInjection/Configuration.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -22,6 +22,9 @@
 block discarded – undo
22 22
         return $treeBuilder;
23 23
     }
24 24
 
25
+    /**
26
+     * @param \Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition $rootNode
27
+     */
25 28
     public function addRestRootResourcesSection($rootNode)
26 29
     {
27 30
         $systemNode = $this->generateScopeBaseNode($rootNode);
Please login to merge, or discard this patch.