@@ -9,10 +9,10 @@ |
||
| 9 | 9 | |
| 10 | 10 | class AccessorType extends Enum |
| 11 | 11 | { |
| 12 | - protected const Public = "Public"; |
|
| 12 | + protected const public = "Public"; |
|
| 13 | 13 | protected const Internal = "Internal"; |
| 14 | - protected const Protected = "Protected"; |
|
| 15 | - protected const Private = "Private"; |
|
| 14 | + protected const protected = "Protected"; |
|
| 15 | + protected const private = "Private"; |
|
| 16 | 16 | |
| 17 | 17 | public static $cgNamespace = "http://schemas.microsoft.com/ado/2006/04/codegeneration"; |
| 18 | 18 | } |
@@ -119,6 +119,6 @@ |
||
| 119 | 119 | |
| 120 | 120 | public function isAttribute(): bool |
| 121 | 121 | { |
| 122 | - return false; |
|
| 122 | + return false; |
|
| 123 | 123 | } |
| 124 | 124 | } |
@@ -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 | /** |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | /** |
| 85 | 85 | * @var PropertyRef $propertyRef |
| 86 | 86 | */ |
| 87 | - private $propertyRef ; |
|
| 87 | + private $propertyRef; |
|
| 88 | 88 | |
| 89 | 89 | public function __construct(string $role, PropertyRef $propertyRef) |
| 90 | 90 | { |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | */ |
| 151 | 151 | public function getDomName(): string |
| 152 | 152 | { |
| 153 | - return $this->isPrincipal ? 'Principal' :'Dependent'; |
|
| 153 | + return $this->isPrincipal ? 'Principal' : 'Dependent'; |
|
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | /** |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | * The following is an example of the Schema element: |
| 22 | 22 | * |
| 23 | 23 | * <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"> |
| 24 | - |
|
| 25 | 24 | * The following rules apply to the Schema element. |
| 26 | 25 | * - The CSDL document MUST have the Schema element as its root element. |
| 27 | 26 | * - The Namespace attribute is defined for each Schema element. Namespace is of type QualifiedName. A namespace is a |
@@ -37,8 +37,6 @@ |
||
| 37 | 37 | { |
| 38 | 38 | /** |
| 39 | 39 | * End can contain a maximum of one Documentation element. |
| 40 | - |
|
| 41 | - |
|
| 42 | 40 | */ |
| 43 | 41 | use HasDocumentation; |
| 44 | 42 | /** |
@@ -30,7 +30,6 @@ |
||
| 30 | 30 | * by the related EntitySet. An End element can contain a maximum of one Documentation element. |
| 31 | 31 | * - End can contain any number of AnnotationElement elements. |
| 32 | 32 | * - The child elements of End are to appear in this sequence: Documentation, AnnotationElement. |
| 33 | - |
|
| 34 | 33 | * @link https://www.odata.org/documentation/odata-version-3-0/common-schema-definition-language-csdl/#csdl12.3.1 |
| 35 | 34 | */ |
| 36 | 35 | class End extends EdmBase |
@@ -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, |
@@ -187,7 +187,7 @@ |
||
| 187 | 187 | public function getChildElements(): array |
| 188 | 188 | { |
| 189 | 189 | if (!( |
| 190 | - // $this->expression instanceof Expressions\Dynamic\TPathExpression || |
|
| 190 | + // $this->expression instanceof Expressions\Dynamic\TPathExpression || |
|
| 191 | 191 | $this->expression instanceof Expressions\Constant\StringConstant || |
| 192 | 192 | $this->expression instanceof Expressions\Constant\IntConstant || |
| 193 | 193 | $this->expression instanceof Expressions\Constant\FloatConstant || |