@@ -20,7 +20,7 @@ |
||
20 | 20 | |
21 | 21 | $inboundRequestHeaders = $this->setupHeaders(strtok("\n")); |
22 | 22 | |
23 | - $RequestBody = trim($RequestBody); |
|
23 | + $RequestBody = trim($RequestBody); |
|
24 | 24 | |
25 | 25 | $host = $_SERVER['HTTP_HOST'] ?? $_SERVER['SERVER_NAME'] ?? $_SERVER['SERVER_ADDR'] ?? 'localhost'; |
26 | 26 | $protocol = $_SERVER['PROTOCOL'] = isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) ? 'https' : 'http'; |
@@ -414,7 +414,7 @@ |
||
414 | 414 | |
415 | 415 | $textLen = strlen($text); |
416 | 416 | if ($textIndex >= $textLen || '.' != $text[$textIndex]) { |
417 | - return $qualityValue * 1000; |
|
417 | + return $qualityValue*1000; |
|
418 | 418 | } |
419 | 419 | |
420 | 420 | ++$textIndex; |
@@ -102,7 +102,7 @@ |
||
102 | 102 | public static function validateWithoutPrefix(string $value, &$outValue) |
103 | 103 | { |
104 | 104 | $length = strlen($value); |
105 | - if (0 == $length || 0 != $length % 2) { |
|
105 | + if (0 == $length || 0 != $length%2) { |
|
106 | 106 | return false; |
107 | 107 | } |
108 | 108 |
@@ -66,7 +66,7 @@ |
||
66 | 66 | $type1 = $end1->getResourceType(); |
67 | 67 | $type2 = $end2->getResourceType(); |
68 | 68 | |
69 | - if ($type1 === $type2 && $prop1 === $prop2) { |
|
69 | + if ($type1 === $type2 && $prop1 === $prop2) { |
|
70 | 70 | throw new InvalidArgumentException( |
71 | 71 | Messages::resourceAssociationSetSelfReferencingAssociationCannotBeBiDirectional() |
72 | 72 | ); |
@@ -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); |
@@ -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) { |