Skip to content

Commit df5b58b

Browse files
Fix PHPStan issues
1 parent 1486dd4 commit df5b58b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/DataMakeCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ protected function resolveStubPath($stub): string
3030

3131
protected function getDefaultNamespace($rootNamespace): string
3232
{
33-
$namespace = trim($this->option('namespace') ?? 'Data', '\\');
33+
$namespace = trim($this->option('namespace'), '\\');
3434

3535
return trim($rootNamespace . '\\' . $namespace, '\\');
3636
}
3737

3838
protected function qualifyClass($name): string
3939
{
40-
$suffix = trim($this->option('suffix') ?? 'Data');
40+
$suffix = trim($this->option('suffix'));
4141
if (! empty($suffix) && ! Str::endsWith($name, $suffix)) {
4242
$name = $name . $suffix;
4343
}

0 commit comments

Comments
 (0)