Skip to content

Commit 791241d

Browse files
committed
fix fabpot.io cs 2
1 parent 9961f43 commit 791241d

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616

1717
<a href="{{ path('<?= $route_name; ?>_edit', {'<?= $entity_identifier; ?>':<?= $entity_var_singular; ?>.<?= $entity_identifier; ?>}) }}">edit</a>
1818

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

2121
{% endblock %}

tests/Maker/FunctionalTest.php

+16-16
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function getCommandTests()
5757
// command name
5858
'app:foo',
5959
))
60-
->setFixtureFilesPath(__DIR__.'/../fixtures/MakeCommand')
60+
->setFixtureFilesPath(__DIR__.'/../fixtures/MakeCommand'),
6161
);
6262

6363
yield 'controller' => array(MakerTestDetails::createTest(
@@ -66,7 +66,7 @@ public function getCommandTests()
6666
// controller class name
6767
'FooBar',
6868
))
69-
->setFixtureFilesPath(__DIR__.'/../fixtures/MakeController')
69+
->setFixtureFilesPath(__DIR__.'/../fixtures/MakeController'),
7070
);
7171

7272
yield 'entity' => array(MakerTestDetails::createTest(
@@ -88,15 +88,15 @@ public function getCommandTests()
8888
'mysql://db_user:[email protected]:3306/db_name',
8989
'sqlite:///%kernel.project_dir%/var/app.db'
9090
)
91-
->addPostMakeCommand('./bin/console doctrine:schema:create --env=test')
91+
->addPostMakeCommand('./bin/console doctrine:schema:create --env=test'),
9292
);
9393

9494
yield 'form' => array(MakerTestDetails::createTest(
9595
$this->getMakerInstance(MakeForm::class),
9696
array(
9797
// form name
9898
'FooBar',
99-
))
99+
)),
100100
);
101101

102102
yield 'functional' => array(MakerTestDetails::createTest(
@@ -105,7 +105,7 @@ public function getCommandTests()
105105
// functional test class name
106106
'FooBar',
107107
))
108-
->setFixtureFilesPath(__DIR__.'/../fixtures/MakeFunctional')
108+
->setFixtureFilesPath(__DIR__.'/../fixtures/MakeFunctional'),
109109
);
110110

111111
yield 'subscriber' => array(MakerTestDetails::createTest(
@@ -115,7 +115,7 @@ public function getCommandTests()
115115
'FooBar',
116116
// event name
117117
'kernel.request',
118-
))
118+
)),
119119
);
120120

121121
yield 'subscriber_unknown_event_class' => array(MakerTestDetails::createTest(
@@ -125,7 +125,7 @@ public function getCommandTests()
125125
'FooBar',
126126
// event name
127127
'foo.unknown_event',
128-
))
128+
)),
129129
);
130130

131131
yield 'serializer_encoder' => array(MakerTestDetails::createTest(
@@ -135,47 +135,47 @@ public function getCommandTests()
135135
'FooBarEncoder',
136136
// encoder format
137137
'foobar',
138-
))
138+
)),
139139
);
140140

141141
yield 'twig_extension' => array(MakerTestDetails::createTest(
142142
$this->getMakerInstance(MakeTwigExtension::class),
143143
array(
144144
// extension class name
145145
'FooBar',
146-
))
146+
)),
147147
);
148148

149149
yield 'unit_test' => array(MakerTestDetails::createTest(
150150
$this->getMakerInstance(MakeUnitTest::class),
151151
array(
152152
// class name
153153
'FooBar',
154-
))
154+
)),
155155
);
156156

157157
yield 'validator' => array(MakerTestDetails::createTest(
158158
$this->getMakerInstance(MakeValidator::class),
159159
array(
160160
// validator name
161161
'FooBar',
162-
))
162+
)),
163163
);
164164

165165
yield 'voter' => array(MakerTestDetails::createTest(
166166
$this->getMakerInstance(MakeVoter::class),
167167
array(
168168
// voter class name
169169
'FooBar',
170-
))
170+
)),
171171
);
172172

173173
yield 'auth_empty' => array(MakerTestDetails::createTest(
174174
$this->getMakerInstance(MakeAuthenticator::class),
175175
array(
176176
// class name
177177
'AppCustomAuthenticator',
178-
))
178+
)),
179179
);
180180

181181
yield 'migration_with_changes' => array(MakerTestDetails::createTest(
@@ -203,7 +203,7 @@ public function getCommandTests()
203203
$iterator = $finder->getIterator();
204204
$iterator->rewind();
205205
$this->assertContains(sprintf('"src/Migrations/%s"', $iterator->current()->getFilename()), $output);
206-
})
206+
}),
207207
);
208208

209209
yield 'migration_no_changes' => array(MakerTestDetails::createTest(
@@ -222,7 +222,7 @@ public function getCommandTests()
222222
$this->assertNotContains('Success', $output);
223223

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

228228
yield 'crud' => array(MakerTestDetails::createTest(
@@ -240,7 +240,7 @@ public function getCommandTests()
240240
->addExtraDependencies('symfony/orm-pack')
241241
->assert(function(string $output, string $directory) {
242242
$this->assertContains('Success', $output);
243-
})
243+
}),
244244
);
245245
}
246246

0 commit comments

Comments
 (0)