@@ -91,7 +91,7 @@ |
||
91 | 91 | $hasExpanded = null !== $link->getExpandedResult(); |
92 | 92 | |
93 | 93 | $isEntry = ($link->getExpandedResult() ? $link->getExpandedResult()->getData() : null) |
94 | - instanceof ODataEntry; |
|
94 | + instanceof ODataEntry; |
|
95 | 95 | |
96 | 96 | if ($hasExpanded) { |
97 | 97 | if ($isEntry) { |
@@ -50,7 +50,7 @@ |
||
50 | 50 | assert($tagNamespace === ODataConstants::ODATA_NAMESPACE || |
51 | 51 | $tagNamespace === ODataConstants::ODATA_METADATA_NAMESPACE); |
52 | 52 | |
53 | - $property = new ODataProperty( |
|
53 | + $property = new ODataProperty( |
|
54 | 54 | $tagName, |
55 | 55 | $this->arrayKeyOrDefault( |
56 | 56 | $attributes, |
@@ -590,13 +590,13 @@ |
||
590 | 590 | foreach ($values as $propName => $propDeets) { |
591 | 591 | assert(2 == count($propDeets)); |
592 | 592 | assert($propDeets[1] instanceof IType); |
593 | - $property = new ODataProperty( |
|
593 | + $property = new ODataProperty( |
|
594 | 594 | strval($propName), |
595 | 595 | $propDeets[1]->getFullTypeName(), |
596 | 596 | $propDeets[1]->convert($propDeets[0]) |
597 | 597 | |
598 | 598 | ); |
599 | - $result[$propName] = $property; |
|
599 | + $result[$propName] = $property; |
|
600 | 600 | } |
601 | 601 | |
602 | 602 | return $result; |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | ODataConstants::ATOM_LINK_RELATION_ATTRIBUTE_NAME, |
85 | 85 | '' |
86 | 86 | ); |
87 | - $prop = $rel === ODataConstants::ATOM_SELF_RELATION_ATTRIBUTE_VALUE ? 'setSelfLink' : 'setNextPageLink'; |
|
87 | + $prop = $rel === ODataConstants::ATOM_SELF_RELATION_ATTRIBUTE_VALUE ? 'setSelfLink' : 'setNextPageLink'; |
|
88 | 88 | $this->oDataFeed->{$prop}(new ODataLink( |
89 | 89 | $this->arrayKeyOrDefault($attributes, ODataConstants::ATOM_LINK_RELATION_ATTRIBUTE_NAME, ''), |
90 | 90 | $this->arrayKeyOrDefault($attributes, ODataConstants::ATOM_TITLE_ELELMET_NAME, ''), |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | public function handleStartMetadataCount() |
98 | 98 | { |
99 | 99 | $this->enqueueEnd(function () { |
100 | - $this->oDataFeed->setRowCount((int)$this->popCharData()); |
|
100 | + $this->oDataFeed->setRowCount((int) $this->popCharData()); |
|
101 | 101 | }); |
102 | 102 | } |
103 | 103 |
@@ -76,7 +76,7 @@ |
||
76 | 76 | */ |
77 | 77 | public function getTypeName(): string |
78 | 78 | { |
79 | - return $this->typeName ?? '' ; |
|
79 | + return $this->typeName ?? ''; |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
@@ -153,8 +153,7 @@ discard block |
||
153 | 153 | $nextLink = null; |
154 | 154 | |
155 | 155 | $rowCount = $this->getRequest()->queryType == QueryType::ENTITIES_WITH_COUNT() ? |
156 | - $this->getRequest()->getCountValue() : |
|
157 | - null; |
|
156 | + $this->getRequest()->getCountValue() : null; |
|
158 | 157 | foreach ($res as $entry) { |
159 | 158 | $query = $entry instanceof QueryResult ? $entry : new QueryResult($entry); |
160 | 159 | $entries[] = $this->writeTopLevelElement($query); |
@@ -287,7 +286,7 @@ discard block |
||
287 | 286 | |
288 | 287 | $resourceSet = $resourceType->getCustomState(); |
289 | 288 | assert($resourceSet instanceof ResourceSet); |
290 | - $type = $resourceType->getFullName(); |
|
289 | + $type = $resourceType->getFullName(); |
|
291 | 290 | |
292 | 291 | $relativeUri = $this->getEntryInstanceKey( |
293 | 292 | $entryObject->results, |
@@ -339,7 +338,7 @@ discard block |
||
339 | 338 | $links[] = $nuLink; |
340 | 339 | } |
341 | 340 | |
342 | - $odata = new ODataEntry( |
|
341 | + $odata = new ODataEntry( |
|
343 | 342 | $absoluteUri, |
344 | 343 | null, |
345 | 344 | new ODataTitle($resourceType->getName()), |
@@ -736,7 +735,7 @@ discard block |
||
736 | 735 | return false; |
737 | 736 | } |
738 | 737 | |
739 | - return 0 == ($value % 4); |
|
738 | + return 0 == ($value%4); |
|
740 | 739 | } |
741 | 740 | |
742 | 741 | /** |
@@ -819,7 +818,7 @@ discard block |
||
819 | 818 | $nuLink->getExpandedResult()->getData()->getSelfLink()->setTitle($propName); |
820 | 819 | $nuLink->getExpandedResult()->getData()->getSelfLink()->setUrl($nuLink->getUrl()); |
821 | 820 | $nuLink->getExpandedResult()->getData()->setTitle(new ODataTitle($propName)); |
822 | - $nuLink->getExpandedResult()->getData()->id = rtrim($this->absoluteServiceUri, '/') . '/' . $nuLink->getUrl(); |
|
821 | + $nuLink->getExpandedResult()->getData()->id = rtrim($this->absoluteServiceUri, '/') . '/' . $nuLink->getUrl(); |
|
823 | 822 | } |
824 | 823 | } |
825 | 824 | |
@@ -867,7 +866,7 @@ discard block |
||
867 | 866 | ODataConstants::HTTPQUERY_STRING_EXPAND, |
868 | 867 | ODataConstants::HTTPQUERY_STRING_ORDERBY, |
869 | 868 | ODataConstants::HTTPQUERY_STRING_INLINECOUNT, |
870 | - ODataConstants::HTTPQUERY_STRING_SELECT,] as $queryOption) { |
|
869 | + ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) { |
|
871 | 870 | $value = $this->getService()->getHost()->getQueryStringItem($queryOption); |
872 | 871 | if (null !== $value) { |
873 | 872 | if (null !== $queryParameterString) { |
@@ -1037,7 +1036,7 @@ discard block |
||
1037 | 1036 | { |
1038 | 1037 | $result = $bagValue->results; |
1039 | 1038 | |
1040 | - $odataProperty = new ODataProperty( |
|
1039 | + $odataProperty = new ODataProperty( |
|
1041 | 1040 | $propertyName, |
1042 | 1041 | 'Collection(' . $resourceType->getFullName() . ')', |
1043 | 1042 | $this->writeBagValue($resourceType, $result) |