@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | */ |
209 | 209 | protected function executePut() |
210 | 210 | { |
211 | - return $this->executeBase(function ($uriProcessor, $segment) { |
|
211 | + return $this->executeBase(function($uriProcessor, $segment) { |
|
212 | 212 | $requestMethod = $uriProcessor->getService()->getOperationContext()->incomingRequest()->getMethod(); |
213 | 213 | $resourceSet = $segment->getTargetResourceSetWrapper(); |
214 | 214 | $keyDescriptor = $segment->getKeyDescriptor(); |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | */ |
232 | 232 | protected function executeDelete() |
233 | 233 | { |
234 | - return $this->executeBase(function ($uriProcessor, $segment) { |
|
234 | + return $this->executeBase(function($uriProcessor, $segment) { |
|
235 | 235 | $requestMethod = $uriProcessor->getService()->getOperationContext()->incomingRequest()->getMethod(); |
236 | 236 | $resourceSet = $segment->getTargetResourceSetWrapper(); |
237 | 237 | $keyDescriptor = $segment->getKeyDescriptor(); |
@@ -50,7 +50,7 @@ |
||
50 | 50 | * |
51 | 51 | * @return bool true if the segment was push, false otherwise |
52 | 52 | */ |
53 | - public function pushSegment($segmentName, ResourceSetWrapper &$resourceSetWrapper) |
|
53 | + public function pushSegment($segmentName, ResourceSetWrapper & $resourceSetWrapper) |
|
54 | 54 | { |
55 | 55 | if (!is_string($segmentName)) { |
56 | 56 | throw new InvalidOperationException('segmentName must be a string'); |
@@ -158,8 +158,8 @@ |
||
158 | 158 | |
159 | 159 | case 'Edm.DateTime': |
160 | 160 | $dateTime = new Carbon($value, new \DateTimeZone('UTC')); |
161 | - $formattedDateTime = $dateTime->format('U') * 1000; |
|
162 | - $this->_writeCore('/Date('.$formattedDateTime.')/', /* quotes */ true); |
|
161 | + $formattedDateTime = $dateTime->format('U')*1000; |
|
162 | + $this->_writeCore('/Date(' . $formattedDateTime . ')/', /* quotes */ true); |
|
163 | 163 | break; |
164 | 164 | |
165 | 165 | case 'Edm.String': |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public static function resourceAssociationTypeEndPropertyMustBeNullOrInstanceofResourceProperty($argumentName) |
15 | 15 | { |
16 | - return "The argument '".$argumentName."' must be either null or instance of 'ResourceProperty'."; |
|
16 | + return "The argument '" . $argumentName . "' must be either null or instance of 'ResourceProperty'."; |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | /** |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * |
63 | 63 | * @return ODataPropertyContent |
64 | 64 | */ |
65 | - public function writeTopLevelComplexObject(&$complexValue, $propertyName, ResourceType &$resourceType); |
|
65 | + public function writeTopLevelComplexObject(&$complexValue, $propertyName, ResourceType & $resourceType); |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * Write top level bag resource. |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * |
77 | 77 | * @return ODataPropertyContent |
78 | 78 | */ |
79 | - public function writeTopLevelBagObject(&$BagValue, $propertyName, ResourceType &$resourceType); |
|
79 | + public function writeTopLevelBagObject(&$BagValue, $propertyName, ResourceType & $resourceType); |
|
80 | 80 | |
81 | 81 | /** |
82 | 82 | * Write top level primitive value. |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | * |
91 | 91 | * @return ODataPropertyContent |
92 | 92 | */ |
93 | - public function writeTopLevelPrimitive(&$primitiveValue, ResourceProperty &$resourceProperty); |
|
93 | + public function writeTopLevelPrimitive(&$primitiveValue, ResourceProperty & $resourceProperty); |
|
94 | 94 | |
95 | 95 | /** |
96 | 96 | * Gets reference to the request submitted by client. |
@@ -102,7 +102,7 @@ |
||
102 | 102 | |
103 | 103 | $a = $this->_isAscending ? 1 : -1; |
104 | 104 | |
105 | - $retVal = function ($object1, $object2) use ($ancestors, $a) { |
|
105 | + $retVal = function($object1, $object2) use ($ancestors, $a) { |
|
106 | 106 | $accessor1 = $object1; |
107 | 107 | $accessor2 = $object2; |
108 | 108 | $flag1 = is_null($accessor1); |
@@ -400,7 +400,7 @@ |
||
400 | 400 | $this->_topLevelComparisonFunction = $this->_comparisonFunctions[0]; |
401 | 401 | } else { |
402 | 402 | $funcList = $this->_comparisonFunctions; |
403 | - $this->_topLevelComparisonFunction = function ($object1, $object2) use ($funcList) { |
|
403 | + $this->_topLevelComparisonFunction = function($object1, $object2) use ($funcList) { |
|
404 | 404 | $ret = 0; |
405 | 405 | foreach ($funcList as $f) { |
406 | 406 | $ret = $f($object1, $object2); |
@@ -76,6 +76,9 @@ |
||
76 | 76 | return $this->metaProvider; |
77 | 77 | } |
78 | 78 | |
79 | + /** |
|
80 | + * @param null|IStreamProvider2 $Sp |
|
81 | + */ |
|
79 | 82 | public function setStreamProvider($Sp) |
80 | 83 | { |
81 | 84 | if(null == $Sp){ |
@@ -78,7 +78,7 @@ |
||
78 | 78 | |
79 | 79 | public function setStreamProvider($Sp) |
80 | 80 | { |
81 | - if(null == $Sp){ |
|
81 | + if (null == $Sp) { |
|
82 | 82 | $Sp = new \POData\Providers\Stream\SimpleStreamProvider(); |
83 | 83 | } |
84 | 84 | $this->streamProvider = $Sp; |
@@ -627,7 +627,7 @@ |
||
627 | 627 | $responseContentType = $this->getStreamProviderWrapper() |
628 | 628 | ->getStreamContentType2( |
629 | 629 | $request->getTargetResult(), |
630 | - $request->getResourceStreamInfo(),$this->getOperationContext() |
|
630 | + $request->getResourceStreamInfo(), $this->getOperationContext() |
|
631 | 631 | ); |
632 | 632 | |
633 | 633 | // Note StreamWrapper::getStreamContentType can return NULL if the requested named stream has not |