Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Aug 31, 2020
1 parent cdf19b0 commit b593c62
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Console/GeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,12 @@ protected function isReservedName($name)
}

/**
* Get the views directory's path.
* Get the first view directory path from the application configuration.
*
* @param string $path
* @param string $path
* @return string
*/
protected function viewsDirectory($path = '')
protected function viewPath($path = '')
{
$views = $this->laravel['config']['view.paths'][0] ?? resource_path('views');

Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/ComponentMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function handle()
*/
protected function writeView()
{
$path = $this->viewsDirectory(
$path = $this->viewPath(
str_replace('.', '/', 'components.'.$this->getView())
);

Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/MailMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function handle()
*/
protected function writeMarkdownTemplate()
{
$path = $this->viewsDirectory(
$path = $this->viewPath(
str_replace('.', '/', $this->option('markdown')).'.blade.php'
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function handle()
*/
protected function writeMarkdownTemplate()
{
$path = $this->viewsDirectory(
$path = $this->viewPath(
str_replace('.', '/', $this->option('markdown')).'.blade.php'
);

Expand Down

0 comments on commit b593c62

Please sign in to comment.