Skip to content

Commit 16548b1

Browse files
feat(#608): Extracted '$this->pathFragment . DS . $args->getOption('source') . DS' into an intermediate variable
1 parent 73c3579 commit 16548b1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Command/BakeSimpleMigrationCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ public function fileName($name): string
6767
*/
6868
public function getPath(Arguments $args): string
6969
{
70-
$path = ROOT . DS . $this->pathFragment . DS . $args->getOption('source') . DS;
70+
$migrationFolder = $this->pathFragment . DS . $args->getOption('source') . DS;
71+
$path = ROOT . DS . $migrationFolder;
7172
if ($this->plugin) {
72-
$path = $this->_pluginPath($this->plugin) . $this->pathFragment . DS . $args->getOption('source') . DS;
73+
$path = $this->_pluginPath($this->plugin) . $migrationFolder;
7374
}
7475

7576
return str_replace('/', DS, $path);

0 commit comments

Comments
 (0)