@@ -24,7 +24,7 @@ |
||
24 | 24 | $regexBase = '/(is)(%s)/m'; |
25 | 25 | $regexFull = sprintf($regexBase, implode('$|', array_keys($array))); |
26 | 26 | preg_match($regexFull, $name, $match); |
27 | - if (count($match)>0 && $match[0] === $name) { |
|
27 | + if (count($match) > 0 && $match[0] === $name) { |
|
28 | 28 | return $this->{$match[1] . 'Flag'}($array[$match[2]], $arguments[0] ?? null); |
29 | 29 | } |
30 | 30 | throw new BadMethodCallException(sprintf('Enum %s not found on %s', $name, get_class($this))); |
@@ -17,5 +17,5 @@ |
||
17 | 17 | /** |
18 | 18 | * @return bool gets a value indicating whether the value of this boolean value is true or false |
19 | 19 | */ |
20 | - public function getValue(): bool ; |
|
20 | + public function getValue(): bool; |
|
21 | 21 | } |
@@ -19,5 +19,5 @@ |
||
19 | 19 | /** |
20 | 20 | * @return DateTime gets the definition of this datetime value |
21 | 21 | */ |
22 | - public function getValue(): DateTime ; |
|
22 | + public function getValue(): DateTime; |
|
23 | 23 | } |
@@ -17,5 +17,5 @@ |
||
17 | 17 | /** |
18 | 18 | * @return float gets the definition of this floating value |
19 | 19 | */ |
20 | - public function getValue(): float ; |
|
20 | + public function getValue(): float; |
|
21 | 21 | } |
@@ -17,5 +17,5 @@ |
||
17 | 17 | /** |
18 | 18 | * @return float gets the definition of this decimal value |
19 | 19 | */ |
20 | - public function getValue(): float ; |
|
20 | + public function getValue(): float; |
|
21 | 21 | } |
@@ -17,5 +17,5 @@ |
||
17 | 17 | /** |
18 | 18 | * @return string[] gets the definition of this binary value |
19 | 19 | */ |
20 | - public function getValue(): array ; |
|
20 | + public function getValue(): array; |
|
21 | 21 | } |
@@ -27,8 +27,7 @@ |
||
27 | 27 | public static function Validate(IModel $root, $versionOrRuleset, array &$errors): bool |
28 | 28 | { |
29 | 29 | $ruleSet = $versionOrRuleset instanceof Version ? |
30 | - ValidationRuleSet::getEdmModelRuleSet($versionOrRuleset) : |
|
31 | - $versionOrRuleset; |
|
30 | + ValidationRuleSet::getEdmModelRuleSet($versionOrRuleset) : $versionOrRuleset; |
|
32 | 31 | assert($ruleSet instanceof ValidationRuleSet); |
33 | 32 | $errors = InterfaceValidator::ValidateModelStructureAndSemantics($root, $ruleSet); |
34 | 33 | return count($errors) === 0; |
@@ -96,7 +96,7 @@ |
||
96 | 96 | if (count($set1) != count($set2)) { |
97 | 97 | return false; |
98 | 98 | } |
99 | - for ($i = count($set1) -1; $i > -1; --$i) { |
|
99 | + for ($i = count($set1) - 1; $i > -1; --$i) { |
|
100 | 100 | if ($set1[$i] !== $set2[$i]) { |
101 | 101 | return false; |
102 | 102 | } |
@@ -20,11 +20,11 @@ |
||
20 | 20 | } |
21 | 21 | public static function getCycleSentinel(): ?stdClass |
22 | 22 | { |
23 | - return (object)[]; |
|
23 | + return (object) []; |
|
24 | 24 | } |
25 | 25 | public static function getSecondPassCycleSentinel(): ?stdClass |
26 | 26 | { |
27 | - return (object)[]; |
|
27 | + return (object) []; |
|
28 | 28 | } |
29 | 29 | public static function GetBoxed(bool $value) |
30 | 30 | { |