@@ -70,7 +70,7 @@ |
||
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | |
| 73 | - $lambda = function(RequestDescription &$request) use (&$service) { |
|
| 73 | + $lambda = function(RequestDescription & $request) use (&$service) { |
|
| 74 | 74 | $kind = $request->getTargetKind(); |
| 75 | 75 | $segments = $request->getSegments(); |
| 76 | 76 | |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | * or in case of any version incompatibility. |
| 34 | 34 | */ |
| 35 | 35 | public static function process(IService $service) |
| 36 | - { |
|
| 36 | + { |
|
| 37 | 37 | $host = $service->getHost(); |
| 38 | 38 | $fullAbsoluteRequestUri = $host->getFullAbsoluteRequestUri(); |
| 39 | 39 | $absoluteRequestUri = $host->getAbsoluteRequestUri(); |
@@ -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; |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | */ |
| 102 | 102 | public function convertToOData($value) |
| 103 | 103 | { |
| 104 | - if ($value instanceof DateTimeInterface) return 'datetime\'' . urlencode($value->format(DateTimeInterface::ATOM)) . '\''; |
|
| 104 | + if ($value instanceof DateTimeInterface) return 'datetime\'' . urlencode($value->format(DateTimeInterface::ATOM)) . '\''; |
|
| 105 | 105 | return 'datetime\'' . urlencode($value) . '\''; |
| 106 | 106 | } |
| 107 | 107 | |
@@ -101,7 +101,9 @@ |
||
| 101 | 101 | */ |
| 102 | 102 | public function convertToOData($value) |
| 103 | 103 | { |
| 104 | - if ($value instanceof DateTimeInterface) return 'datetime\'' . urlencode($value->format(DateTimeInterface::ATOM)) . '\''; |
|
| 104 | + if ($value instanceof DateTimeInterface) { |
|
| 105 | + return 'datetime\'' . urlencode($value->format(DateTimeInterface::ATOM)) . '\''; |
|
| 106 | + } |
|
| 105 | 107 | return 'datetime\'' . urlencode($value) . '\''; |
| 106 | 108 | } |
| 107 | 109 | |
@@ -357,5 +357,5 @@ |
||
| 357 | 357 | return $operator . self::OPEN_BRACKET . $child . self::CLOSE_BRACKET; |
| 358 | 358 | } |
| 359 | 359 | |
| 360 | - public function clear() {} |
|
| 360 | + public function clear() {} |
|
| 361 | 361 | } |
| 362 | 362 | \ No newline at end of file |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function getIteratorName(); |
| 25 | 25 | |
| 26 | - public function clear(); |
|
| 26 | + public function clear(); |
|
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * call-back for setting the resource type. |
@@ -157,14 +157,14 @@ discard block |
||
| 157 | 157 | |
| 158 | 158 | public function getCustomProperties($entryObject); |
| 159 | 159 | |
| 160 | - public function postResource( |
|
| 160 | + public function postResource( |
|
| 161 | 161 | ResourceSet $resourceSet, |
| 162 | 162 | RequestDescription $request, |
| 163 | 163 | $data |
| 164 | 164 | ); |
| 165 | 165 | |
| 166 | - public function putResource( |
|
| 167 | - ResourceSet $resourceSet, |
|
| 166 | + public function putResource( |
|
| 167 | + ResourceSet $resourceSet, |
|
| 168 | 168 | RequestDescription $request, |
| 169 | 169 | KeyDescriptor $keyDescriptor, |
| 170 | 170 | $data, |
@@ -172,8 +172,8 @@ discard block |
||
| 172 | 172 | $expand |
| 173 | 173 | ); |
| 174 | 174 | |
| 175 | - public function deleteResource( |
|
| 176 | - ResourceSet $resourceSet, |
|
| 175 | + public function deleteResource( |
|
| 176 | + ResourceSet $resourceSet, |
|
| 177 | 177 | RequestDescription $request, |
| 178 | 178 | $keyDescriptor |
| 179 | 179 | ); |
@@ -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 | } |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | private $tabString; |
| 34 | 34 | |
| 35 | - private $_writer; |
|
| 35 | + private $_writer; |
|
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * Creates a new instance of IndentedTextWriter |