Skip to content

Commit 0134e99

Browse files
committed
cs
1 parent 1f7196d commit 0134e99

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/PhpGenerator/Factory.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public function fromClassReflection(
3232
\ReflectionClass $from,
3333
bool $withBodies = false,
3434
?bool $materializeTraits = null,
35-
): ClassLike {
35+
): ClassLike
36+
{
3637
if ($materializeTraits !== null) {
3738
trigger_error(__METHOD__ . '() parameter $materializeTraits has been removed (is always false).', E_USER_DEPRECATED);
3839
}

src/PhpGenerator/Printer.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ public function printMethod(Method $method, ?PhpNamespace $namespace = null, boo
133133
public function printClass(
134134
ClassType|InterfaceType|TraitType|EnumType $class,
135135
?PhpNamespace $namespace = null,
136-
): string {
136+
): string
137+
{
137138
$this->namespace = $this->resolveTypes ? $namespace : null;
138139
$class->validate();
139140
$resolver = $this->namespace

tests/PhpGenerator/Method.returnTypes.phpt

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ namespace A
1313
}
1414
}
1515

16-
namespace
17-
{
16+
namespace {
1817
use Nette\PhpGenerator\Method;
1918
use Tester\Assert;
2019

0 commit comments

Comments
 (0)