Passed
Pull Request — master (#44)
by Alex
03:03
created
src/Edm/Validation/Internal/InterfaceValidator/VisitorOfIExpression.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         $this->lookup[ExpressionKind::ValueTermReference()->getValue()]         = IValueTermReferenceExpression::class;
62 62
         $this->lookup[ExpressionKind::EntitySetReference()->getValue()]         = IEntitySetReferenceExpression::class;
63 63
         $this->lookup[ExpressionKind::EnumMemberReference()->getValue()]        = IEnumMemberReferenceExpression::class;
64
-        $this->lookup[ExpressionKind::If()->getValue()]                         = IIfExpression::class;
64
+        $this->lookup[ExpressionKind::If ()->getValue()]                         = IIfExpression::class;
65 65
         $this->lookup[ExpressionKind::AssertType()->getValue()]                 = IAssertTypeExpression::class;
66 66
         $this->lookup[ExpressionKind::IsType()->getValue()]                     = IIsTypeExpression::class;
67 67
         $this->lookup[ExpressionKind::FunctionApplication()->getValue()]        = IApplyExpression::class;
Please login to merge, or discard this patch.
src/Csdl/Internal/Serialization/EdmModelCsdlSerializationVisitor.php 1 patch
Spacing   +8 added lines, -9 removed lines patch added patch discarded remove patch
@@ -132,8 +132,7 @@  discard block
 block discarded – undo
132 132
         $alias = null;
133 133
         if ($this->namespaceAliasMappings != null) {
134 134
             $alias = array_key_exists($element->getNamespace(), $this->namespaceAliasMappings) ?
135
-                $this->namespaceAliasMappings[$element->getNamespace()] :
136
-                null;
135
+                $this->namespaceAliasMappings[$element->getNamespace()] : null;
137 136
         }
138 137
 
139 138
         $this->schemaWriter->WriteSchemaElementHeader($element, $alias, $mappings);
@@ -608,7 +607,7 @@  discard block
 block discarded – undo
608 607
     protected function ProcessPropertyReferenceExpression(IPropertyReferenceExpression $expression): void
609 608
     {
610 609
         $this->BeginElement($expression, [$this->schemaWriter, 'WritePropertyReferenceExpressionElementHeader']);
611
-        if ($expression->getBase()!= null) {
610
+        if ($expression->getBase() != null) {
612 611
             $this->VisitExpression($expression->getBase());
613 612
         }
614 613
 
@@ -1206,10 +1205,10 @@  discard block
 block discarded – undo
1206 1205
             return false;
1207 1206
         }
1208 1207
 
1209
-        $thisAssociationAnnotations =[];
1208
+        $thisAssociationAnnotations = [];
1210 1209
         $thisEnd1Annotations        = [];
1211
-        $thisEnd2Annotations        =[];
1212
-        $thisConstraintAnnotations  =[];
1210
+        $thisEnd2Annotations        = [];
1211
+        $thisConstraintAnnotations  = [];
1213 1212
         $this->model->GetAssociationAnnotations(
1214 1213
             $thisPrimary,
1215 1214
             $thisAssociationAnnotations,
@@ -1221,7 +1220,7 @@  discard block
 block discarded – undo
1221 1220
         $thatAssociationAnnotations = [];
1222 1221
         $thatEnd1Annotations        = [];
1223 1222
         $thatEnd2Annotations        = [];
1224
-        $thatConstraintAnnotations  =[];
1223
+        $thatConstraintAnnotations  = [];
1225 1224
         $this->model->GetAssociationAnnotations(
1226 1225
             $thatPrimary,
1227 1226
             $thatAssociationAnnotations,
@@ -1335,8 +1334,8 @@  discard block
 block discarded – undo
1335 1334
         );
1336 1335
 
1337 1336
         $thatAssociationSetAnnotations = [];
1338
-        $thatEnd1Annotations           =[];
1339
-        $thatEnd2Annotations           =[];
1337
+        $thatEnd1Annotations           = [];
1338
+        $thatEnd2Annotations           = [];
1340 1339
         $this->model->GetAssociationSetAnnotations(
1341 1340
             $thatEntitySet,
1342 1341
             $thatNavprop,
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
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     {
35 35
         /** @var EdmModelVisitor $this */
36 36
         switch ($element->getSchemaElementKind()) {
37
-            case SchemaElementKind::Function():
37
+            case SchemaElementKind::Function ():
38 38
                 assert($element instanceof IFunction);
39 39
                 $this->processFunction($element);
40 40
                 break;
Please login to merge, or discard this patch.
src/ModelVisitorConcerns/VisitAnnotations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public function visitAnnotations(iterable $annotations): void
29 29
     {
30 30
         /** @var EdmModelVisitor $this */
31
-        self::visitCollection($annotations, [$this,'visitAnnotation']);
31
+        self::visitCollection($annotations, [$this, 'visitAnnotation']);
32 32
     }
33 33
 
34 34
     /**
Please login to merge, or discard this patch.