@@ -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. |
@@ -3,7 +3,7 @@ |
||
3 | 3 | |
4 | 4 | class XML2Array |
5 | 5 | { |
6 | - /** |
|
6 | + /** |
|
7 | 7 | * @var string |
8 | 8 | */ |
9 | 9 | private static $encoding = 'UTF-8'; |
@@ -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 | /** |
@@ -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 | } |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | 'default' => 'http://www.w3.org/2005/Atom', |
15 | 15 | 'd' => 'http://schemas.microsoft.com/ado/2007/08/dataservices', |
16 | 16 | 'm' => 'http://schemas.microsoft.com/ado/2007/08/dataservices/metadata' |
17 | - ); |
|
17 | + ); |
|
18 | 18 | protected static $QUERY_ROOT_FEED = '/default:feed'; |
19 | 19 | protected static $QUERY_ROOT_ENTRY = '/default:entry'; |
20 | 20 | protected static $QUERY_TITLE = 'default:title'; |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | ($attributes['EdmType'] == 'Edm.Int16' || |
346 | 346 | $attributes['EdmType'] == 'Edm.Int32' || |
347 | 347 | $attributes['EdmType'] == 'Edm.Int64')))) { |
348 | - $value = '0'; |
|
348 | + $value = '0'; |
|
349 | 349 | } |
350 | 350 | } else { |
351 | 351 | $value = null; |
@@ -35,12 +35,12 @@ |
||
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
38 | - * Message to show error when data service found a request method other than GET. |
|
39 | - * |
|
40 | - * @param HTTPRequestMethod $method Request method |
|
41 | - * |
|
42 | - * @return string The formatted message |
|
43 | - */ |
|
38 | + * Message to show error when data service found a request method other than GET. |
|
39 | + * |
|
40 | + * @param HTTPRequestMethod $method Request method |
|
41 | + * |
|
42 | + * @return string The formatted message |
|
43 | + */ |
|
44 | 44 | public static function onlyReadSupport(HTTPRequestMethod $method) |
45 | 45 | { |
46 | 46 | return "This release of library support only GET (read) request, received a request with method $method"; |