Skip to content

Commit e296da4

Browse files
committed
🎨 Coding styles
1 parent c89387d commit e296da4

File tree

3 files changed

+31
-29
lines changed

3 files changed

+31
-29
lines changed

src/Tempest/Core/src/PublishesFiles.php

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

55
namespace Tempest\Core;
66

7+
use Closure;
8+
use Exception;
9+
use Tempest\Console\Exceptions\ConsoleException;
10+
use Tempest\Console\HasConsole;
11+
use Tempest\Container\Inject;
12+
use Tempest\Discovery\DoNotDiscover;
13+
use Tempest\Generation\ClassManipulator;
14+
use Tempest\Generation\DataObjects\StubFile;
15+
use Tempest\Generation\Enums\StubFileType;
16+
use Tempest\Generation\Exceptions\FileGenerationAbortedException;
17+
use Tempest\Generation\Exceptions\FileGenerationFailedException;
18+
use Tempest\Generation\StubFileGenerator;
19+
use Tempest\Reflection\FunctionReflector;
20+
use Tempest\Support\Str\ImmutableString;
21+
use Tempest\Validation\Rule;
22+
use Tempest\Validation\Rules\EndsWith;
23+
use Tempest\Validation\Rules\NotEmpty;
24+
use Throwable;
25+
726
use function strlen;
827
use function Tempest\root_path;
9-
use function Tempest\Support\str;
10-
use function Tempest\Support\path;
1128
use function Tempest\Support\Namespace\to_base_class_name;
12-
use const JSON_UNESCAPED_SLASHES;
13-
use const JSON_PRETTY_PRINT;
14-
use Throwable;
15-
use Tempest\Validation\Rules\NotEmpty;
16-
use Tempest\Validation\Rules\EndsWith;
17-
use Tempest\Validation\Rule;
18-
use Tempest\Support\Str\ImmutableString;
19-
use Tempest\Reflection\FunctionReflector;
20-
use Tempest\Generation\StubFileGenerator;
21-
use Tempest\Generation\Exceptions\FileGenerationFailedException;
22-
use Tempest\Generation\Exceptions\FileGenerationAbortedException;
23-
use Tempest\Generation\Enums\StubFileType;
24-
25-
use Tempest\Generation\DataObjects\StubFile;
26-
use Tempest\Generation\ClassManipulator;
27-
use Tempest\Discovery\DoNotDiscover;
28-
use Tempest\Container\Inject;
29-
use Tempest\Console\HasConsole;
29+
use function Tempest\Support\path;
30+
use function Tempest\Support\str;
3031

31-
use Tempest\Console\Exceptions\ConsoleException;
32-
use Exception;
33-
use Closure;
32+
use const JSON_PRETTY_PRINT;
33+
use const JSON_UNESCAPED_SLASHES;
3434

3535
/**
3636
* Provides a bunch of methods to publish and generate files and work with common user input.

src/Tempest/Database/src/Commands/MakeMigrationCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Tempest\Generation\Exceptions\FileGenerationFailedException;
1616
use Tempest\Validation\Rules\EndsWith;
1717
use Tempest\Validation\Rules\NotEmpty;
18+
1819
use function Tempest\Support\str;
1920

2021
final class MakeMigrationCommand

tests/Integration/Database/Commands/MakeMigrationCommandTest.php

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

55
namespace Tests\Tempest\Integration\Database\Commands;
66

7-
use Tests\Tempest\Integration\FrameworkIntegrationTestCase;
8-
use Tempest\Core\ComposerNamespace;
9-
use PHPUnit\Framework\Attributes\Test;
107
use PHPUnit\Framework\Attributes\DataProvider;
8+
use PHPUnit\Framework\Attributes\Test;
9+
use Tempest\Core\ComposerNamespace;
10+
use Tests\Tempest\Integration\FrameworkIntegrationTestCase;
1111

1212
/**
1313
* @internal
@@ -67,13 +67,14 @@ public static function command_input_provider(): array
6767
],
6868
];
6969
}
70-
70+
7171
#[Test]
72-
public function raw_migration(): void {
72+
public function raw_migration(): void
73+
{
7374
$this->console
7475
->call('make:migration book_migration raw')
7576
->submit();
76-
77+
7778
$filePath = sprintf('App/%s_book_migration.sql', date('Y-m-d'));
7879
$this->installer
7980
->assertFileExists($filePath)

0 commit comments

Comments
 (0)