Skip to content

Commit ab1749d

Browse files
authored
Merge pull request #11 from Kristories/develop
Add pint
2 parents 18f2738 + ad40f9d commit ab1749d

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
"illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0"
1414
},
1515
"require-dev": {
16+
"friendsofphp/php-cs-fixer": "^3.0",
17+
"laravel/pint": "^1.18",
1618
"orchestra/testbench": "^4.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0",
17-
"phpunit/phpunit": "^8.4 || ^9.0 || ^10.0",
18-
"friendsofphp/php-cs-fixer": "^3.0"
19+
"phpunit/phpunit": "^8.4 || ^9.0 || ^10.0"
1920
},
2021
"autoload": {
2122
"psr-4": {

src/Console/Commands/HelperMakeCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ class HelperMakeCommand extends GeneratorCommand
3232
*
3333
* @return string
3434
*/
35-
protected function getStub(): string
35+
protected function getStub()
3636
{
37-
return base_path('stubs/helper.stub');
37+
return __DIR__.'/stubs/helper.stub';
3838
}
3939

4040
/**
@@ -43,8 +43,8 @@ protected function getStub(): string
4343
* @param string $rootNamespace
4444
* @return string
4545
*/
46-
protected function getDefaultNamespace($rootNamespace): string
46+
protected function getDefaultNamespace($rootNamespace)
4747
{
48-
return $rootNamespace . '\\' . config('helpers.directory', 'Helpers');
48+
return $rootNamespace.'\\'.config('helpers.directory', 'Helpers');
4949
}
5050
}

0 commit comments

Comments
 (0)