@@ -1351,8 +1351,7 @@ discard block |
||
1351 | 1351 | */ |
1352 | 1352 | public function WriteOptionalAttribute(string $attribute, $value, $defaultValue, callable $toXml): void |
1353 | 1353 | { |
1354 | - $stem = is_array($toXml) ? new ReflectionMethod(...$toXml) : |
|
1355 | - new ReflectionFunction($toXml); |
|
1354 | + $stem = is_array($toXml) ? new ReflectionMethod(...$toXml) : new ReflectionFunction($toXml); |
|
1356 | 1355 | /* @noinspection PhpUnhandledExceptionInspection suppressing exceptions for asserts.*/ |
1357 | 1356 | assert( |
1358 | 1357 | 1 === count(($stem)->getParameters()), |
@@ -1360,8 +1359,7 @@ discard block |
||
1360 | 1359 | ); |
1361 | 1360 | $stemType = $stem->getReturnType(); |
1362 | 1361 | $name = $stemType instanceof ReflectionNamedType ? |
1363 | - $stemType->getName() : |
|
1364 | - strval($stemType); |
|
1362 | + $stemType->getName() : strval($stemType); |
|
1365 | 1363 | /* @noinspection PhpUnhandledExceptionInspection suppressing exceptions for asserts.*/ |
1366 | 1364 | assert( |
1367 | 1365 | 'string' === $name, |
@@ -1380,8 +1378,7 @@ discard block |
||
1380 | 1378 | */ |
1381 | 1379 | public function WriteRequiredAttribute(string $attribute, $value, callable $toXml): void |
1382 | 1380 | { |
1383 | - $stem = is_array($toXml) ? new ReflectionMethod(...$toXml) : |
|
1384 | - new ReflectionFunction($toXml); |
|
1381 | + $stem = is_array($toXml) ? new ReflectionMethod(...$toXml) : new ReflectionFunction($toXml); |
|
1385 | 1382 | /* @noinspection PhpUnhandledExceptionInspection suppressing exceptions for asserts.*/ |
1386 | 1383 | assert( |
1387 | 1384 | 1 === count($stem->getParameters()), |
@@ -1389,8 +1386,7 @@ discard block |
||
1389 | 1386 | ); |
1390 | 1387 | $stemType = $stem->getReturnType(); |
1391 | 1388 | $name = $stemType instanceof ReflectionNamedType ? |
1392 | - $stemType->getName() : |
|
1393 | - strval($stemType); |
|
1389 | + $stemType->getName() : strval($stemType); |
|
1394 | 1390 | /* @noinspection PhpUnhandledExceptionInspection suppressing exceptions for asserts.*/ |
1395 | 1391 | assert( |
1396 | 1392 | 'string' === $name, |
@@ -1487,7 +1483,7 @@ discard block |
||
1487 | 1483 | |
1488 | 1484 | private static function SridAsXml(?int $i): string |
1489 | 1485 | { |
1490 | - return $i !== null ? strval($i) : CsdlConstants::Value_SridVariable; |
|
1486 | + return $i !== null ? strval($i) : CsdlConstants::Value_SridVariable; |
|
1491 | 1487 | } |
1492 | 1488 | |
1493 | 1489 | /** |