@@ -9,11 +9,11 @@ |
||
9 | 9 | */ |
10 | 10 | class ODataLink |
11 | 11 | { |
12 | - /** |
|
13 | - * Name of the link. This becomes last segment of rel attribute value. |
|
14 | - * |
|
15 | - * @var string |
|
16 | - */ |
|
12 | + /** |
|
13 | + * Name of the link. This becomes last segment of rel attribute value. |
|
14 | + * |
|
15 | + * @var string |
|
16 | + */ |
|
17 | 17 | private $name; |
18 | 18 | /** |
19 | 19 | * Title of the link. This become value of title attribute. |
@@ -189,7 +189,7 @@ |
||
189 | 189 | if (!$this->isExpanded) { |
190 | 190 | return null; |
191 | 191 | } |
192 | - if($this->expandedResult === null){ |
|
192 | + if ($this->expandedResult === null) { |
|
193 | 193 | return null; |
194 | 194 | } |
195 | 195 | return $this->expandedResult; |
@@ -189,7 +189,7 @@ |
||
189 | 189 | if (!$this->isExpanded) { |
190 | 190 | return null; |
191 | 191 | } |
192 | - if($this->expandedResult === null){ |
|
192 | + if($this->expandedResult === null) { |
|
193 | 193 | return null; |
194 | 194 | } |
195 | 195 | return $this->expandedResult; |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | assert($set instanceof ResourceSet, get_class($set)); |
149 | 149 | $type = $set->getResourceType(); |
150 | 150 | $properties = $this->getDeserialiser()->bulkDeserialise($type, $content); |
151 | - $properties = (object)$properties; |
|
151 | + $properties = (object) $properties; |
|
152 | 152 | |
153 | 153 | if ($isCreate) { |
154 | 154 | $result = $this->getWrapper()->createResourceforResourceSet($set, null, $properties); |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | for ($i = 0; $i < $numEntries; $i++) { |
334 | 334 | $targEntityInstance = $bulkResult[$i]; |
335 | 335 | $this->getWrapper()->hookSingleModel($sourceSet, $source, $targSet, $targEntityInstance, $propName); |
336 | - $key = $this->generateKeyDescriptor($targType, $targEntityInstance); |
|
336 | + $key = $this->generateKeyDescriptor($targType, $targEntityInstance); |
|
337 | 337 | $link->getExpandedResult()->getFeed()->entries[$i]->id = $key; |
338 | 338 | } |
339 | 339 | } |
@@ -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 | /** |
@@ -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); |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | $propTail = ResourcePropertyKind::RESOURCE_REFERENCE() == $propKind ? 'entry' : 'feed'; |
329 | 329 | $propType = 'application/atom+xml;type=' . $propTail; |
330 | 330 | $propName = $prop->getName(); |
331 | - $nuLink = new ODataLink( |
|
331 | + $nuLink = new ODataLink( |
|
332 | 332 | ODataConstants::ODATA_RELATED_NAMESPACE . $propName, |
333 | 333 | $propName, |
334 | 334 | $propType, |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | $odata->type = new ODataCategory($type); |
357 | 357 | $odata->propertyContent = $propertyContent; |
358 | 358 | $odata->isMediaLinkEntry = true === $resourceType->isMediaLinkEntry() ? true : null; |
359 | - $odata->editLink = new ODataLink('edit',$title, null, $relativeUri); |
|
359 | + $odata->editLink = new ODataLink('edit', $title, null, $relativeUri); |
|
360 | 360 | $odata->mediaLink = $mediaLink; |
361 | 361 | $odata->mediaLinks = $mediaLinks; |
362 | 362 | $odata->links = $links; |
@@ -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) { |