@@ -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->rowCount = (int)$this->popCharData(); |
|
100 | + $this->oDataFeed->rowCount = (int) $this->popCharData(); |
|
101 | 101 | }); |
102 | 102 | } |
103 | 103 |
@@ -43,7 +43,7 @@ |
||
43 | 43 | { |
44 | 44 | parent::__construct($id, $title, $selfLink, $updated, $baseURI); |
45 | 45 | $this->setNextPageLink($nextPageLink)->setEntries($entries); |
46 | - $this->rowCount = $rowCount; |
|
46 | + $this->rowCount = $rowCount; |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
@@ -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) { |
@@ -224,7 +224,7 @@ |
||
224 | 224 | { |
225 | 225 | return !array_reduce( |
226 | 226 | ['isExpanded', 'isCollection', 'expandedResult', 'title', 'type', 'name', 'url'], |
227 | - function ($carry, $value){ |
|
227 | + function ($carry, $value) { |
|
228 | 228 | return $carry || isset($this->{$value}); |
229 | 229 | }, false); |
230 | 230 | } |
@@ -224,7 +224,7 @@ |
||
224 | 224 | { |
225 | 225 | return !array_reduce( |
226 | 226 | ['isExpanded', 'isCollection', 'expandedResult', 'title', 'type', 'name', 'url'], |
227 | - function ($carry, $value){ |
|
227 | + function ($carry, $value) { |
|
228 | 228 | return $carry || isset($this->{$value}); |
229 | 229 | }, false); |
230 | 230 | } |
@@ -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; |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | $relativeUri = $this->getRequest()->getIdentifier(); |
143 | 143 | $absoluteUri = $this->getRequest()->getRequestUrl()->getUrlAsString(); |
144 | 144 | |
145 | - $selfLink = new ODataLink('self', $title, null, $relativeUri); |
|
145 | + $selfLink = new ODataLink('self', $title, null, $relativeUri); |
|
146 | 146 | |
147 | 147 | $odata = new ODataFeed(); |
148 | 148 | $odata->title = new ODataTitle($title); |
@@ -696,7 +696,7 @@ discard block |
||
696 | 696 | $name = $propName; |
697 | 697 | $typeName = null; |
698 | 698 | $value = null; |
699 | - $raw = $result->{$propName}; |
|
699 | + $raw = $result->{$propName}; |
|
700 | 700 | if (static::isMatchPrimitive($resourceKind)) { |
701 | 701 | $iType = $prop->getInstanceType(); |
702 | 702 | if (!$iType instanceof IType) { |
@@ -713,7 +713,7 @@ discard block |
||
713 | 713 | $value = $this->primitiveToString($rType, $raw); |
714 | 714 | } |
715 | 715 | } elseif (ResourcePropertyKind::COMPLEX_TYPE() == $resourceKind) { |
716 | - $rType = $prop->getResourceType(); |
|
716 | + $rType = $prop->getResourceType(); |
|
717 | 717 | $typeName = $rType->getFullName(); |
718 | 718 | if (null !== $raw) { |
719 | 719 | $value = $this->writeComplexValue($rType, $raw, $propName); |
@@ -743,7 +743,7 @@ discard block |
||
743 | 743 | return false; |
744 | 744 | } |
745 | 745 | |
746 | - return 0 == ($value % 4); |
|
746 | + return 0 == ($value%4); |
|
747 | 747 | } |
748 | 748 | |
749 | 749 | /** |
@@ -816,7 +816,7 @@ discard block |
||
816 | 816 | $result = new ODataEntry(); |
817 | 817 | $result->resourceSetName = $type->getName(); |
818 | 818 | } else { |
819 | - $result = new ODataFeed(); |
|
819 | + $result = new ODataFeed(); |
|
820 | 820 | $result->setSelfLink(new ODataLink(ODataConstants::ATOM_SELF_RELATION_ATTRIBUTE_VALUE)); |
821 | 821 | } |
822 | 822 | $nuLink->setExpandedResult(new ODataExpandedResult($result)); |
@@ -873,7 +873,7 @@ discard block |
||
873 | 873 | ODataConstants::HTTPQUERY_STRING_EXPAND, |
874 | 874 | ODataConstants::HTTPQUERY_STRING_ORDERBY, |
875 | 875 | ODataConstants::HTTPQUERY_STRING_INLINECOUNT, |
876 | - ODataConstants::HTTPQUERY_STRING_SELECT,] as $queryOption) { |
|
876 | + ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) { |
|
877 | 877 | $value = $this->getService()->getHost()->getQueryStringItem($queryOption); |
878 | 878 | if (null !== $value) { |
879 | 879 | if (null !== $queryParameterString) { |
@@ -1017,7 +1017,7 @@ discard block |
||
1017 | 1017 | if (!is_object($result)) { |
1018 | 1018 | throw new InvalidOperationException('Supplied $customObject must be an object'); |
1019 | 1019 | } |
1020 | - $internalContent = $this->writeComplexValue($resourceType, $result); |
|
1020 | + $internalContent = $this->writeComplexValue($resourceType, $result); |
|
1021 | 1021 | $value = $internalContent; |
1022 | 1022 | } |
1023 | 1023 | |
@@ -1043,7 +1043,7 @@ discard block |
||
1043 | 1043 | { |
1044 | 1044 | $result = $bagValue->results; |
1045 | 1045 | |
1046 | - $odataProperty = new ODataProperty( |
|
1046 | + $odataProperty = new ODataProperty( |
|
1047 | 1047 | $propertyName, |
1048 | 1048 | 'Collection(' . $resourceType->getFullName() . ')', |
1049 | 1049 | $this->writeBagValue($resourceType, $result) |