Passed
Pull Request — master (#50)
by Alex
03:58
created
src/Edm/Validation/Internal/InterfaceValidator/VisitorOfIValue.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         $this->lookup[ValueKind::Floating()->getValue()] = IFloatingValue::class;
40 40
         $this->lookup[ValueKind::Guid()->getValue()] = IGuidValue::class;
41 41
         $this->lookup[ValueKind::Integer()->getValue()] = IIntegerValue::class;
42
-        $this->lookup[ValueKind::Null()->getValue()] = INullValue::class;
42
+        $this->lookup[ValueKind::null()->getValue()] = INullValue::class;
43 43
         $this->lookup[ValueKind::String()->getValue()] = IStringValue::class;
44 44
         $this->lookup[ValueKind::Structured()->getValue()] = IStructuredValue::class;
45 45
         $this->lookup[ValueKind::Time()->getValue()] = ITimeValue::class;
Please login to merge, or discard this patch.
src/Csdl/Internal/Serialization/EdmModelCsdlSerializationVisitor.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1294,7 +1294,7 @@  discard block
 block discarded – undo
1294 1294
 
1295 1295
         // Association Set
1296 1296
         if (!($this->model->GetAssociationSetName($thisEntitySet, $thisNavprop) ==
1297
-              $this->model->GetAssociationSetName($thatEntitySet, $thatNavprop) &&
1297
+                $this->model->GetAssociationSetName($thatEntitySet, $thatNavprop) &&
1298 1298
             $this->model->GetAssociationFullName($thisNavprop) == $this->model->GetAssociationFullName($thatNavprop))) {
1299 1299
             return false;
1300 1300
         }
@@ -1316,7 +1316,7 @@  discard block
 block discarded – undo
1316 1316
 
1317 1317
         if (null !== $thisOtherEntitySet) {
1318 1318
             if (!($this->model->GetAssociationEndName($thisNavprop->getPartner()) ==
1319
-                  $this->model->GetAssociationEndName($thatNavprop->getPartner()) &&
1319
+                    $this->model->GetAssociationEndName($thatNavprop->getPartner()) &&
1320 1320
                   $thisOtherEntitySet->getName() == $thatOtherEntitySet->getName())) {
1321 1321
                 return false;
1322 1322
             }
Please login to merge, or discard this patch.
Spacing   +9 added lines, -10 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);
@@ -609,7 +608,7 @@  discard block
 block discarded – undo
609 608
     protected function ProcessPropertyReferenceExpression(IPropertyReferenceExpression $expression): void
610 609
     {
611 610
         $this->BeginElement($expression, [$this->schemaWriter, 'WritePropertyReferenceExpressionElementHeader']);
612
-        if ($expression->getBase()!= null) {
611
+        if ($expression->getBase() != null) {
613 612
             $this->VisitExpression($expression->getBase());
614 613
         }
615 614
 
@@ -1207,10 +1206,10 @@  discard block
 block discarded – undo
1207 1206
             return false;
1208 1207
         }
1209 1208
 
1210
-        $thisAssociationAnnotations =[];
1209
+        $thisAssociationAnnotations = [];
1211 1210
         $thisEnd1Annotations        = [];
1212
-        $thisEnd2Annotations        =[];
1213
-        $thisConstraintAnnotations  =[];
1211
+        $thisEnd2Annotations        = [];
1212
+        $thisConstraintAnnotations  = [];
1214 1213
         $this->model->GetAssociationAnnotations(
1215 1214
             $thisPrimary,
1216 1215
             $thisAssociationAnnotations,
@@ -1222,7 +1221,7 @@  discard block
 block discarded – undo
1222 1221
         $thatAssociationAnnotations = [];
1223 1222
         $thatEnd1Annotations        = [];
1224 1223
         $thatEnd2Annotations        = [];
1225
-        $thatConstraintAnnotations  =[];
1224
+        $thatConstraintAnnotations  = [];
1226 1225
         $this->model->GetAssociationAnnotations(
1227 1226
             $thatPrimary,
1228 1227
             $thatAssociationAnnotations,
@@ -1264,7 +1263,7 @@  discard block
 block discarded – undo
1264 1263
      */
1265 1264
     private function SharesReferentialConstraintEnd(array $theseProperties, array $thoseProperties): bool
1266 1265
     {
1267
-        $numProp   = count($theseProperties);
1266
+        $numProp = count($theseProperties);
1268 1267
         if ($numProp != count($thoseProperties)) {
1269 1268
             return false;
1270 1269
         }
@@ -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.