Skip to content

Commit dc69259

Browse files
committed
formatting
1 parent b130ad4 commit dc69259

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Illuminate/Database/Migrations/MigrationCreator.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class MigrationCreator
2121
*
2222
* @var \Illuminate\Filesystem\Filesystem
2323
*/
24-
protected $customStubs;
24+
protected $customStubPath;
2525

2626
/**
2727
* The registered post create hooks.
@@ -34,13 +34,13 @@ class MigrationCreator
3434
* Create a new migration creator instance.
3535
*
3636
* @param \Illuminate\Filesystem\Filesystem $files
37-
* @param string $customStubs
37+
* @param string $customStubPath
3838
* @return void
3939
*/
40-
public function __construct(Filesystem $files, $customStubs)
40+
public function __construct(Filesystem $files, $customStubPath)
4141
{
4242
$this->files = $files;
43-
$this->customStubs = $customStubs;
43+
$this->customStubPath = $customStubPath;
4444
}
4545

4646
/**
@@ -110,15 +110,15 @@ protected function ensureMigrationDoesntAlreadyExist($name, $migrationPath = nul
110110
protected function getStub($table, $create)
111111
{
112112
if (is_null($table)) {
113-
$stub = $this->files->exists($customPath = $this->customStubs.'/migration.stub')
113+
$stub = $this->files->exists($customPath = $this->customStubPath.'/migration.stub')
114114
? $customPath
115115
: $this->stubPath().'/migration.stub';
116116
} elseif ($create) {
117-
$stub = $this->files->exists($customPath = $this->customStubs.'/migration.create.stub')
117+
$stub = $this->files->exists($customPath = $this->customStubPath.'/migration.create.stub')
118118
? $customPath
119119
: $this->stubPath().'/migration.create.stub';
120120
} else {
121-
$stub = $this->files->exists($customPath = $this->customStubs.'/migration.update.stub')
121+
$stub = $this->files->exists($customPath = $this->customStubPath.'/migration.update.stub')
122122
? $customPath
123123
: $this->stubPath().'/migration.update.stub';
124124
}

0 commit comments

Comments
 (0)