Skip to content

Commit 3e7e107

Browse files
style: Apply fixes from StyleCI (#1034)
Co-authored-by: StyleCI Bot <[email protected]>
1 parent 684b0ba commit 3e7e107

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

tests/Generators/APIControllerGeneratorTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
});
1414

1515
test('uses repository controller template', function () {
16-
1716
fakeGeneratorConfig();
1817

1918
/** @var APIControllerGenerator $generator */
@@ -25,7 +24,6 @@
2524
});
2625

2726
test('uses model controller template', function () {
28-
2927
config()->set('laravel_generator.options.repository_pattern', false);
3028

3129
fakeGeneratorConfig();
@@ -39,7 +37,6 @@
3937
});
4038

4139
test('used resource repository controller template', function () {
42-
4340
config()->set('laravel_generator.options.resources', true);
4441

4542
fakeGeneratorConfig();
@@ -50,4 +47,4 @@
5047
$viewName = $generator->getViewName();
5148

5249
expect($viewName)->toBe('repository.controller_resource');
53-
});
50+
});

tests/TestHelpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function fakeGeneratorConfig()
5151
$fakeConfig->setCommand($command);
5252
$fakeConfig->init();
5353

54-
app()->singleton(GeneratorConfig::class, function () use($fakeConfig) {
54+
app()->singleton(GeneratorConfig::class, function () use ($fakeConfig) {
5555
return $fakeConfig;
5656
});
5757

0 commit comments

Comments
 (0)