@@ -145,7 +145,7 @@ |
||
145 | 145 | * |
146 | 146 | * @return object|null The new resource value if it is assignable or throw exception for null. |
147 | 147 | */ |
148 | - public function updateResource(ResourceSet $sourceResourceSet,$sourceEntityInstance, KeyDescriptor $keyDescriptor,$data, $shouldUpdate = false); |
|
148 | + public function updateResource(ResourceSet $sourceResourceSet, $sourceEntityInstance, KeyDescriptor $keyDescriptor, $data, $shouldUpdate = false); |
|
149 | 149 | |
150 | 150 | /* |
151 | 151 | * Delete resource from a resource set. |
@@ -37,7 +37,7 @@ |
||
37 | 37 | * @param QueryType $queryType indicates if this is a query for a count, entities, or entities with a count |
38 | 38 | * @param ResourceSet $resourceSet The entity set containing the entities to fetch |
39 | 39 | * @param FilterInfo $filterInfo represents the $filter parameter of the OData query. NULL if no $filter specified |
40 | - * @param mixed $orderBy sorted order if we want to get the data in some specific order |
|
40 | + * @param null|\POData\UriProcessor\QueryProcessor\OrderByParser\InternalOrderByInfo $orderBy sorted order if we want to get the data in some specific order |
|
41 | 41 | * @param int $top number of records which need to be skip |
42 | 42 | * @param string $skipToken value indicating what records to skip |
43 | 43 | * |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | throw new \Exception(); |
31 | 31 | } |
32 | 32 | } catch (\Exception $ex) { |
33 | - throw new \Exception('[XML2Array] Error parsing the XML string.'.PHP_EOL.$ex->getMessage()); |
|
33 | + throw new \Exception('[XML2Array] Error parsing the XML string.' . PHP_EOL . $ex->getMessage()); |
|
34 | 34 | } |
35 | 35 | } elseif (is_object($input_xml)) { |
36 | 36 | if (get_class($input_xml) != 'DOMDocument') { |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | throw new \Exception('[XML2Array] Invalid input'); |
42 | 42 | } |
43 | 43 | $array[$xml->documentElement->tagName] = self::convert($xml->documentElement); |
44 | - self::$xml = null; // clear the xml node in the class for 2nd time use. |
|
44 | + self::$xml = null; // clear the xml node in the class for 2nd time use. |
|
45 | 45 | return $array; |
46 | 46 | } |
47 | 47 | /** |
@@ -14,7 +14,7 @@ |
||
14 | 14 | /** |
15 | 15 | * Convert an XML to Array. |
16 | 16 | * |
17 | - * @param string|\DOMDocument $input_xml |
|
17 | + * @param string $input_xml |
|
18 | 18 | * |
19 | 19 | * @return array |
20 | 20 | * |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | } |
82 | 82 | |
83 | 83 | /** |
84 | - * @param DOMNode $feed |
|
84 | + * @param \DOMNode $feed |
|
85 | 85 | */ |
86 | 86 | protected function EnumerateFeed($feed, &$feedType, $parentObject = null) |
87 | 87 | { |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | } |
119 | 119 | |
120 | 120 | /** |
121 | - * @param DOMNode $entry |
|
121 | + * @param \DOMNode $entry |
|
122 | 122 | */ |
123 | 123 | protected function EnumerateEntry($entry, &$entityType, $parentObject = null) |
124 | 124 | { |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | } |
204 | 204 | |
205 | 205 | /** |
206 | - * @param DOMNodeList $links |
|
206 | + * @param \DOMNodeList $links |
|
207 | 207 | */ |
208 | 208 | protected function GetRelatedLinks($links) |
209 | 209 | { |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace POData\Common\Messages; |
3 | 3 | |
4 | -trait resourceType{ |
|
4 | +trait resourceType { |
|
5 | 5 | /** |
6 | 6 | * Format a message to show error when a tyring to set a |
7 | 7 | * base class for primitive type. |
@@ -38,5 +38,5 @@ |
||
38 | 38 | */ |
39 | 39 | class Messages |
40 | 40 | { |
41 | - use common,expressionParser,metadataAssociationType,orderByInfo,resourceAssociationSet,segmentParser,configuration,http,metadataResourceType,providersWrapper,resourceAssociationType,skipTokenInfo,eTag,httpProcessUtility,metadataWriter,queryProcessor,resourceProperty,skipTokenParser,expandProjectionParser,IService,navigation,queryProvider,resourceSet,streamProviderWrapper,expressionLexer,keyDescriptor,objectModelSerializer,request,resourceType,uriProcessor; |
|
41 | + use common, expressionParser, metadataAssociationType, orderByInfo, resourceAssociationSet, segmentParser, configuration, http, metadataResourceType, providersWrapper, resourceAssociationType, skipTokenInfo, eTag, httpProcessUtility, metadataWriter, queryProcessor, resourceProperty, skipTokenParser, expandProjectionParser, IService, navigation, queryProvider, resourceSet, streamProviderWrapper, expressionLexer, keyDescriptor, objectModelSerializer, request, resourceType, uriProcessor; |
|
42 | 42 | } |