Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into pietrantonio91/main
Browse files Browse the repository at this point in the history
  • Loading branch information
yondifon committed Aug 8, 2023
2 parents f80cdd9 + 80a1565 commit 044689d
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 228 deletions.
216 changes: 0 additions & 216 deletions .php-cs-fixer.dist.php

This file was deleted.

4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"require-dev": {
"ext-pdo": "*",
"pestphp/pest": "^1.20",
"friendsofphp/php-cs-fixer": "^3.1",
"orchestra/testbench": "^7.0"
"orchestra/testbench": "^7.0",
"laravel/pint": "^1.10"
},
"extra": {
"laravel": {
Expand Down
7 changes: 7 additions & 0 deletions pint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"preset": "laravel",
"rules": {
"use_arrow_functions": true,
"psr_autoloading": true
}
}
3 changes: 1 addition & 2 deletions src/Console/Commands/NanoidMigrateMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ class NanoidMigrateMakeCommand extends MigrateMakeCommand
/**
* Create a new migration install command instance.
*
* @param \Illuminate\Database\Migrations\MigrationCreator $creator
*
* @param \Illuminate\Database\Migrations\MigrationCreator $creator
* @return void
*/
public function __construct(MigrationCreator $creator, Composer $composer)
Expand Down
7 changes: 3 additions & 4 deletions src/Console/Commands/NanoidModelMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class NanoidModelMakeCommand extends ModelMakeCommand
*/
protected function getStub(): string
{
return realpath(__DIR__ . '/../../Eloquent/stubs/nanoid.model.stub');
return realpath(__DIR__.'/../../Eloquent/stubs/nanoid.model.stub');
}

/**
Expand All @@ -58,16 +58,15 @@ protected function createMigration()
$table = Str::snake(Str::pluralStudly(class_basename($this->argument('name'))));

$this->call(NanoidMigrateMakeCommand::class, [
'name' => "create_{$table}_table",
'name' => "create_{$table}_table",
'--create' => $table,
]);
}

/**
* Get the value of a command option.
*
* @param null|string $key
*
* @param null|string $key
* @return null|array|bool|string
*/
public function option($key = null)
Expand Down
2 changes: 1 addition & 1 deletion src/Database/Migrations/MigrationCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public function __construct(Filesystem $files, $customStubPath = null)

public function stubPath()
{
return __DIR__ . '/stubs';
return __DIR__.'/stubs';
}
}
2 changes: 1 addition & 1 deletion src/Eloquent/InteractsWithNanoid.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ public function generateNanoid(): string
{
$client = new Client();

return $this->nanoidPrefix . $client->generateId($this->getNanoidLength(), Client::MODE_DYNAMIC);
return $this->nanoidPrefix.$client->generateId($this->getNanoidLength(), Client::MODE_DYNAMIC);
}
}
3 changes: 1 addition & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ protected function setUpDatabase(): void
/**
* Get package providers.
*
* @param \Illuminate\Foundation\Application $app
*
* @param \Illuminate\Foundation\Application $app
* @return array
*/
protected function getPackageProviders($app)
Expand Down

0 comments on commit 044689d

Please sign in to comment.