Skip to content

Commit

Permalink
Merge pull request #11 from Kristories/develop
Browse files Browse the repository at this point in the history
Add pint
  • Loading branch information
Kristories authored Oct 22, 2024
2 parents 18f2738 + ad40f9d commit ab1749d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
"illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
"laravel/pint": "^1.18",
"orchestra/testbench": "^4.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0",
"phpunit/phpunit": "^8.4 || ^9.0 || ^10.0",
"friendsofphp/php-cs-fixer": "^3.0"
"phpunit/phpunit": "^8.4 || ^9.0 || ^10.0"
},
"autoload": {
"psr-4": {
Expand Down
8 changes: 4 additions & 4 deletions src/Console/Commands/HelperMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ class HelperMakeCommand extends GeneratorCommand
*
* @return string
*/
protected function getStub(): string
protected function getStub()
{
return base_path('stubs/helper.stub');
return __DIR__.'/stubs/helper.stub';
}

/**
Expand All @@ -43,8 +43,8 @@ protected function getStub(): string
* @param string $rootNamespace
* @return string
*/
protected function getDefaultNamespace($rootNamespace): string
protected function getDefaultNamespace($rootNamespace)
{
return $rootNamespace . '\\' . config('helpers.directory', 'Helpers');
return $rootNamespace.'\\'.config('helpers.directory', 'Helpers');
}
}

0 comments on commit ab1749d

Please sign in to comment.