@@ -131,7 +131,7 @@ |
||
131 | 131 | } |
132 | 132 | |
133 | 133 | $this->rawUrl .= '://' . |
134 | - $_SERVER[HttpProcessUtility::headerToServerKey(ODataConstants::HTTPREQUEST_HEADER_HOST)]; |
|
134 | + $_SERVER[HttpProcessUtility::headerToServerKey(ODataConstants::HTTPREQUEST_HEADER_HOST)]; |
|
135 | 135 | $this->rawUrl .= utf8_decode(urldecode($_SERVER[ODataConstants::HTTPREQUEST_URI])); |
136 | 136 | } |
137 | 137 |
@@ -693,7 +693,7 @@ |
||
693 | 693 | ResourceEntityType $concreteType = null |
694 | 694 | ) { |
695 | 695 | $allowedMult = ['*', '1', '0..1']; |
696 | - $backMultArray = [ '*' => '*', '1' => '0..1', '0..1' => '1']; |
|
696 | + $backMultArray = ['*' => '*', '1' => '0..1', '0..1' => '1']; |
|
697 | 697 | $this->checkInstanceProperty($name, $sourceResourceType); |
698 | 698 | |
699 | 699 | // check that property and resource name don't up and collide - would violate OData spec |
@@ -23,7 +23,7 @@ |
||
23 | 23 | switch ($this->arrayKeyOrDefault($attributes, ODataConstants::ATOM_LINK_RELATION_ATTRIBUTE_NAME, null)) { |
24 | 24 | case ODataConstants::ATOM_EDIT_RELATION_ATTRIBUTE_VALUE: |
25 | 25 | case ODataConstants::ODATA_RELATED_NAMESPACE . |
26 | - $this->arrayKeyOrDefault($attributes, ODataConstants::ATOM_TITLE_ELELMET_NAME, ''): |
|
26 | + $this->arrayKeyOrDefault($attributes, ODataConstants::ATOM_TITLE_ELELMET_NAME, ''): |
|
27 | 27 | $object = ODataLink::class; |
28 | 28 | break; |
29 | 29 | case ODataConstants::ATOM_EDIT_MEDIA_RELATION_ATTRIBUTE_VALUE: |
@@ -43,14 +43,14 @@ |
||
43 | 43 | public function handleStartNode($tagNamespace, $tagName, $attributes) |
44 | 44 | { |
45 | 45 | //The only sub notes that will exist will be the inline ones before we process the feed or entity. |
46 | - assert($tagNamespace === strtolower(ODataConstants::ODATA_METADATA_NAMESPACE)); |
|
46 | + assert($tagNamespace === strtolower(ODataConstants::ODATA_METADATA_NAMESPACE)); |
|
47 | 47 | assert($tagName === strtolower(ODataConstants::ATOM_INLINE_ELEMENT_NAME)); |
48 | 48 | } |
49 | 49 | |
50 | 50 | public function handleEndNode($tagNamespace, $tagName) |
51 | 51 | { |
52 | 52 | //The only sub notes that will exist will be the inline ones before we process the feed or entity. |
53 | - assert($tagNamespace === strtolower(ODataConstants::ODATA_METADATA_NAMESPACE)); |
|
53 | + assert($tagNamespace === strtolower(ODataConstants::ODATA_METADATA_NAMESPACE)); |
|
54 | 54 | assert($tagName === strtolower(ODataConstants::ATOM_INLINE_ELEMENT_NAME)); |
55 | 55 | } |
56 | 56 |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | */ |
78 | 78 | public function handleStartAtomLink($attributes) |
79 | 79 | { |
80 | - $rel = $this->arrayKeyOrDefault( |
|
80 | + $rel = $this->arrayKeyOrDefault( |
|
81 | 81 | $attributes, |
82 | 82 | ODataConstants::ATOM_LINK_RELATION_ATTRIBUTE_NAME, |
83 | 83 | '' |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | public function handleStartMetadataCount() |
96 | 96 | { |
97 | 97 | $this->enqueueEnd(function () { |
98 | - $this->oDataFeed->rowCount = (int)$this->popCharData(); |
|
98 | + $this->oDataFeed->rowCount = (int) $this->popCharData(); |
|
99 | 99 | }); |
100 | 100 | } |
101 | 101 |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | if (strtolower($tagNamespace) === strtolower(ODataConstants::ODATA_METADATA_NAMESPACE) && |
46 | 46 | strtolower($tagName) === strtolower((ODataConstants::ATOM_PROPERTIES_ELEMENT_NAME)) |
47 | 47 | ) { |
48 | - return ; |
|
48 | + return; |
|
49 | 49 | } |
50 | 50 | //TODO: this will need to be expanded with opengis namespaces as well when supported |
51 | 51 | assert($tagNamespace === ODataConstants::ODATA_NAMESPACE || |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | if (strtolower($tagNamespace) === strtolower(ODataConstants::ODATA_METADATA_NAMESPACE) && |
72 | 72 | strtolower($tagName) === strtolower((ODataConstants::ATOM_PROPERTIES_ELEMENT_NAME)) |
73 | 73 | ) { |
74 | - return ; |
|
74 | + return; |
|
75 | 75 | } |
76 | 76 | // Pops a complex object off the stack |
77 | 77 | $prop = $this->properties->pop(); |
@@ -73,8 +73,7 @@ |
||
73 | 73 | $functionName, |
74 | 74 | $protoTypes, |
75 | 75 | $position |
76 | - ) |
|
77 | - { |
|
76 | + ) { |
|
78 | 77 | return 'No applicable function found for \'' . $functionName . '\' at position ' . $position . |
79 | 78 | ' with the specified arguments. The functions considered are: ' . $protoTypes; |
80 | 79 | } |
@@ -69,8 +69,7 @@ discard block |
||
69 | 69 | public static function expandProjectionParserPrimitivePropertyUsedAsNavigationProperty( |
70 | 70 | $resourceTypeName, |
71 | 71 | $primitivePropertyName |
72 | - ) |
|
73 | - { |
|
72 | + ) { |
|
74 | 73 | return 'Property \'' . $primitivePropertyName . '\' on type \'' . $resourceTypeName |
75 | 74 | . '\' is of primitive type and cannot be used as a navigation property.'; |
76 | 75 | } |
@@ -88,8 +87,7 @@ discard block |
||
88 | 87 | public static function expandProjectionParserComplexPropertyAsInnerSelectSegment( |
89 | 88 | $resourceTypeName, |
90 | 89 | $complexTypeName |
91 | - ) |
|
92 | - { |
|
90 | + ) { |
|
93 | 91 | return 'select doesn\'t support selection of properties of complex type. The property \'' . $complexTypeName |
94 | 92 | . '\' on type \'' . $resourceTypeName . '\' is a complex type.'; |
95 | 93 | } |
@@ -69,8 +69,7 @@ |
||
69 | 69 | $requestHeaderName, |
70 | 70 | $requestedVersion, |
71 | 71 | $availableVersions |
72 | - ) |
|
73 | - { |
|
72 | + ) { |
|
74 | 73 | return 'The version value ' . $requestedVersion . ' in the header ' . $requestHeaderName . ' is not' |
75 | 74 | . ' supported, available versions are ' . $availableVersions; |
76 | 75 | } |
@@ -34,8 +34,7 @@ |
||
34 | 34 | public static function metadataWriterNoResourceAssociationSetForNavigationProperty( |
35 | 35 | $navigationPropertyName, |
36 | 36 | $resourceTypeName |
37 | - ) |
|
38 | - { |
|
37 | + ) { |
|
39 | 38 | return 'No visible ResourceAssociationSet found for navigation property \'' . $navigationPropertyName . |
40 | 39 | '\' on type \'' . $resourceTypeName . '\'. There must be at least one ResourceAssociationSet for' . |
41 | 40 | ' each navigation property.'; |