@@ -29,10 +29,10 @@ |
||
29 | 29 | /** |
30 | 30 | * @return array|AttributeContainer[] |
31 | 31 | */ |
32 | - abstract public function getAttributes(): array ; |
|
32 | + abstract public function getAttributes(): array; |
|
33 | 33 | |
34 | 34 | /** |
35 | 35 | * @return array|DomBase[] |
36 | 36 | */ |
37 | - abstract public function getChildElements(): array ; |
|
37 | + abstract public function getChildElements(): array; |
|
38 | 38 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | * In this specification the namespace prefix Edm is used to represent the Entity Data Model namespace, however |
47 | 47 | * the prefix name is not prescriptive. |
48 | 48 | */ |
49 | - private const V1EdmNamespace= 'http://schemas.microsoft.com/ado/2006/04/edm'; |
|
49 | + private const V1EdmNamespace = 'http://schemas.microsoft.com/ado/2006/04/edm'; |
|
50 | 50 | private const V2EdmNamespace = 'http://schemas.microsoft.com/ado/2008/09/edm'; |
51 | 51 | private const V3EdmNamespace = 'http://schemas.microsoft.com/ado/2009/11/edm'; |
52 | 52 | /** |
@@ -19,7 +19,6 @@ |
||
19 | 19 | * The following is an example of the Schema element: |
20 | 20 | * |
21 | 21 | * <Schema Alias="Model" Namespace="Test.Simple.Model" xmlns:edm="http://schemas.microsoft.com/ado/2009/11/edm" xmlns="http://schemas.microsoft.com/ado/2009/11/edm"> |
22 | - |
|
23 | 22 | * The following rules apply to the Schema element. |
24 | 23 | * - The CSDL document MUST have the Schema element as its root element. |
25 | 24 | * - The Namespace attribute is defined for each Schema element. Namespace is of type QualifiedName. A namespace is a |
@@ -28,7 +28,6 @@ |
||
28 | 28 | * by the related EntitySet. An End element can contain a maximum of one Documentation element. |
29 | 29 | * - End can contain any number of AnnotationElement elements. |
30 | 30 | * - The child elements of End are to appear in this sequence: Documentation, AnnotationElement. |
31 | - |
|
32 | 31 | * @link https://www.odata.org/documentation/odata-version-3-0/common-schema-definition-language-csdl/#csdl12.3.1 |
33 | 32 | */ |
34 | 33 | class End extends EdmBase |
@@ -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 | /** |
@@ -97,8 +97,7 @@ |
||
97 | 97 | new AttributeContainer('Type', strval($containerFor)) |
98 | 98 | ]; |
99 | 99 | return $containerFor instanceof IScalarType ? |
100 | - array_merge($this->getAttributesHasFacets(), $baseAttribute) : |
|
101 | - $baseAttribute; |
|
100 | + array_merge($this->getAttributesHasFacets(), $baseAttribute) : $baseAttribute; |
|
102 | 101 | } |
103 | 102 | |
104 | 103 | /** |
@@ -98,8 +98,7 @@ |
||
98 | 98 | new AttributeContainer('Type', $this->getType()->getName()) |
99 | 99 | ]; |
100 | 100 | return $this->getType() instanceof IScalarType ? |
101 | - array_merge($this->getAttributesHasFacets(), $baseAttribute) : |
|
102 | - $baseAttribute; |
|
101 | + array_merge($this->getAttributesHasFacets(), $baseAttribute) : $baseAttribute; |
|
103 | 102 | } |
104 | 103 | |
105 | 104 | /** |
@@ -35,8 +35,6 @@ |
||
35 | 35 | { |
36 | 36 | /** |
37 | 37 | * End can contain a maximum of one Documentation element. |
38 | - |
|
39 | - |
|
40 | 38 | */ |
41 | 39 | use HasDocumentation; |
42 | 40 | /** |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | /** |
161 | 161 | * @var PropertyRef[]|KeyElement $key |
162 | 162 | */ |
163 | - private $key ; |
|
163 | + private $key; |
|
164 | 164 | |
165 | 165 | /** |
166 | 166 | * @var PropertyHolder|Property[] $property EntityTypeProperty child elements are uniquely named within the |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | /** |
173 | 173 | * @var NavigationPropertyHolder|NavigationProperty[] $navigationProperty |
174 | 174 | */ |
175 | - private $navigationProperty ; |
|
175 | + private $navigationProperty; |
|
176 | 176 | |
177 | 177 | public function __construct( |
178 | 178 | string $name, |