Skip to content

Commit 8b39b97

Browse files
committed
Lint
1 parent 747240a commit 8b39b97

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/Generators/ModelGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,12 +272,12 @@ protected function buildRelationships(Model $model): string
272272
protected function addTraits(Model $model, $stub): string
273273
{
274274
$traits = ['HasFactory'];
275-
275+
276276
if ($model->usesSoftDeletes()) {
277277
$this->addImport($model, 'Illuminate\\Database\\Eloquent\\SoftDeletes');
278278
$traits[] = 'SoftDeletes';
279279
}
280-
280+
281281
if ($model->usesUuids()) {
282282
$this->addImport($model, 'Illuminate\\Database\\Eloquent\\Concerns\\HasUuids');
283283
$traits[] = 'HasUuids';

src/Lexers/ConfigLexer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class ConfigLexer implements Lexer
99
{
1010
private Container $app;
1111

12-
public function __construct(Container $app = null)
12+
public function __construct(?Container $app = null)
1313
{
1414
$this->app = $app ?? Container::getInstance();
1515
}

src/Models/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function addMethod(string $name, array $statements): void
7979
$this->methods[$name] = $statements;
8080
}
8181

82-
public function policy(Policy $policy = null): ?Policy
82+
public function policy(?Policy $policy = null): ?Policy
8383
{
8484
if ($policy) {
8585
$this->policy = $policy;

src/Models/Statements/SendStatement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class SendStatement
2424

2525
private string $subject;
2626

27-
public function __construct(string $mail, ?string $to, array $data, string $type, string $view = null)
27+
public function __construct(string $mail, ?string $to, array $data, string $type, ?string $view = null)
2828
{
2929
$this->mail = $mail;
3030
$this->data = $data;

src/Tracer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Tracer
1010
{
1111
private Filesystem $filesystem;
1212

13-
public function execute(Blueprint $blueprint, Filesystem $filesystem, array $paths = null): array
13+
public function execute(Blueprint $blueprint, Filesystem $filesystem, ?array $paths = null): array
1414
{
1515
$this->filesystem = $filesystem;
1616

0 commit comments

Comments
 (0)