@@ -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)) { |
@@ -347,7 +347,7 @@ |
||
| 347 | 347 | $segment->setResult($entityInstance); |
| 348 | 348 | } else { |
| 349 | 349 | $skip = (null == $this->request) ? 0 : $this->request->getSkipCount(); |
| 350 | - $skip = (null == $skip) ? 0 :$skip; |
|
| 350 | + $skip = (null == $skip) ? 0 : $skip; |
|
| 351 | 351 | $queryResult = $this->providers->getResourceSet( |
| 352 | 352 | $this->request->queryType, |
| 353 | 353 | $segment->getTargetResourceSetWrapper(), |