| @@ -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; | 
| @@ -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 | |
| @@ -39,7 +39,7 @@ | ||
| 39 | 39 | */ | 
| 40 | 40 | public function setPropertys(array $newProperties): self | 
| 41 | 41 |      { | 
| 42 | -        assert(array_reduce($newProperties, function($carry, $item) { return  $carry & $item instanceof ODataProperty; }, true)); | |
| 42 | +        assert(array_reduce($newProperties, function ($carry, $item) { return  $carry & $item instanceof ODataProperty; }, true)); | |
| 43 | 43 | $this->properties = $newProperties; | 
| 44 | 44 | return $this; | 
| 45 | 45 | } | 
| @@ -143,7 +143,7 @@ discard block | ||
| 143 | 143 | $absoluteUri = $this->getRequest()->getRequestUrl()->getUrlAsString(); | 
| 144 | 144 | |
| 145 | 145 | |
| 146 | -        $selfLink        = new ODataLink('self', $title, null, $relativeUri); | |
| 146 | +        $selfLink = new ODataLink('self', $title, null, $relativeUri); | |
| 147 | 147 | $title = new ODataTitle($title); | 
| 148 | 148 | $id = $absoluteUri; | 
| 149 | 149 | $updated = $this->getUpdated()->format(DATE_ATOM); | 
| @@ -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); | 
| @@ -174,7 +173,7 @@ discard block | ||
| 174 | 173 | ); | 
| 175 | 174 | } | 
| 176 | 175 | |
| 177 | - return new ODataFeed($id,$title,$selfLink,$rowCount,$nextLink,$entries,$updated,$baseURI); | |
| 176 | + return new ODataFeed($id, $title, $selfLink, $rowCount, $nextLink, $entries, $updated, $baseURI); | |
| 178 | 177 | } | 
| 179 | 178 | |
| 180 | 179 | /** | 
| @@ -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, | 
| @@ -687,7 +686,7 @@ discard block | ||
| 687 | 686 | $name = $propName; | 
| 688 | 687 | $typeName = null; | 
| 689 | 688 | $value = null; | 
| 690 | -            $raw                    = $result->{$propName}; | |
| 689 | +            $raw = $result->{$propName}; | |
| 691 | 690 |              if (static::isMatchPrimitive($resourceKind)) { | 
| 692 | 691 | $iType = $prop->getInstanceType(); | 
| 693 | 692 |                  if (!$iType instanceof IType) { | 
| @@ -704,7 +703,7 @@ discard block | ||
| 704 | 703 | $value = $this->primitiveToString($rType, $raw); | 
| 705 | 704 | } | 
| 706 | 705 |              } elseif (ResourcePropertyKind::COMPLEX_TYPE() == $resourceKind) { | 
| 707 | - $rType = $prop->getResourceType(); | |
| 706 | + $rType = $prop->getResourceType(); | |
| 708 | 707 | $typeName = $rType->getFullName(); | 
| 709 | 708 |                  if (null !== $raw) { | 
| 710 | 709 | $value = $this->writeComplexValue($rType, $raw, $propName); | 
| @@ -734,7 +733,7 @@ discard block | ||
| 734 | 733 | return false; | 
| 735 | 734 | } | 
| 736 | 735 | |
| 737 | - return 0 == ($value % 4); | |
| 736 | + return 0 == ($value%4); | |
| 738 | 737 | } | 
| 739 | 738 | |
| 740 | 739 | /** | 
| @@ -798,7 +797,7 @@ discard block | ||
| 798 | 797 |                          $nuLink->setType('application/atom+xml;type=feed'); | 
| 799 | 798 | $expandedResult = $this->writeTopLevelElements($result); | 
| 800 | 799 | } | 
| 801 | -                    if(null !== $expandedResult) { | |
| 800 | +                    if (null !== $expandedResult) { | |
| 802 | 801 | $nuLink->setExpandedResult(new ODataExpandedResult($expandedResult)); | 
| 803 | 802 | } | 
| 804 | 803 | } | 
| @@ -865,7 +864,7 @@ discard block | ||
| 865 | 864 | ODataConstants::HTTPQUERY_STRING_EXPAND, | 
| 866 | 865 | ODataConstants::HTTPQUERY_STRING_ORDERBY, | 
| 867 | 866 | ODataConstants::HTTPQUERY_STRING_INLINECOUNT, | 
| 868 | -            ODataConstants::HTTPQUERY_STRING_SELECT,] as $queryOption) { | |
| 867 | +            ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) { | |
| 869 | 868 | $value = $this->getService()->getHost()->getQueryStringItem($queryOption); | 
| 870 | 869 |              if (null !== $value) { | 
| 871 | 870 |                  if (null !== $queryParameterString) { | 
| @@ -1009,7 +1008,7 @@ discard block | ||
| 1009 | 1008 |              if (!is_object($result)) { | 
| 1010 | 1009 |                  throw new InvalidOperationException('Supplied $customObject must be an object'); | 
| 1011 | 1010 | } | 
| 1012 | - $internalContent = $this->writeComplexValue($resourceType, $result); | |
| 1011 | + $internalContent = $this->writeComplexValue($resourceType, $result); | |
| 1013 | 1012 | $value = $internalContent; | 
| 1014 | 1013 | } | 
| 1015 | 1014 | |
| @@ -1035,7 +1034,7 @@ discard block | ||
| 1035 | 1034 |      { | 
| 1036 | 1035 | $result = $bagValue->results; | 
| 1037 | 1036 | |
| 1038 | - $odataProperty = new ODataProperty( | |
| 1037 | + $odataProperty = new ODataProperty( | |
| 1039 | 1038 | $propertyName, | 
| 1040 | 1039 |              'Collection(' . $resourceType->getFullName() . ')', | 
| 1041 | 1040 | $this->writeBagValue($resourceType, $result) | 
| @@ -100,7 +100,7 @@ | ||
| 100 | 100 | */ | 
| 101 | 101 | public function setEntries(array $entries): self | 
| 102 | 102 |      { | 
| 103 | -        assert(array_reduce($entries, function($carry, $item) { return  $carry & $item instanceof ODataEntry; }, true)); | |
| 103 | +        assert(array_reduce($entries, function ($carry, $item) { return  $carry & $item instanceof ODataEntry; }, true)); | |
| 104 | 104 | $this->entries = $entries; | 
| 105 | 105 | return $this; | 
| 106 | 106 | } |