Skip to content

Commit f2037d9

Browse files
committed
TASK: Fix code style
1 parent f4d7e03 commit f2037d9

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Classes/Domain/Fusion/Prototype.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function getKeys(?string $path = null): array
109109
$ast = $this->ast;
110110
}
111111

112-
return array_filter(array_keys($ast), function(string $key): bool {
112+
return array_filter(array_keys($ast), function (string $key): bool {
113113
return substr($key, 0, 2) !== '__';
114114
});
115115
}

Classes/Domain/PrototypeDetails/FusionPrototypeAst.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ private function __construct(array $value)
4242
*/
4343
public function getAllReferencedFusionObjects(): \Iterator
4444
{
45-
$findReferencedFusionPrototypeAstsRecursively = function(
45+
$findReferencedFusionPrototypeAstsRecursively = function (
4646
array $astExcerpt
4747
) use (&$findReferencedFusionPrototypeAstsRecursively): \Iterator {
4848
if (isset($astExcerpt['__objectType'])) {

Classes/Domain/PrototypeDetails/Props/EditorFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,14 @@ public function forPropValue(PropValue $propValue): ?EditorInterface
7171
case $propValue->isBoolean():
7272
return $this->checkBox();
7373
case $propValue->isNumber():
74-
return $this->number();
74+
return $this->text();
7575
case $propValue->isString():
7676
if ($propValue->getLength() <= 80) {
7777
return $this->text();
7878
} else {
7979
return $this->textArea();
8080
}
81+
break;
8182
default:
8283
return null;
8384
}
@@ -128,7 +129,6 @@ public function fromManualConfiguration(array $manualConfiguration): EditorInter
128129
)
129130
);
130131
}
131-
132132
}
133133

134134
/**

Classes/Domain/PrototypeDetails/PrototypeDetailsFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ final class PrototypeDetailsFactory
4242
* @param string $sitePackageKey
4343
* @return PrototypeDetailsInterface
4444
*/
45-
public function forPrototype(Prototype $prototype): PrototypeDetailsInterface {
45+
public function forPrototype(Prototype $prototype): PrototypeDetailsInterface
46+
{
4647
return new PrototypeDetails(
4748
$prototype->getName(),
4849
RenderedCode::fromString(

0 commit comments

Comments
 (0)