Skip to content

Commit 39b0ca9

Browse files
committed
🎨 Coding styles
1 parent 6f45e99 commit 39b0ca9

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

src/Tempest/Console/src/Commands/Generators/MakeControllerCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44

55
namespace Tempest\Console\Commands\Generators;
66

7-
use Tempest\Generation\HasGeneratorCommand;
8-
use Tempest\Console\Stubs\ControllerStub;
97
use Tempest\Console\ConsoleArgument;
108
use Tempest\Console\GeneratorCommand;
9+
use Tempest\Console\Stubs\ControllerStub;
10+
use Tempest\Generation\HasGeneratorCommand;
1111
use Tempest\Generation\StubFileGenerator;
1212

1313
final class MakeControllerCommand
1414
{
1515
use HasGeneratorCommand;
16-
16+
1717
#[GeneratorCommand(
1818
name : 'make:controller',
1919
description: 'Create a new controller class with a basic route',

src/Tempest/Console/src/Commands/Generators/MakeModelCommand.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
namespace Tempest\Console\Commands\Generators;
66

7-
use Tempest\Generation\StubFileGenerator;
8-
use Tempest\Generation\HasGeneratorCommand;
9-
use Tempest\Console\Stubs\ModelStub;
10-
use Tempest\Console\Stubs\DatabaseModelStub;
11-
use Tempest\Console\GeneratorCommand;
127
use Tempest\Console\ConsoleArgument;
8+
use Tempest\Console\GeneratorCommand;
9+
use Tempest\Console\Stubs\DatabaseModelStub;
10+
use Tempest\Console\Stubs\ModelStub;
11+
use Tempest\Generation\HasGeneratorCommand;
12+
use Tempest\Generation\StubFileGenerator;
1313

1414
final class MakeModelCommand
1515
{
@@ -25,7 +25,6 @@ public function __invoke(
2525
help: 'The name of the model class to create ( "Model" will be suffixed )',
2626
)]
2727
string $className,
28-
2928
#[ConsoleArgument(
3029
help: 'Whether the model is a database model',
3130
)]

src/Tempest/Generation/src/StubFileGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected function writeFile(): bool
6969
if (! is_string($replacement)) {
7070
continue;
7171
}
72-
72+
7373
$classManipulator->manipulate(fn (StringHelper $code) => $code->replace($placeholder, $replacement));
7474
}
7575

0 commit comments

Comments
 (0)