@@ -213,6 +213,11 @@ |
||
| 213 | 213 | $this->assertFalse($normalizer->accept($input)); |
| 214 | 214 | } |
| 215 | 215 | |
| 216 | + /** |
|
| 217 | + * @param string $documentElement |
|
| 218 | + * @param string $namespace |
|
| 219 | + * @param string $dtdPath |
|
| 220 | + */ |
|
| 216 | 221 | protected function getNormalizer($documentElement, $namespace, $dtdPath) |
| 217 | 222 | { |
| 218 | 223 | return new DocumentTypeDefinition($documentElement, $namespace, $dtdPath); |
@@ -91,7 +91,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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) |
@@ -360,7 +360,7 @@ |
||
| 360 | 360 | * @param \eZ\Publish\API\Repository\Values\Content\Location $parentLocation |
| 361 | 361 | * @param mixed $mainLocation |
| 362 | 362 | * @param mixed $contentId |
| 363 | - * @param mixed $contentVersionNo |
|
| 363 | + * @param null|integer $contentVersionNo |
|
| 364 | 364 | * |
| 365 | 365 | * @return \eZ\Publish\SPI\Persistence\Content\Location\CreateStruct |
| 366 | 366 | */ |
@@ -33,7 +33,7 @@ discard block |
||
| 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 |
||
| 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 | { |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | namespace eZ\Bundle\EzPublishRestBundle\Tests\Functional; |
| 12 | 12 | |
| 13 | 13 | use eZ\Bundle\EzPublishRestBundle\Tests\Functional\TestCase as RESTFunctionalTestCase; |
| 14 | -use eZ\Publish\API\Repository\Values\User\Limitation; |
|
| 15 | 14 | |
| 16 | 15 | class RoleTest extends RESTFunctionalTestCase |
| 17 | 16 | { |
@@ -117,6 +117,7 @@ discard block |
||
| 117 | 117 | * @depends testCreateRole |
| 118 | 118 | * Covers POST /user/roles/{roleId} |
| 119 | 119 | * |
| 120 | + * @param string $roleHref |
|
| 120 | 121 | * @return string The created role draft href |
| 121 | 122 | */ |
| 122 | 123 | public function testCreateRoleDraft($roleHref) |
@@ -410,7 +411,6 @@ discard block |
||
| 410 | 411 | /** |
| 411 | 412 | * @covers \POST /user/users/{userId}/roles |
| 412 | 413 | * |
| 413 | - * @param string $roleHref |
|
| 414 | 414 | * @param array $limitation |
| 415 | 415 | * |
| 416 | 416 | * @return string assigned role href |
@@ -41,7 +41,7 @@ |
||
| 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) |
@@ -22,6 +22,9 @@ |
||
| 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); |
@@ -762,7 +762,7 @@ discard block |
||
| 762 | 762 | /** |
| 763 | 763 | * Test for the loadLocationChildren() method. |
| 764 | 764 | * |
| 765 | - * @return \eZ\Publish\API\Repository\Values\Content\Location[] |
|
| 765 | + * @return LocationList |
|
| 766 | 766 | * |
| 767 | 767 | * @see \eZ\Publish\API\Repository\LocationService::loadLocationChildren($location, $offset) |
| 768 | 768 | * @depends eZ\Publish\API\Repository\Tests\LocationServiceTest::testLoadLocationChildren |
@@ -826,7 +826,7 @@ discard block |
||
| 826 | 826 | /** |
| 827 | 827 | * Test for the loadLocationChildren() method. |
| 828 | 828 | * |
| 829 | - * @return \eZ\Publish\API\Repository\Values\Content\Location[] |
|
| 829 | + * @return LocationList |
|
| 830 | 830 | * |
| 831 | 831 | * @see \eZ\Publish\API\Repository\LocationService::loadLocationChildren($location, $offset, $limit) |
| 832 | 832 | * @depends eZ\Publish\API\Repository\Tests\LocationServiceTest::testLoadLocationChildren |
@@ -855,7 +855,7 @@ discard block |
||
| 855 | 855 | /** |
| 856 | 856 | * Test for the loadLocationChildren() method. |
| 857 | 857 | * |
| 858 | - * @param \eZ\Publish\API\Repository\Values\Content\Location[] $locations |
|
| 858 | + * @param LocationList $locations |
|
| 859 | 859 | * |
| 860 | 860 | * @see \eZ\Publish\API\Repository\LocationService::loadLocationChildren($location, $offset, $limit) |
| 861 | 861 | * @depends eZ\Publish\API\Repository\Tests\LocationServiceTest::testLoadLocationChildrenWithOffsetAndLimit |
@@ -2127,7 +2127,7 @@ discard block |
||
| 2127 | 2127 | * Assert generated aliases to expected alias return. |
| 2128 | 2128 | * |
| 2129 | 2129 | * @param \eZ\Publish\API\Repository\URLAliasService $urlAliasService |
| 2130 | - * @param array $expectedAliases |
|
| 2130 | + * @param string[] $expectedAliases |
|
| 2131 | 2131 | */ |
| 2132 | 2132 | protected function assertGeneratedAliases($urlAliasService, array $expectedAliases) |
| 2133 | 2133 | { |
@@ -2139,7 +2139,7 @@ discard block |
||
| 2139 | 2139 | |
| 2140 | 2140 | /** |
| 2141 | 2141 | * @param \eZ\Publish\API\Repository\URLAliasService $urlAliasService |
| 2142 | - * @param array $expectedSubItemAliases |
|
| 2142 | + * @param string[] $expectedSubItemAliases |
|
| 2143 | 2143 | */ |
| 2144 | 2144 | private function assertAliasesBeforeCopy($urlAliasService, array $expectedSubItemAliases) |
| 2145 | 2145 | { |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * |
| 28 | 28 | * @param \eZ\Publish\SPI\Search\Field $field |
| 29 | 29 | * |
| 30 | - * @return mixed |
|
| 30 | + * @return boolean |
|
| 31 | 31 | */ |
| 32 | 32 | public function canMap(Field $field) |
| 33 | 33 | { |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | * |
| 40 | 40 | * @param \eZ\Publish\SPI\Search\Field $field |
| 41 | 41 | * |
| 42 | - * @return mixed |
|
| 42 | + * @return string |
|
| 43 | 43 | */ |
| 44 | 44 | public function map(Field $field) |
| 45 | 45 | { |