Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:kiwilan/typescriptable-laravel i…
Browse files Browse the repository at this point in the history
…nto develop
  • Loading branch information
ewilan-riviere committed Jul 24, 2024
2 parents 8d9122e + cb3da82 commit 794f7db
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Typed/Eloquent/EloquentTypeParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private function parseModels(array $schemas): array
foreach ($schemas as $schema) {
$namespace = $schema->namespace();
/** @var Model */
$instance = new $namespace();
$instance = new $namespace;
$tableName = $instance->getTable();

if ($this->app->databasePrefix()) {
Expand Down
2 changes: 1 addition & 1 deletion src/Typed/Eloquent/Parser/ParserModelFillable.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static function make(SchemaClass $schemaClass): self

$model = $self->namespace;
/** @var Model */
$instance = new $model();
$instance = new $model;

$key = $instance->getKeyName();
$casts = $instance->getCasts();
Expand Down
2 changes: 1 addition & 1 deletion src/Typed/Route/Printer/PrinterRouteList.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PrinterRouteList
*/
public static function make(Collection $routes): string
{
$self = new self();
$self = new self;

$contents = [];
foreach ($routes as $route) {
Expand Down
2 changes: 1 addition & 1 deletion src/Typed/Utils/Schema/SchemaClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static function make(SplFileInfo $file, string $basePath): ?self

$instance = null;
try {
$instance = new $namespace();
$instance = new $namespace;
} catch (\Throwable $th) {
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/EloquentConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
'Kiwilan\\Typescriptable\\Tests\\Data\\Models\\SushiTest',
]]);

$config = new EloquentConfig();
$config = new EloquentConfig;

expect($config->modelsPath)->toContain('vendor/orchestra/testbench-core/laravel/app/Models');
expect($config->outputPath)->toContain('vendor/orchestra/testbench-core/laravel/resources/js');
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static function pdo(Driver $driver): PDO
*/
private static function getDriver(?string $type = null): Driver
{
$driver = new Driver();
$driver = new Driver;

$dotenv = Dotenv::createMutable(getcwd());
$data = $dotenv->load();
Expand Down

0 comments on commit 794f7db

Please sign in to comment.