@@ -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 | } |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | private static function _mock($resourceType): object { |
82 | 82 | $instanceType = $resourceType->getInstanceType(); |
83 | 83 | $reflection = new \ReflectionClass($instanceType->name); |
84 | - if($reflection->isAbstract()) { |
|
84 | + if ($reflection->isAbstract()) { |
|
85 | 85 | return new stdClass(); |
86 | 86 | } |
87 | 87 | $mock = $reflection->newInstanceWithoutConstructor(); |
@@ -90,11 +90,11 @@ discard block |
||
90 | 90 | $property->setAccessible(true); |
91 | 91 | |
92 | 92 | $type = $property->getType(); |
93 | - if($resourceType instanceof ResourceProperty) { |
|
94 | - $resourceType = $resourceType->getResourceType(); |
|
93 | + if ($resourceType instanceof ResourceProperty) { |
|
94 | + $resourceType = $resourceType->getResourceType(); |
|
95 | 95 | } |
96 | 96 | $resourceProperty = $resourceType->resolveProperty($property->getName()); |
97 | - if(is_null($resourceProperty)) continue; |
|
97 | + if (is_null($resourceProperty)) continue; |
|
98 | 98 | |
99 | 99 | $resourcePropertyType = $resourceProperty->getResourceType(); |
100 | 100 | $resourceKind = $resourcePropertyType->getResourceTypeKind(); |