@@ -946,8 +946,8 @@ |
||
| 946 | 946 | * @throws ODataException |
| 947 | 947 | */ |
| 948 | 948 | private function _validateEntityInstance($entityInstance, |
| 949 | - ResourceSet &$resourceSet, |
|
| 950 | - KeyDescriptor &$keyDescriptor, |
|
| 949 | + ResourceSet & $resourceSet, |
|
| 950 | + KeyDescriptor & $keyDescriptor, |
|
| 951 | 951 | $methodName |
| 952 | 952 | ) { |
| 953 | 953 | if (is_null($entityInstance)) { |
@@ -730,7 +730,7 @@ discard block |
||
| 730 | 730 | * @return string|null The ETag for the entry object if it has eTag properties |
| 731 | 731 | * NULL otherwise. |
| 732 | 732 | */ |
| 733 | - protected function compareETag(&$entryObject, ResourceType &$resourceType, |
|
| 733 | + protected function compareETag(&$entryObject, ResourceType & $resourceType, |
|
| 734 | 734 | &$needToSerializeResponse |
| 735 | 735 | ) { |
| 736 | 736 | $needToSerializeResponse = true; |
@@ -823,7 +823,7 @@ discard block |
||
| 823 | 823 | * for use in a URI) there are etag properties, NULL if |
| 824 | 824 | * there is no etag property. |
| 825 | 825 | */ |
| 826 | - protected function getETagForEntry(&$entryObject, ResourceType &$resourceType) |
|
| 826 | + protected function getETagForEntry(&$entryObject, ResourceType & $resourceType) |
|
| 827 | 827 | { |
| 828 | 828 | $eTag = null; |
| 829 | 829 | $comma = null; |
@@ -100,6 +100,6 @@ |
||
| 100 | 100 | */ |
| 101 | 101 | public function convertToOData($value) |
| 102 | 102 | { |
| 103 | - return '\'' . str_replace('%27', "''", urlencode(mb_convert_encoding($value,'UTF-8'))) . '\''; |
|
| 103 | + return '\'' . str_replace('%27', "''", urlencode(mb_convert_encoding($value, 'UTF-8'))) . '\''; |
|
| 104 | 104 | } |
| 105 | 105 | } |
@@ -87,11 +87,11 @@ |
||
| 87 | 87 | $property->setAccessible(true); |
| 88 | 88 | |
| 89 | 89 | $type = $property->getType(); |
| 90 | - if($resourceType instanceof ResourceProperty) { |
|
| 91 | - $resourceType = $resourceType->getResourceType(); |
|
| 90 | + if ($resourceType instanceof ResourceProperty) { |
|
| 91 | + $resourceType = $resourceType->getResourceType(); |
|
| 92 | 92 | } |
| 93 | 93 | $resourceProperty = $resourceType->resolveProperty($property->getName()); |
| 94 | - if(is_null($resourceProperty)) continue; |
|
| 94 | + if (is_null($resourceProperty)) continue; |
|
| 95 | 95 | |
| 96 | 96 | $resourcePropertyType = $resourceProperty->getResourceType(); |
| 97 | 97 | $resourceKind = $resourcePropertyType->getResourceTypeKind(); |