@@ -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 | /** |
@@ -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 |
@@ -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 |
@@ -125,7 +125,7 @@ |
||
125 | 125 | */ |
126 | 126 | public function setRole(?string $role): self |
127 | 127 | { |
128 | - if($role !== null && !isset($this->getType()->getNavigationProperty()[$role])){ |
|
128 | + if ($role !== null && !isset($this->getType()->getNavigationProperty()[$role])) { |
|
129 | 129 | throw new \InvalidArgumentException('If a roll is set on a assication End it should represent the navigation property on the attached type.'); |
130 | 130 | } |
131 | 131 | $this->role = $role; |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | $base = []; |
169 | 169 | $base[] = new AttributeContainer("Term", $this->getTerm()); |
170 | 170 | $base[] = new AttributeContainer("Qualifier", $this->getQualifier()); |
171 | - if( |
|
171 | + if ( |
|
172 | 172 | // $this->expression instanceof Expressions\Dynamic\TPathExpression || |
173 | 173 | $this->expression instanceof Expressions\Constant\StringConstant || |
174 | 174 | $this->expression instanceof Expressions\Constant\IntConstant || |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | $this->expression instanceof Expressions\Constant\DecimalConstant || |
177 | 177 | $this->expression instanceof Expressions\Constant\BoolConstant || |
178 | 178 | $this->expression instanceof Expressions\Constant\DateTimeConstant |
179 | - ){ |
|
179 | + ) { |
|
180 | 180 | $base[] = $this->expression; |
181 | 181 | } |
182 | 182 | return $base; |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | */ |
188 | 188 | public function getChildElements(): array |
189 | 189 | { |
190 | - if(!( |
|
190 | + if (!( |
|
191 | 191 | // $this->expression instanceof Expressions\Dynamic\TPathExpression || |
192 | 192 | $this->expression instanceof Expressions\Constant\StringConstant || |
193 | 193 | $this->expression instanceof Expressions\Constant\IntConstant || |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | $this->expression instanceof Expressions\Constant\DecimalConstant || |
196 | 196 | $this->expression instanceof Expressions\Constant\BoolConstant || |
197 | 197 | $this->expression instanceof Expressions\Constant\DateTimeConstant |
198 | - )){ |
|
198 | + )) { |
|
199 | 199 | return [$this->expression]; |
200 | 200 | } |
201 | 201 | return []; |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | */ |
115 | 115 | public function getAttributes(): array |
116 | 116 | { |
117 | - if( |
|
117 | + if ( |
|
118 | 118 | // $this->expression instanceof Expressions\Dynamic\TPathExpression || |
119 | 119 | $this->expression instanceof Expressions\Constant\StringConstant || |
120 | 120 | $this->expression instanceof Expressions\Constant\IntConstant || |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | $this->expression instanceof Expressions\Constant\DecimalConstant || |
123 | 123 | $this->expression instanceof Expressions\Constant\BoolConstant || |
124 | 124 | $this->expression instanceof Expressions\Constant\DateTimeConstant |
125 | - ){ |
|
125 | + ) { |
|
126 | 126 | return [$this->expression]; |
127 | 127 | } |
128 | 128 | return []; |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | */ |
134 | 134 | public function getChildElements(): array |
135 | 135 | { |
136 | - if(!( |
|
136 | + if (!( |
|
137 | 137 | // $this->expression instanceof Expressions\Dynamic\TPathExpression || |
138 | 138 | $this->expression instanceof Expressions\Constant\StringConstant || |
139 | 139 | $this->expression instanceof Expressions\Constant\IntConstant || |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | $this->expression instanceof Expressions\Constant\DecimalConstant || |
142 | 142 | $this->expression instanceof Expressions\Constant\BoolConstant || |
143 | 143 | $this->expression instanceof Expressions\Constant\DateTimeConstant |
144 | - )){ |
|
144 | + )) { |
|
145 | 145 | return [$this->expression]; |
146 | 146 | } |
147 | 147 | 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 |