Skip to content

Commit 4cf0eb4

Browse files
author
Bernhard Schmitt
committed
Reduce code style to PSR-2 for now
1 parent e81d463 commit 4cf0eb4

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

Classes/Domain/Component/Props.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ public static function fromClassName(string $className): self
8383
private static function extractPropsFromReflectionClass(\ReflectionClass $reflectionClass): array
8484
{
8585
$parentReflectionClass = $reflectionClass->getParentClass();
86-
if (
87-
$parentReflectionClass instanceof \ReflectionClass
86+
if ($parentReflectionClass instanceof \ReflectionClass
8887
&& IsComponent::isSatisfiedByReflectionClass($parentReflectionClass)
8988
) {
9089
$props = self::extractPropsFromReflectionClass($parentReflectionClass);

Classes/Fusion/PresentationObjectComponentImplementation.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ protected function prepare(array $context): array
6161
unset($props[self::OBJECT_NAME]);
6262
$presentationObjectProps = Props::fromClassName(ComponentName::fromFusionPath($this->path)->getFullyQualifiedClassName());
6363
foreach ($presentationObjectProps as $propName => $propType) {
64-
if (
65-
isset($props[$propName])
64+
if (isset($props[$propName])
6665
&& (is_string($props[$propName]) || is_int($props[$propName]))
6766
&& $propType instanceof EnumPropType
6867
) {

0 commit comments

Comments
 (0)