Skip to content

Commit 4f2d215

Browse files
committed
cs
1 parent 0892dcf commit 4f2d215

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/PhpGenerator/Helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public static function createObject(string $class, array $props): object
159159
public static function validateType(?string $type, bool &$nullable): ?string
160160
{
161161
if ($type === '' || $type === null) {
162-
return null;
162+
return null;
163163
}
164164
if (!preg_match('#(?:
165165
\?[\w\\\\]+|

tests/PhpGenerator/ClassType.from.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $res[] = ClassType::from(Abc\Class1::class);
2121
$res[] = ClassType::from(new Abc\Class2);
2222
$obj = new Abc\Class3;
2323
$obj->prop2 = 1;
24-
$res[] = (new Factory)->fromClassReflection(new \ReflectionObject($obj));
24+
$res[] = (new Factory)->fromClassReflection(new ReflectionObject($obj));
2525
$res[] = ClassType::from(Abc\Class4::class);
2626
$res[] = ClassType::from(Abc\Class5::class);
2727
$res[] = ClassType::from(Abc\Class6::class);

tests/PhpGenerator/Factory.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ Assert::type(Nette\PhpGenerator\ClassType::class, $res);
2626
Assert::null($res->getName());
2727

2828

29-
$res = $factory->fromMethodReflection(new \ReflectionMethod(ReflectionClass::class, 'getName'));
29+
$res = $factory->fromMethodReflection(new ReflectionMethod(ReflectionClass::class, 'getName'));
3030
Assert::type(Nette\PhpGenerator\Method::class, $res);
3131
Assert::same('getName', $res->getName());
3232

3333

34-
$res = $factory->fromFunctionReflection(new \ReflectionFunction('trim'));
34+
$res = $factory->fromFunctionReflection(new ReflectionFunction('trim'));
3535
Assert::type(Nette\PhpGenerator\GlobalFunction::class, $res);
3636
Assert::same('trim', $res->getName());
3737

3838

39-
$res = $factory->fromFunctionReflection(new \ReflectionFunction(function () {}));
39+
$res = $factory->fromFunctionReflection(new ReflectionFunction(function () {}));
4040
Assert::type(Nette\PhpGenerator\Closure::class, $res);
4141

4242

tests/PhpGenerator/Method.returnTypes.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace
2525

2626
interface A
2727
{
28-
public function testClass(): \A\Foo;
28+
public function testClass(): A\Foo;
2929

3030
public function testScalar(): string;
3131
}

0 commit comments

Comments
 (0)