@@ -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 | /** |
@@ -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; |