@@ -25,6 +25,6 @@ |
||
25 | 25 | */ |
26 | 26 | public function __construct(?string $qualifiedName, ILocation $location) |
27 | 27 | { |
28 | - parent::__construct($qualifiedName, [new EdmError($location, EdmErrorCode::BadCyclicComplex(), StringConst::Bad_CyclicComplex($qualifiedName)) ]); |
|
28 | + parent::__construct($qualifiedName, [new EdmError($location, EdmErrorCode::BadCyclicComplex(), StringConst::Bad_CyclicComplex($qualifiedName))]); |
|
29 | 29 | } |
30 | 30 | } |
@@ -20,6 +20,6 @@ |
||
20 | 20 | { |
21 | 21 | public function __construct(?string $qualifiedName, ILocation $location) |
22 | 22 | { |
23 | - parent::__construct($qualifiedName, [new EdmError($location, EdmErrorCode::BadCyclicEntity(), StringConst::Bad_CyclicEntity($qualifiedName)) ]); |
|
23 | + parent::__construct($qualifiedName, [new EdmError($location, EdmErrorCode::BadCyclicEntity(), StringConst::Bad_CyclicEntity($qualifiedName))]); |
|
24 | 24 | } |
25 | 25 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | /** |
34 | 34 | * @var SplObjectStorage|array<IStructuredType, IStructuredType[]> |
35 | 35 | */ |
36 | - private $derivedTypeMappings ; |
|
36 | + private $derivedTypeMappings; |
|
37 | 37 | public function __construct(array $referencedModels = [], EdmDirectValueAnnotationsManager $annotationsManager = null) |
38 | 38 | { |
39 | 39 | $annotationsManager = $annotationsManager ?? new EdmDirectValueAnnotationsManager(); |
@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | private $isBindable; |
38 | 38 | |
39 | - public function __construct(IEntityContainer $container, string $name, ?ITypeReference $returnType, IExpression $entitySet = null, bool $isSideEffecting = true, bool $isComposable = false, bool $isBindable= false) |
|
39 | + public function __construct(IEntityContainer $container, string $name, ?ITypeReference $returnType, IExpression $entitySet = null, bool $isSideEffecting = true, bool $isComposable = false, bool $isBindable = false) |
|
40 | 40 | { |
41 | 41 | parent::__construct($name, $returnType); |
42 | 42 | $this->container = $container; |
@@ -37,7 +37,7 @@ |
||
37 | 37 | */ |
38 | 38 | public function __construct(string $namespaceName, string $name, $type) |
39 | 39 | { |
40 | - $type = ($type instanceof PrimitiveTypeKind) ? EdmCoreModel::getInstance()->GetPrimitive($type, true): $type; |
|
40 | + $type = ($type instanceof PrimitiveTypeKind) ? EdmCoreModel::getInstance()->GetPrimitive($type, true) : $type; |
|
41 | 41 | assert($type instanceof ITypeReference); |
42 | 42 | parent::__construct($name); |
43 | 43 | $this->type = $type; |
@@ -293,8 +293,7 @@ |
||
293 | 293 | } |
294 | 294 | |
295 | 295 | $newAnnotation = $value != null ? |
296 | - new EdmDirectValueAnnotation($namespaceName, $localName, $value) : |
|
297 | - new EdmDirectValueAnnotation($namespaceName, $localName); |
|
296 | + new EdmDirectValueAnnotation($namespaceName, $localName, $value) : new EdmDirectValueAnnotation($namespaceName, $localName); |
|
298 | 297 | |
299 | 298 | if ($transientAnnotations == null) { |
300 | 299 | $transientAnnotations = $newAnnotation; |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | public function getExpressionKind(): ExpressionKind |
44 | 44 | { |
45 | - return ExpressionKind::Null(); |
|
45 | + return ExpressionKind::null(); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | */ |
51 | 51 | public function getValueKind(): ValueKind |
52 | 52 | { |
53 | - return ValueKind::Null(); |
|
53 | + return ValueKind::null(); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
@@ -24,7 +24,7 @@ |
||
24 | 24 | public function __construct($value, ?IEnumTypeReference $type = null) |
25 | 25 | { |
26 | 26 | parent::__construct($type); |
27 | - $value = $value instanceof IEnumMember ? $value->getValue(): $value; |
|
27 | + $value = $value instanceof IEnumMember ? $value->getValue() : $value; |
|
28 | 28 | assert($value instanceof IPrimitiveValue); |
29 | 29 | $this->value = $value; |
30 | 30 | } |
@@ -39,7 +39,7 @@ |
||
39 | 39 | public function __construct(IPrimitiveType $definition, bool $isNullable, bool $isUnbounded = false, ?int $maxLength = null, ?bool $isFixedLength = null) |
40 | 40 | { |
41 | 41 | parent::__construct($definition, $isNullable); |
42 | - $this->isUnbounded =$isUnbounded; |
|
42 | + $this->isUnbounded = $isUnbounded; |
|
43 | 43 | $this->maxLength = $maxLength; |
44 | 44 | $this->isFixedLength = $isFixedLength; |
45 | 45 | } |