@@ -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()), |
@@ -350,7 +349,7 @@ discard block |
||
| 350 | 349 | $mediaLink, |
| 351 | 350 | $links, |
| 352 | 351 | null, |
| 353 | - true === $resourceType->isMediaLinkEntry() , |
|
| 352 | + true === $resourceType->isMediaLinkEntry(), |
|
| 354 | 353 | $resourceSet->getName(), |
| 355 | 354 | $this->getUpdated()->format(DATE_ATOM), |
| 356 | 355 | $baseURI |
@@ -737,7 +736,7 @@ discard block |
||
| 737 | 736 | return false; |
| 738 | 737 | } |
| 739 | 738 | |
| 740 | - return 0 == ($value % 4); |
|
| 739 | + return 0 == ($value%4); |
|
| 741 | 740 | } |
| 742 | 741 | |
| 743 | 742 | /** |
@@ -820,7 +819,7 @@ discard block |
||
| 820 | 819 | $nuLink->getExpandedResult()->getData()->getSelfLink()->setTitle($propName); |
| 821 | 820 | $nuLink->getExpandedResult()->getData()->getSelfLink()->setUrl($nuLink->getUrl()); |
| 822 | 821 | $nuLink->getExpandedResult()->getData()->setTitle(new ODataTitle($propName)); |
| 823 | - $nuLink->getExpandedResult()->getData()->id = rtrim($this->absoluteServiceUri, '/') . '/' . $nuLink->getUrl(); |
|
| 822 | + $nuLink->getExpandedResult()->getData()->id = rtrim($this->absoluteServiceUri, '/') . '/' . $nuLink->getUrl(); |
|
| 824 | 823 | } |
| 825 | 824 | } |
| 826 | 825 | |
@@ -868,7 +867,7 @@ discard block |
||
| 868 | 867 | ODataConstants::HTTPQUERY_STRING_EXPAND, |
| 869 | 868 | ODataConstants::HTTPQUERY_STRING_ORDERBY, |
| 870 | 869 | ODataConstants::HTTPQUERY_STRING_INLINECOUNT, |
| 871 | - ODataConstants::HTTPQUERY_STRING_SELECT,] as $queryOption) { |
|
| 870 | + ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) { |
|
| 872 | 871 | $value = $this->getService()->getHost()->getQueryStringItem($queryOption); |
| 873 | 872 | if (null !== $value) { |
| 874 | 873 | if (null !== $queryParameterString) { |
@@ -1038,7 +1037,7 @@ discard block |
||
| 1038 | 1037 | { |
| 1039 | 1038 | $result = $bagValue->results; |
| 1040 | 1039 | |
| 1041 | - $odataProperty = new ODataProperty( |
|
| 1040 | + $odataProperty = new ODataProperty( |
|
| 1042 | 1041 | $propertyName, |
| 1043 | 1042 | 'Collection(' . $resourceType->getFullName() . ')', |
| 1044 | 1043 | $this->writeBagValue($resourceType, $result) |