Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a18b756

Browse files
committed
style: Fix CS
1 parent 7ac48f5 commit a18b756

File tree

3 files changed

+17
-20
lines changed

3 files changed

+17
-20
lines changed
Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
1-
<?php
1+
<?phpdeclare(strict_types = 1);
22

3-
declare(strict_types=1);
4-
5-
namespace Stubs\Symfony\Component\Form;
3+
namespace PHPStan\Stubs\Symfony\Component\Form;
64

75
class DataClass
86
{
9-
/**
10-
* @var int
11-
*/
7+
8+
/** @var int */
129
public $foo;
1310

14-
/**
15-
* @var string
16-
*/
11+
/** @var string */
1712
public $bar;
13+
1814
}

‎tests/Stubs/Symfony/Component/Form/DataClassType.php‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?php
1+
<?phpdeclare(strict_types = 1);
22

3-
namespace Stubs\Symfony\Component\Form;
3+
namespace PHPStan\Stubs\Symfony\Component\Form;
44

55
use Symfony\Component\Form\AbstractType;
66
use Symfony\Component\Form\Extension\Core\Type\NumberType;
@@ -13,6 +13,7 @@
1313
*/
1414
class DataClassType extends AbstractType
1515
{
16+
1617
public function buildForm(FormBuilderInterface $builder, array $options): void
1718
{
1819
$builder
@@ -29,4 +30,5 @@ public function configureOptions(OptionsResolver $resolver): void
2930
])
3031
;
3132
}
33+
3234
}

‎tests/Stubs/Symfony/Component/Form/FormFactoryAwareClass.php‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
1-
<?php
1+
<?phpdeclare(strict_types = 1);
22

3-
namespace Stubs\Symfony\Component\Form;
3+
namespace PHPStan\Stubs\Symfony\Component\Form;
44

55
use Symfony\Component\Form\FormFactoryInterface;
66

77
class FormFactoryAwareClass
88
{
9-
/**
10-
* @var FormFactoryInterface
11-
*/
9+
10+
/** @var FormFactoryInterface */
1211
private $formFactory;
1312

14-
public function __construct(
15-
FormFactoryInterface $formFactory
16-
) {
13+
public function __construct(FormFactoryInterface $formFactory)
14+
{
1715
$this->formFactory = $formFactory;
1816
}
1917

@@ -40,4 +38,5 @@ private function thisOnlyAcceptsDataClass(DataClass $data): void
4038
private function thisOnlyAcceptsDataClassOrNull(?DataClass $data): void
4139
{
4240
}
41+
4342
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /