@@ -389,7 +389,7 @@ |
||
389 | 389 | { |
390 | 390 | return [ |
391 | 391 | new AttributeContainer('Name', $this->getName()), |
392 | - new AttributeContainer('EntitySet', $this->getEntitySet(),true), |
|
392 | + new AttributeContainer('EntitySet', $this->getEntitySet(), true), |
|
393 | 393 | new AttributeContainer('EntitySetPath', $this->getEntitySetPath(), true), |
394 | 394 | new AttributeContainer('ReturnType', $this->getReturnType()->getType(), true, OdataVersions::TWO(), [OdataVersions::THREE()]), |
395 | 395 | ]; |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | /** |
83 | 83 | * @var PropertyRef $propertyRef |
84 | 84 | */ |
85 | - private $propertyRef ; |
|
85 | + private $propertyRef; |
|
86 | 86 | |
87 | 87 | public function __construct(string $role, PropertyRef $propertyRef) |
88 | 88 | { |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | */ |
149 | 149 | public function getDomName(): string |
150 | 150 | { |
151 | - return $this->isPrincipal ? 'Principal' :'Dependent'; |
|
151 | + return $this->isPrincipal ? 'Principal' : 'Dependent'; |
|
152 | 152 | } |
153 | 153 | |
154 | 154 | /** |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | */ |
113 | 113 | public function getAttributes(): array |
114 | 114 | { |
115 | - if( |
|
115 | + if ( |
|
116 | 116 | $this->expression instanceof Expressions\Dynamic\TPathExpression || |
117 | 117 | $this->expression instanceof Expressions\Constant\StringConstant || |
118 | 118 | $this->expression instanceof Expressions\Constant\IntConstant || |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | $this->expression instanceof Expressions\Constant\DecimalConstant || |
121 | 121 | $this->expression instanceof Expressions\Constant\BoolConstant || |
122 | 122 | $this->expression instanceof Expressions\Constant\DateTimeConstant |
123 | - ){ |
|
123 | + ) { |
|
124 | 124 | return [$this->expression]; |
125 | 125 | } |
126 | 126 | return []; |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | */ |
132 | 132 | public function getChildElements(): array |
133 | 133 | { |
134 | - if(!( |
|
134 | + if (!( |
|
135 | 135 | $this->expression instanceof Expressions\Dynamic\TPathExpression || |
136 | 136 | $this->expression instanceof Expressions\Constant\StringConstant || |
137 | 137 | $this->expression instanceof Expressions\Constant\IntConstant || |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | $this->expression instanceof Expressions\Constant\DecimalConstant || |
140 | 140 | $this->expression instanceof Expressions\Constant\BoolConstant || |
141 | 141 | $this->expression instanceof Expressions\Constant\DateTimeConstant |
142 | - )){ |
|
142 | + )) { |
|
143 | 143 | return [$this->expression]; |
144 | 144 | } |
145 | 145 | return []; |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | $base = []; |
167 | 167 | $base[] = new AttributeContainer("Term", $this->getTerm()); |
168 | 168 | $base[] = new AttributeContainer("Qualifier", $this->getQualifier()); |
169 | - if( |
|
169 | + if ( |
|
170 | 170 | $this->expression instanceof Expressions\Dynamic\TPathExpression || |
171 | 171 | $this->expression instanceof Expressions\Constant\StringConstant || |
172 | 172 | $this->expression instanceof Expressions\Constant\IntConstant || |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | $this->expression instanceof Expressions\Constant\DecimalConstant || |
175 | 175 | $this->expression instanceof Expressions\Constant\BoolConstant || |
176 | 176 | $this->expression instanceof Expressions\Constant\DateTimeConstant |
177 | - ){ |
|
177 | + ) { |
|
178 | 178 | $base[] = $this->expression; |
179 | 179 | } |
180 | 180 | return $base; |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | */ |
186 | 186 | public function getChildElements(): array |
187 | 187 | { |
188 | - if(!( |
|
188 | + if (!( |
|
189 | 189 | $this->expression instanceof Expressions\Dynamic\TPathExpression || |
190 | 190 | $this->expression instanceof Expressions\Constant\StringConstant || |
191 | 191 | $this->expression instanceof Expressions\Constant\IntConstant || |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | $this->expression instanceof Expressions\Constant\DecimalConstant || |
194 | 194 | $this->expression instanceof Expressions\Constant\BoolConstant || |
195 | 195 | $this->expression instanceof Expressions\Constant\DateTimeConstant |
196 | - )){ |
|
196 | + )) { |
|
197 | 197 | return [$this->expression]; |
198 | 198 | } |
199 | 199 | return []; |
@@ -43,7 +43,7 @@ |
||
43 | 43 | unset($this->property[$offset]); |
44 | 44 | } |
45 | 45 | |
46 | - public function __toArray(){ |
|
46 | + public function __toArray() { |
|
47 | 47 | return $this->property; |
48 | 48 | } |
49 | 49 | } |
50 | 50 | \ No newline at end of file |
@@ -42,7 +42,7 @@ |
||
42 | 42 | unset($this->property[$offset]); |
43 | 43 | } |
44 | 44 | |
45 | - public function __toArray(){ |
|
45 | + public function __toArray() { |
|
46 | 46 | return $this->property; |
47 | 47 | } |
48 | 48 | } |
49 | 49 | \ No newline at end of file |
@@ -29,11 +29,11 @@ |
||
29 | 29 | /** |
30 | 30 | * @return array|AttributeContainer[] |
31 | 31 | */ |
32 | - public abstract function getAttributes(): array ; |
|
32 | + public abstract function getAttributes(): array; |
|
33 | 33 | |
34 | 34 | /** |
35 | 35 | * @return array|DomBase[] |
36 | 36 | */ |
37 | - public abstract function getChildElements(): array ; |
|
37 | + public abstract function getChildElements(): array; |
|
38 | 38 | |
39 | 39 | } |
40 | 40 | \ No newline at end of file |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | public function getAttributeValue(): ?string; |
13 | 13 | |
14 | - public function getAttributeNullCheck():bool ; |
|
14 | + public function getAttributeNullCheck():bool; |
|
15 | 15 | |
16 | 16 | public function getAttributeForVersion(): OdataVersions; |
17 | 17 |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | * In this specification the namespace prefix Edm is used to represent the Entity Data Model namespace, however |
46 | 46 | * the prefix name is not prescriptive. |
47 | 47 | */ |
48 | - private const V1EdmNamespace= 'http://schemas.microsoft.com/ado/2006/04/edm'; |
|
48 | + private const V1EdmNamespace = 'http://schemas.microsoft.com/ado/2006/04/edm'; |
|
49 | 49 | private const V2EdmNamespace = 'http://schemas.microsoft.com/ado/2008/09/edm'; |
50 | 50 | private const V3EdmNamespace = 'http://schemas.microsoft.com/ado/2009/11/edm'; |
51 | 51 | /** |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | public function __construct(OdataVersions $version) |
72 | 72 | { |
73 | - switch($version) { |
|
73 | + switch ($version) { |
|
74 | 74 | case OdataVersions::ONE(): |
75 | 75 | $this->edmNamespace = self::V1EdmNamespace; |
76 | 76 | break; |
@@ -88,19 +88,19 @@ discard block |
||
88 | 88 | } |
89 | 89 | |
90 | 90 | |
91 | - public function getEdmNamespace(){ |
|
91 | + public function getEdmNamespace() { |
|
92 | 92 | return $this->edmNamespace; |
93 | 93 | } |
94 | - public function getEdmxNamespace(){ |
|
94 | + public function getEdmxNamespace() { |
|
95 | 95 | return $this->edmxNamespace; |
96 | 96 | } |
97 | - public function getMetadataNamespace(){ |
|
97 | + public function getMetadataNamespace() { |
|
98 | 98 | return $this->metadataNamespace; |
99 | 99 | } |
100 | - public function getDataServiceNamespace(){ |
|
100 | + public function getDataServiceNamespace() { |
|
101 | 101 | return $this->dataServiceNamespace; |
102 | 102 | } |
103 | - public function getAnnotationsNamespace(){ |
|
103 | + public function getAnnotationsNamespace() { |
|
104 | 104 | return $this->annotationsNamespace; |
105 | 105 | } |
106 | 106 | } |
107 | 107 | \ No newline at end of file |