Passed
Pull Request — master (#156)
by Alex
03:41
created
src/Helpers/PrimitiveTypeReferenceHelpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,6 +39,6 @@
 block discarded – undo
39 39
     public function PrimitiveKind(): PrimitiveTypeKind
40 40
     {
41 41
         $primitive = $this->PrimitiveDefinition();
42
-        return $primitive !== null ? $primitive->getPrimitiveKind(): PrimitiveTypeKind::None();
42
+        return $primitive !== null ? $primitive->getPrimitiveKind() : PrimitiveTypeKind::None();
43 43
     }
44 44
 }
Please login to merge, or discard this patch.
src/ModelVisitorConcerns/VisitExpressions.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
                 assert($expression instanceof  IGuidConstantExpression);
111 111
                 $this->processGuidConstantExpression($expression);
112 112
                 break;
113
-            case ExpressionKind::If():
113
+            case ExpressionKind::If ():
114 114
                 assert($expression instanceof  IIfExpression);
115 115
                 $this->processIfExpression($expression);
116 116
                 break;
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
                 assert($expression instanceof  IGuidConstantExpression);
111 111
                 $this->processGuidConstantExpression($expression);
112 112
                 break;
113
-            case ExpressionKind::If():
113
+            case ExpressionKind::if():
114 114
                 assert($expression instanceof  IIfExpression);
115 115
                 $this->processIfExpression($expression);
116 116
                 break;
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
                 assert($expression instanceof  ILabeledExpression);
135 135
                 $this->processLabeledExpression($expression);
136 136
                 break;
137
-            case ExpressionKind::Null():
137
+            case ExpressionKind::null():
138 138
                 assert($expression instanceof  INullExpression);
139 139
                 $this->processNullConstantExpression($expression);
140 140
                 break;
Please login to merge, or discard this patch.
src/Library/EdmProperty.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     /**
30 30
      * @var array<IDependent>
31 31
      */
32
-    protected $dependents =[];
32
+    protected $dependents = [];
33 33
     /**
34 34
      * @var ITypeReference
35 35
      */
Please login to merge, or discard this patch.
src/Library/Core/EdmCoreModel.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
     /**
168 168
      * @return string gets the namespace of this core model
169 169
      */
170
-    public static function Namespace(): string
170
+    public static function namespace(): string
171 171
     {
172 172
         return 'Edm';
173 173
     }
Please login to merge, or discard this patch.
src/Library/Internal/Ambiguous/AmbiguousBinding.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     public function addBinding(INamedElement $binding): void
49 49
     {
50 50
         if (!in_array($binding, $this->bindings)) {
51
-            $this->bindings[] =  $binding;
51
+            $this->bindings[] = $binding;
52 52
         }
53 53
     }
54 54
 
Please login to merge, or discard this patch.
src/Library/Internal/Bad/BadLabeledExpression.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      */
43 43
     public function getExpression(): IExpression
44 44
     {
45
-        $expression = $this->expressionCache->getValue($this, [$this,'ComputeExpression']);
45
+        $expression = $this->expressionCache->getValue($this, [$this, 'ComputeExpression']);
46 46
         assert($expression instanceof IExpression);
47 47
         return $expression;
48 48
     }
Please login to merge, or discard this patch.
src/Library/Internal/Bad/BadProperty.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
      */
74 74
     public function getType(): ?ITypeReference
75 75
     {
76
-        return $this->type->getValue($this, [$this,'ComputeType']);
76
+        return $this->type->getValue($this, [$this, 'ComputeType']);
77 77
     }
78 78
 
79 79
     /**
Please login to merge, or discard this patch.
src/Library/Internal/Bad/BadCollectionType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public function __construct(array $errors)
25 25
     {
26 26
         parent::__construct($errors);
27
-        $this->elementType =  new BadTypeReference(new BadType($errors), true);
27
+        $this->elementType = new BadTypeReference(new BadType($errors), true);
28 28
     }
29 29
     public function getTypeKind(): TypeKind
30 30
     {
Please login to merge, or discard this patch.
src/Library/EdmValueTerm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.