Completed
Push — master ( b9f89d...74ba61 )
by Alex
29s queued 14s
created
IFunctionImport/FunctionImportUnsupportedReturnTypeAfterV1.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@
 block discarded – undo
24 24
         assert($functionImport instanceof IFunctionImport);
25 25
         if ($functionImport->getReturnType() != null) {
26 26
             $elementType = $functionImport->getReturnType()->IsCollection() ?
27
-                $functionImport->getReturnType()->AsCollection()->ElementType() :
28
-                $functionImport->getReturnType();
27
+                $functionImport->getReturnType()->AsCollection()->ElementType() : $functionImport->getReturnType();
29 28
             if (!$elementType->IsPrimitive() &&
30 29
                 !$elementType->IsEntity() &&
31 30
                 !$elementType->IsComplex() &&
Please login to merge, or discard this patch.
IEnumMember/EnumMemberValueMustHaveSameTypeAsUnderlyingType.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@
 block discarded – undo
28 28
         if (!$context->checkIsBad($enumMember->getDeclaringType()) &&
29 29
                        !$context->checkIsBad($enumMember->getDeclaringType()->getUnderlyingType()) &&
30 30
                        !ExpressionTypeChecker::TryAssertPrimitiveAsType(
31
-                           $enumMember->getValue(),
32
-                           EdmTypeSemantics::GetPrimitiveTypeReference($enumMember->getDeclaringType()->getUnderlyingType(), false),
33
-                           $discoveredErrors
34
-                       )) {
31
+                            $enumMember->getValue(),
32
+                            EdmTypeSemantics::GetPrimitiveTypeReference($enumMember->getDeclaringType()->getUnderlyingType(), false),
33
+                            $discoveredErrors
34
+                        )) {
35 35
             EdmUtil::checkArgumentNull($enumMember->Location(), 'enumMember->Location');
36 36
             $context->AddError(
37 37
                 $enumMember->Location(),
Please login to merge, or discard this patch.
IDirectValueAnnotation/DirectValueAnnotationHasXmlSerializableName.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
             // Note: this check can be done without the try/catch block, but we need XmlConvert.IsStartNCNameChar and
37 37
             // XmlConvert.IsNCNameChar, which are not available in 3.5.
38 38
             if (!XmlConvert::VerifyNCName($annotation->getName())) {
39
-                $value         = $annotation->getValue() ;
39
+                $value         = $annotation->getValue();
40 40
                 $errorLocation = ($value === null || !($value instanceof IValue)) ? null : $value->Location();
41 41
                 $error         = new EdmError(
42 42
                     $errorLocation,
Please login to merge, or discard this patch.
src/Edm/Validation/Internal/InterfaceValidator/VisitorOfISchemaElement.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
                 );
34 34
                 break;
35 35
 
36
-            case SchemaElementKind::Function():
36
+            case SchemaElementKind::Function ():
37 37
                 InterfaceValidator::CollectErrors(
38 38
                     InterfaceValidator::CheckForInterfaceKindValueMismatchError(
39 39
                         $item,
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
                 );
34 34
                 break;
35 35
 
36
-            case SchemaElementKind::Function():
36
+            case SchemaElementKind::function():
37 37
                 InterfaceValidator::CollectErrors(
38 38
                     InterfaceValidator::CheckForInterfaceKindValueMismatchError(
39 39
                         $item,
Please login to merge, or discard this patch.
src/Edm/Validation/Internal/InterfaceValidator/VisitorOfIType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
                 break;
99 99
         }
100 100
 
101
-        return null !== $typeKindError ? [$typeKindError ] : null;
101
+        return null !== $typeKindError ? [$typeKindError] : null;
102 102
     }
103 103
 
104 104
     public function forType(): string
Please login to merge, or discard this patch.
Edm/Validation/Internal/InterfaceValidator/VisitorOfINavigationProperty.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
             if (!in_array($property->getPartner(), $prop)) {
27 27
                 $followup[] = $property->getPartner();
28 28
             } else {
29
-                $references[] =$property->getPartner();
29
+                $references[] = $property->getPartner();
30 30
             }
31 31
 
32 32
             if ($property->getPartner()->getPartner() !== $property || $property->getPartner() === $property) {
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
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 
145 145
         $thisTypeKeys  = array_keys($thisFunction->getParameters());
146 146
         $otherTypeKeys = array_keys($otherFunction->getParameters());
147
-        $keyCount      =  count($thisTypeKeys);
147
+        $keyCount      = count($thisTypeKeys);
148 148
         for ($i = 0; $i < $keyCount; ++$i) {
149 149
             if (!self::isEquivalentTo(
150 150
                 $thisFunction->getParameters()[$thisTypeKeys[$i]],
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 
208 208
         $thisTypeKeys  = array_keys($thisType->getDeclaredProperties());
209 209
         $otherTypeKeys = array_keys($otherType->getDeclaredProperties());
210
-        $keyCount      =  count($thisTypeKeys);
210
+        $keyCount      = count($thisTypeKeys);
211 211
         for ($i = 0; $i < $keyCount; ++$i) {
212 212
             if (!self::isEquivalentTo(
213 213
                 $thisType->getDeclaredProperties()[$thisTypeKeys[$i]],
Please login to merge, or discard this patch.
src/Helpers/VocabularyAnnotationHelpers.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
             $annotation,
52 52
             EdmConstants::InternalUri,
53 53
             CsdlConstants::AnnotationSerializationLocationAnnotation,
54
-            (object)$location
54
+            (object) $location
55 55
         );
56 56
     }
57 57
 
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
         /** @var IVocabularyAnnotation $annotation */
20 20
         $annotation = $this;
21 21
         return $annotation->GetSerializationLocation($model) ==
22
-               EdmVocabularyAnnotationSerializationLocation::Inline || $annotation->TargetString() == null;
22
+                EdmVocabularyAnnotationSerializationLocation::Inline || $annotation->TargetString() == null;
23 23
     }
24 24
 
25 25
     public function TargetString(): string
Please login to merge, or discard this patch.
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.