Skip to content

Commit b593c62

Browse files
committed
formatting
1 parent cdf19b0 commit b593c62

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/Illuminate/Console/GeneratorCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,12 +367,12 @@ protected function isReservedName($name)
367367
}
368368

369369
/**
370-
* Get the views directory's path.
370+
* Get the first view directory path from the application configuration.
371371
*
372-
* @param string $path
372+
* @param string $path
373373
* @return string
374374
*/
375-
protected function viewsDirectory($path = '')
375+
protected function viewPath($path = '')
376376
{
377377
$views = $this->laravel['config']['view.paths'][0] ?? resource_path('views');
378378

src/Illuminate/Foundation/Console/ComponentMakeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function handle()
5353
*/
5454
protected function writeView()
5555
{
56-
$path = $this->viewsDirectory(
56+
$path = $this->viewPath(
5757
str_replace('.', '/', 'components.'.$this->getView())
5858
);
5959

src/Illuminate/Foundation/Console/MailMakeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function handle()
5151
*/
5252
protected function writeMarkdownTemplate()
5353
{
54-
$path = $this->viewsDirectory(
54+
$path = $this->viewPath(
5555
str_replace('.', '/', $this->option('markdown')).'.blade.php'
5656
);
5757

src/Illuminate/Foundation/Console/NotificationMakeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function handle()
5151
*/
5252
protected function writeMarkdownTemplate()
5353
{
54-
$path = $this->viewsDirectory(
54+
$path = $this->viewPath(
5555
str_replace('.', '/', $this->option('markdown')).'.blade.php'
5656
);
5757

0 commit comments

Comments
 (0)