@@ -966,7 +966,7 @@ |
||
966 | 966 | } |
967 | 967 | /** |
968 | 968 | * @param ResourceSet $resourceSet The entity set containing the entity to fetch |
969 | - * @param object $sourceEntityInstance The source entity instance |
|
969 | + * @param KeyDescriptor $sourceEntityInstance The source entity instance |
|
970 | 970 | * @param object $data The New data for the entity instance. |
971 | 971 | * |
972 | 972 | * returns object|null returns the newly created model if sucessful or null if model creation failed. |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $resourceTypesInContainerNamespace = array(); |
99 | 99 | $containerNamespace = $this->providersWrapper->getContainerNamespace(); |
100 | 100 | foreach ($this->_metadataManager->getResourceTypesAlongWithNamespace() |
101 | - as $resourceTypeNamespace => $resourceTypesWithName) { |
|
101 | + as $resourceTypeNamespace => $resourceTypesWithName) { |
|
102 | 102 | if ($resourceTypeNamespace == $containerNamespace) { |
103 | 103 | foreach ($resourceTypesWithName as $resourceTypeName => $resourceType) { |
104 | 104 | $resourceTypesInContainerNamespace[] = $resourceType; |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | private function _writeProperties(ResourceType $resourceType, $associationTypesInResourceTypeNamespace) |
280 | 280 | { |
281 | 281 | foreach ($this->_metadataManager->getAllVisiblePropertiesDeclaredOnThisType($resourceType) |
282 | - as $resourceProperty) { |
|
282 | + as $resourceProperty) { |
|
283 | 283 | if ($resourceProperty->isKindOf(ResourcePropertyKind::BAG)) { |
284 | 284 | $this->_writeBagProperty($resourceProperty); |
285 | 285 | } elseif ($resourceProperty->isKindOf(ResourcePropertyKind::PRIMITIVE)) { |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | $segment->setResult($entityInstance); |
362 | 362 | } else { |
363 | 363 | $skip = (null == $this->request) ? 0 : $this->request->getSkipCount(); |
364 | - $skip = (null == $skip) ? 0 :$skip; |
|
364 | + $skip = (null == $skip) ? 0 : $skip; |
|
365 | 365 | $queryResult = $this->providers->getResourceSet( |
366 | 366 | $this->request->queryType, |
367 | 367 | $segment->getTargetResourceSetWrapper(), |
@@ -720,7 +720,7 @@ discard block |
||
720 | 720 | * @throws InvalidOperationException If this function invoked with non-navigation |
721 | 721 | * property instance |
722 | 722 | */ |
723 | - private function _pushSegmentForNavigationProperty(ResourceProperty &$resourceProperty) |
|
723 | + private function _pushSegmentForNavigationProperty(ResourceProperty & $resourceProperty) |
|
724 | 724 | { |
725 | 725 | if ($resourceProperty->getTypeKind() == ResourceTypeKind::ENTITY) { |
726 | 726 | $this->assert( |
@@ -815,7 +815,7 @@ discard block |
||
815 | 815 | * |
816 | 816 | * @return bool true if the segment was push, false otherwise |
817 | 817 | */ |
818 | - private function _pushSegment($segmentName, ResourceSetWrapper &$resourceSetWrapper) |
|
818 | + private function _pushSegment($segmentName, ResourceSetWrapper & $resourceSetWrapper) |
|
819 | 819 | { |
820 | 820 | $rootProjectionNode = $this->request->getRootProjectionNode(); |
821 | 821 | if (!is_null($rootProjectionNode) |