Completed
Push — master ( 74ba61...67fb5e )
by Alex
15s queued 13s
created
src/Csdl/Internal/Serialization/EdmModelCsdlSchemaWriter.php 1 patch
Spacing   +5 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1338,14 +1338,12 @@  discard block
 block discarded – undo
1338 1338
     {
1339 1339
         /* @noinspection PhpUnhandledExceptionInspection suppressing exceptions for asserts.*/
1340 1340
         assert(
1341
-            count((is_array($toXml) ? new ReflectionMethod(...$toXml) :
1342
-                new ReflectionFunction($toXml))->getParameters()) === 1,
1341
+            count((is_array($toXml) ? new ReflectionMethod(...$toXml) : new ReflectionFunction($toXml))->getParameters()) === 1,
1343 1342
             '$toXml should be a callable takeing one paramater of mixed type'
1344 1343
         );
1345 1344
         /* @noinspection PhpUnhandledExceptionInspection suppressing exceptions for asserts.*/
1346 1345
         assert(
1347
-            (is_array($toXml) ? new ReflectionMethod(...$toXml) :
1348
-                new ReflectionFunction($toXml))->getReturnType()->getName() === 'string',
1346
+            (is_array($toXml) ? new ReflectionMethod(...$toXml) : new ReflectionFunction($toXml))->getReturnType()->getName() === 'string',
1349 1347
             '$toXml should be a callable returning a string'
1350 1348
         );
1351 1349
         if ($value !== $defaultValue) {
@@ -1363,14 +1361,12 @@  discard block
 block discarded – undo
1363 1361
     {
1364 1362
         /* @noinspection PhpUnhandledExceptionInspection suppressing exceptions for asserts.*/
1365 1363
         assert(
1366
-            count((is_array($toXml) ? new ReflectionMethod(...$toXml) :
1367
-                new ReflectionFunction($toXml))->getParameters()) === 1,
1364
+            count((is_array($toXml) ? new ReflectionMethod(...$toXml) : new ReflectionFunction($toXml))->getParameters()) === 1,
1368 1365
             '$toXml should be a callable takeing one paramater of mixed type'
1369 1366
         );
1370 1367
         /* @noinspection PhpUnhandledExceptionInspection suppressing exceptions for asserts.*/
1371 1368
         assert(
1372
-            (is_array($toXml) ? new ReflectionMethod(...$toXml) :
1373
-                new ReflectionFunction($toXml))->getReturnType()->getName() === 'string',
1369
+            (is_array($toXml) ? new ReflectionMethod(...$toXml) : new ReflectionFunction($toXml))->getReturnType()->getName() === 'string',
1374 1370
             '$toXml should be a callable returning a string'
1375 1371
         );
1376 1372
         $this->xmlWriter->writeAttribute($attribute, $toXml($value));
@@ -1464,7 +1460,7 @@  discard block
 block discarded – undo
1464 1460
 
1465 1461
     private static function SridAsXml(?int $i): string
1466 1462
     {
1467
-        return $i !== null ? strval($i) :  CsdlConstants::Value_SridVariable;
1463
+        return $i !== null ? strval($i) : CsdlConstants::Value_SridVariable;
1468 1464
     }
1469 1465
 
1470 1466
     /**
Please login to merge, or discard this patch.
src/Edm/Validation/Internal/InterfaceValidator/VisitorOfIExpression.php 3 patches
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.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,9 @@
 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() {
65
+            ->getValue()]                         = IIfExpression::class;
66
+        }
65 67
         $this->lookup[ExpressionKind::AssertType()->getValue()]                 = IAssertTypeExpression::class;
66 68
         $this->lookup[ExpressionKind::IsType()->getValue()]                     = IIsTypeExpression::class;
67 69
         $this->lookup[ExpressionKind::FunctionApplication()->getValue()]        = IApplyExpression::class;
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         $this->lookup[ExpressionKind::DecimalConstant()->getValue()]            = IDecimalConstantExpression::class;
52 52
         $this->lookup[ExpressionKind::FloatingConstant()->getValue()]           = IFloatingConstantExpression::class;
53 53
         $this->lookup[ExpressionKind::GuidConstant()->getValue()]               = IGuidConstantExpression::class;
54
-        $this->lookup[ExpressionKind::Null()->getValue()]                       = INullExpression::class;
54
+        $this->lookup[ExpressionKind::null()->getValue()]                       = INullExpression::class;
55 55
         $this->lookup[ExpressionKind::Record()->getValue()]                     = IRecordExpression::class;
56 56
         $this->lookup[ExpressionKind::Collection()->getValue()]                 = ICollectionExpression::class;
57 57
         $this->lookup[ExpressionKind::Path()->getValue()]                       = IPathExpression::class;
@@ -61,7 +61,7 @@  discard block
 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/ModelVisitorConcerns/VisitElements.php 2 patches
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.
Upper-Lower-Casing   +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.
src/Helpers/ToTraceString.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             case $element instanceof IProperty:
54 54
                 assert($element instanceof IProperty);
55 55
                 $type = $element->getType();
56
-                return $element->getName() ?? '' . ':' . ($type !== null ? self::ToTraceString($type) :'');
56
+                return $element->getName() ?? '' . ':' . ($type !== null ? self::ToTraceString($type) : '');
57 57
             case $element instanceof IEntityReferenceType:
58 58
                 assert($element instanceof IEntityReferenceType);
59 59
                 return strval(TypeKind::EntityReference()->getKey()) . '(' . ($element->getEntityType() !== null ?
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
             $sb,
189 189
             EdmConstants::FacetName_Srid,
190 190
             null !== $type->getSpatialReferenceIdentifier()
191
-                ? $type->getSpatialReferenceIdentifier(): EdmConstants::Value_SridVariable
191
+                ? $type->getSpatialReferenceIdentifier() : EdmConstants::Value_SridVariable
192 192
         );
193 193
         return $sb;
194 194
     }
Please login to merge, or discard this patch.
StructuralPropertyInvalidPropertyTypeConcurrencyMode.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,7 @@
 block discarded – undo
43 43
                 StringConst::EdmModel_Validator_Semantic_InvalidPropertyTypeConcurrencyMode(
44 44
                     (
45 45
                         $propType->IsCollection() ?
46
-                        EdmConstants::Type_Collection :
47
-                        $key
46
+                        EdmConstants::Type_Collection : $key
48 47
                     )
49 48
                 )
50 49
             );
Please login to merge, or discard this patch.