Skip to content

Commit 9961f43

Browse files
committed
fix fabpot.io cs
1 parent f189efd commit 9961f43

File tree

3 files changed

+65
-65
lines changed

3 files changed

+65
-65
lines changed

src/Resources/skeleton/crud/templates/edit.tpl.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
{% block body %}
44
<h1>Edit <?= $entity_class_name; ?></h1>
55

6-
{% include '<?= $route_name?>/_form.html.twig' with {'form': form, 'button_label': 'Edit'} only %}
6+
{% include '<?= $route_name; ?>/_form.html.twig' with {'form': form, 'button_label': 'Edit'} only %}
77

88
<a href="{{ path('<?= $route_name; ?>_index') }}">back to list</a>
99

10-
{% include '<?= $route_name?>/_delete_form.html.twig' with {'identifier': <?= $entity_var_singular; ?>.<?= $entity_identifier; ?>} only %}
10+
{% include '<?= $route_name; ?>/_delete_form.html.twig' with {'identifier': <?= $entity_var_singular; ?>.<?= $entity_identifier; ?>} only %}
1111

1212
{% endblock %}

src/Resources/skeleton/crud/templates/new.tpl.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
{% block body %}
44
<h1>Create new <?= $entity_class_name; ?></h1>
55

6-
{% include '<?= $route_name?>/_form.html.twig' with {'form': form} only %}
6+
{% include '<?= $route_name; ?>/_form.html.twig' with {'form': form} only %}
77

88
{% endblock %}

tests/Maker/FunctionalTest.php

+62-62
Original file line numberDiff line numberDiff line change
@@ -51,30 +51,30 @@ public function testCommands(MakerTestDetails $makerTestDetails)
5151

5252
public function getCommandTests()
5353
{
54-
yield 'command' => [MakerTestDetails::createTest(
54+
yield 'command' => array(MakerTestDetails::createTest(
5555
$this->getMakerInstance(MakeCommand::class),
56-
[
56+
array(
5757
// command name
5858
'app:foo',
59-
])
59+
))
6060
->setFixtureFilesPath(__DIR__.'/../fixtures/MakeCommand')
61-
];
61+
);
6262

63-
yield 'controller' => [MakerTestDetails::createTest(
63+
yield 'controller' => array(MakerTestDetails::createTest(
6464
$this->getMakerInstance(MakeController::class),
65-
[
65+
array(
6666
// controller class name
6767
'FooBar',
68-
])
68+
))
6969
->setFixtureFilesPath(__DIR__.'/../fixtures/MakeController')
70-
];
70+
);
7171

72-
yield 'entity' => [MakerTestDetails::createTest(
72+
yield 'entity' => array(MakerTestDetails::createTest(
7373
$this->getMakerInstance(MakeEntity::class),
74-
[
74+
array(
7575
// entity class name
7676
'TastyFood',
77-
])
77+
))
7878
->setFixtureFilesPath(__DIR__.'/../fixtures/MakeEntity')
7979
->addReplacement(
8080
'phpunit.xml.dist',
@@ -89,98 +89,98 @@ public function getCommandTests()
8989
'sqlite:///%kernel.project_dir%/var/app.db'
9090
)
9191
->addPostMakeCommand('./bin/console doctrine:schema:create --env=test')
92-
];
92+
);
9393

94-
yield 'form' => [MakerTestDetails::createTest(
94+
yield 'form' => array(MakerTestDetails::createTest(
9595
$this->getMakerInstance(MakeForm::class),
96-
[
96+
array(
9797
// form name
9898
'FooBar',
99-
])
100-
];
99+
))
100+
);
101101

102-
yield 'functional' => [MakerTestDetails::createTest(
102+
yield 'functional' => array(MakerTestDetails::createTest(
103103
$this->getMakerInstance(MakeFunctionalTest::class),
104-
[
104+
array(
105105
// functional test class name
106106
'FooBar',
107-
])
107+
))
108108
->setFixtureFilesPath(__DIR__.'/../fixtures/MakeFunctional')
109-
];
109+
);
110110

111-
yield 'subscriber' => [MakerTestDetails::createTest(
111+
yield 'subscriber' => array(MakerTestDetails::createTest(
112112
$this->getMakerInstance(MakeSubscriber::class),
113-
[
113+
array(
114114
// subscriber name
115115
'FooBar',
116116
// event name
117117
'kernel.request',
118-
])
119-
];
118+
))
119+
);
120120

121-
yield 'subscriber_unknown_event_class' => [MakerTestDetails::createTest(
121+
yield 'subscriber_unknown_event_class' => array(MakerTestDetails::createTest(
122122
$this->getMakerInstance(MakeSubscriber::class),
123-
[
123+
array(
124124
// subscriber name
125125
'FooBar',
126126
// event name
127127
'foo.unknown_event',
128-
])
129-
];
128+
))
129+
);
130130

131-
yield 'serializer_encoder' => [MakerTestDetails::createTest(
131+
yield 'serializer_encoder' => array(MakerTestDetails::createTest(
132132
$this->getMakerInstance(MakeSerializerEncoder::class),
133-
[
133+
array(
134134
// encoder class name
135135
'FooBarEncoder',
136136
// encoder format
137137
'foobar',
138-
])
139-
];
138+
))
139+
);
140140

141-
yield 'twig_extension' => [MakerTestDetails::createTest(
141+
yield 'twig_extension' => array(MakerTestDetails::createTest(
142142
$this->getMakerInstance(MakeTwigExtension::class),
143-
[
143+
array(
144144
// extension class name
145145
'FooBar',
146-
])
147-
];
146+
))
147+
);
148148

149-
yield 'unit_test' => [MakerTestDetails::createTest(
149+
yield 'unit_test' => array(MakerTestDetails::createTest(
150150
$this->getMakerInstance(MakeUnitTest::class),
151-
[
151+
array(
152152
// class name
153153
'FooBar',
154-
])
155-
];
154+
))
155+
);
156156

157-
yield 'validator' => [MakerTestDetails::createTest(
157+
yield 'validator' => array(MakerTestDetails::createTest(
158158
$this->getMakerInstance(MakeValidator::class),
159-
[
159+
array(
160160
// validator name
161161
'FooBar',
162-
])
163-
];
162+
))
163+
);
164164

165-
yield 'voter' => [MakerTestDetails::createTest(
165+
yield 'voter' => array(MakerTestDetails::createTest(
166166
$this->getMakerInstance(MakeVoter::class),
167-
[
167+
array(
168168
// voter class name
169169
'FooBar',
170-
])
171-
];
170+
))
171+
);
172172

173-
yield 'auth_empty' => [MakerTestDetails::createTest(
173+
yield 'auth_empty' => array(MakerTestDetails::createTest(
174174
$this->getMakerInstance(MakeAuthenticator::class),
175-
[
175+
array(
176176
// class name
177177
'AppCustomAuthenticator',
178-
])
179-
];
178+
))
179+
);
180180

181-
yield 'migration_with_changes' => [MakerTestDetails::createTest(
181+
yield 'migration_with_changes' => array(MakerTestDetails::createTest(
182182
$this->getMakerInstance(MakeMigration::class),
183-
[/* no input */])
183+
array(/* no input */))
184184
->setFixtureFilesPath(__DIR__.'/../fixtures/MakeMigration')
185185
->addReplacement(
186186
'.env',
@@ -204,11 +204,11 @@ public function getCommandTests()
204204
$iterator->rewind();
205205
$this->assertContains(sprintf('"src/Migrations/%s"', $iterator->current()->getFilename()), $output);
206206
})
207-
];
207+
);
208208

209-
yield 'migration_no_changes' => [MakerTestDetails::createTest(
209+
yield 'migration_no_changes' => array(MakerTestDetails::createTest(
210210
$this->getMakerInstance(MakeMigration::class),
211-
[/* no input */])
211+
array(/* no input */))
212212
->setFixtureFilesPath(__DIR__.'/../fixtures/MakeMigration')
213213
->addReplacement(
214214
'.env',
@@ -223,14 +223,14 @@ public function getCommandTests()
223223

224224
$this->assertContains('No database changes were detected', $output);
225225
})
226-
];
226+
);
227227

228-
yield 'crud' => [MakerTestDetails::createTest(
228+
yield 'crud' => array(MakerTestDetails::createTest(
229229
$this->getMakerInstance(MakeCrud::class),
230-
[
230+
array(
231231
// entity class name
232232
'SweetFood',
233-
])
233+
))
234234
->setFixtureFilesPath(__DIR__.'/../fixtures/MakeCrud')
235235
->addReplacement(
236236
'.env',
@@ -241,7 +241,7 @@ public function getCommandTests()
241241
->assert(function(string $output, string $directory) {
242242
$this->assertContains('Success', $output);
243243
})
244-
];
244+
);
245245
}
246246

247247
/**

0 commit comments

Comments
 (0)