Skip to content

Commit

Permalink
Fix PHPStan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche committed Oct 23, 2024
1 parent 1486dd4 commit df5b58b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/DataMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ protected function resolveStubPath($stub): string

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

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

protected function qualifyClass($name): string
{
$suffix = trim($this->option('suffix') ?? 'Data');
$suffix = trim($this->option('suffix'));
if (! empty($suffix) && ! Str::endsWith($name, $suffix)) {
$name = $name . $suffix;
}
Expand Down

0 comments on commit df5b58b

Please sign in to comment.