Skip to content

Commit 1620700

Browse files
committed
fix str helper usage
1 parent 8afad67 commit 1620700

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Commands/CreateFormActionCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ protected function determineName(): string
3737
{
3838
// if the name is already set, return it
3939
if ($this->argument('name')) {
40-
return str()->studly($this->argument('name'))->trim();
40+
return str($this->argument('name'))->studly()->trim();
4141
}
4242

4343
$name = $this->ask('What should the form action be called');
@@ -48,17 +48,17 @@ protected function determineName(): string
4848
return $this->determineName();
4949
}
5050

51-
return str()->studly($name)->trim();
51+
return str($name)->studly()->trim();
5252
}
5353

5454
protected function determineNamespace(): string
5555
{
5656
// if the namespace is already set, return it
5757
if ($this->option('namespace')) {
58-
return str()->studly($this->option('namespace'))->trim();
58+
return str($this->option('namespace'))->studly()->trim();
5959
}
6060

61-
return str()->studly('App\\FormActions')->trim();
61+
return str('App\\FormActions')->studly()->trim();
6262
}
6363

6464
protected function getStub(): string

0 commit comments

Comments
 (0)