Passed
Pull Request — master (#156)
by Alex
02:44
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/Asserts.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
             );
36 36
         };
37 37
         assert(
38
-            $expectedReflection->getNumberOfRequiredParameters() ===  $actualReflection->getNumberOfRequiredParameters(),
38
+            $expectedReflection->getNumberOfRequiredParameters() === $actualReflection->getNumberOfRequiredParameters(),
39 39
             $messageBuilder('Incorrect Parameter Count')
40 40
         );
41 41
         if ($expectedReflection->hasReturnType()) {
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             $parameterString = '';
86 86
             if ($parameter->hasType()) {
87 87
                 $parameterString .= $parameter->getType()->allowsNull() ? '?' : '';
88
-                $parameterString .=$parameter->getType()->getName() . ' ';
88
+                $parameterString .= $parameter->getType()->getName() . ' ';
89 89
             }
90 90
             $parameterString .= $parameter->isVariadic() ? '...$' : '$';
91 91
             $parameterString .= $parameter->getName();
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.