Failed Conditions
Pull Request — master (#44)
by Alex
03:10
created
src/Helpers/VocabularyAnnotationHelpers.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
          */
22 22
         $annotation = $this;
23 23
         return $annotation->GetSerializationLocation($model) ==
24
-               EdmVocabularyAnnotationSerializationLocation::Inline || $annotation->TargetString() == null;
24
+                EdmVocabularyAnnotationSerializationLocation::Inline || $annotation->TargetString() == null;
25 25
     }
26 26
 
27 27
     public function TargetString(): string
Please login to merge, or discard this patch.
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.
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 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.
src/Helpers/TypeAnnotationHelpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     {
26 26
         assert(
27 27
             $property instanceof IProperty || is_string($property),
28
-            'The property to search for must either be a string representing the name or IProperty'.
28
+            'The property to search for must either be a string representing the name or IProperty' .
29 29
             ' representing the property'
30 30
         );
31 31
         foreach ($this->getPropertyValueBindings() as $propertyBinding) {
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.