Passed
Pull Request — master (#157)
by Alex
02:52
created
src/Csdl/Internal/Semantics/BadElements/UnresolvedFunction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
      */
101 101
     public function getSchemaElementKind(): SchemaElementKind
102 102
     {
103
-        return SchemaElementKind::Function();
103
+        return SchemaElementKind::Function ();
104 104
     }
105 105
 
106 106
     /**
Please login to merge, or discard this patch.
src/Internal/RegistrationHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     ) {
48 48
         $qualifiedName = $element->FullName();
49 49
         switch ($element->getSchemaElementKind()) {
50
-            case SchemaElementKind::Function():
50
+            case SchemaElementKind::Function ():
51 51
                 assert($element instanceof IFunction);
52 52
                 self::AddFunction($element, $qualifiedName, $functionGroupDictionary);
53 53
                 break;
Please login to merge, or discard this patch.
src/Helpers/VocabularyAnnotationHelpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
          * @var IVocabularyAnnotation $annotation
46 46
          */
47 47
         $annotation = $this;
48
-        $model->SetAnnotationValue($annotation, EdmConstants::InternalUri, CsdlConstants::AnnotationSerializationLocationAnnotation, (object)$location);
48
+        $model->SetAnnotationValue($annotation, EdmConstants::InternalUri, CsdlConstants::AnnotationSerializationLocationAnnotation, (object) $location);
49 49
     }
50 50
 
51 51
     /**
Please login to merge, or discard this patch.
src/Helpers/EdmElementComparer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 
144 144
         $thisTypeKeys  = array_keys($thisFunction->getParameters());
145 145
         $otherTypeKeys = array_keys($otherFunction->getParameters());
146
-        $keyCount      =  count($thisTypeKeys);
146
+        $keyCount      = count($thisTypeKeys);
147 147
         for ($i = 0; $i < $keyCount; ++$i) {
148 148
             if (
149 149
             !self::isEquivalentTo(
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 
212 212
         $thisTypeKeys  = array_keys($thisType->getDeclaredProperties());
213 213
         $otherTypeKeys = array_keys($otherType->getDeclaredProperties());
214
-        $keyCount      =  count($thisTypeKeys);
214
+        $keyCount      = count($thisTypeKeys);
215 215
         for ($i = 0; $i < $keyCount; ++$i) {
216 216
             if (
217 217
             !self::isEquivalentTo(
Please login to merge, or discard this patch.
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/Helpers/ModelHelpers.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     // Otherwise, changes to the dictionary durring serialization would result in an invalid or inconsistent output.
43 43
     public function GetNamespaceAliases(): array
44 44
     {
45
-        return $this->GetAnnotationValue('array', $this, EdmConstants::InternalUri, CsdlConstants::NamespaceAliasAnnotation) ??[];
45
+        return $this->GetAnnotationValue('array', $this, EdmConstants::InternalUri, CsdlConstants::NamespaceAliasAnnotation) ?? [];
46 46
     }
47 47
     /**
48 48
      * Sets an annotation value for an EDM element. If the value is null, no annotation is added and an existing
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
      */
248 248
     public function GetNamespacePrefixMappings(): array
249 249
     {
250
-        return $this->GetAnnotationValue('array', $this, EdmConstants::InternalUri, CsdlConstants::NamespacePrefixAnnotation)??[];
250
+        return $this->GetAnnotationValue('array', $this, EdmConstants::InternalUri, CsdlConstants::NamespacePrefixAnnotation) ?? [];
251 251
     }
252 252
 
253 253
 
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
         $navigationPropertyMappings = $model->GetAnnotationValue(SplObjectStorage::class, $entitySet, EdmConstants::InternalUri, CsdlConstants::AssociationSetNameAnnotation);
400 400
         assert($navigationPropertyMappings instanceof SplObjectStorage || $navigationPropertyMappings === null);
401 401
         if ($navigationPropertyMappings !== null && $navigationPropertyMappings->offsetExists($property)) {
402
-            $associationSetName = $navigationPropertyMappings->offsetGet($property) ;
402
+            $associationSetName = $navigationPropertyMappings->offsetGet($property);
403 403
         } else {
404 404
             $associationSetName = $model->GetAssociationName($property) . 'Set';
405 405
         }
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/VisitElements.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
          * @var EdmModelVisitor $this
39 39
          */
40 40
         switch ($element->getSchemaElementKind()) {
41
-            case SchemaElementKind::Function():
41
+            case SchemaElementKind::Function ():
42 42
                 assert($element instanceof IFunction);
43 43
                 $this->processFunction($element);
44 44
                 break;
Please login to merge, or discard this patch.
src/ModelVisitorConcerns/VisitExpressions.php 1 patch
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.