Skip to content

Commit

Permalink
feat(#608): Extracted '$this->pathFragment . DS . $args->getOption('s…
Browse files Browse the repository at this point in the history
…ource') . DS' into an intermediate variable
  • Loading branch information
telepathPiddlingAccent committed Jun 30, 2023
1 parent 73c3579 commit 16548b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Command/BakeSimpleMigrationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ public function fileName($name): string
*/
public function getPath(Arguments $args): string
{
$path = ROOT . DS . $this->pathFragment . DS . $args->getOption('source') . DS;
$migrationFolder = $this->pathFragment . DS . $args->getOption('source') . DS;
$path = ROOT . DS . $migrationFolder;
if ($this->plugin) {
$path = $this->_pluginPath($this->plugin) . $this->pathFragment . DS . $args->getOption('source') . DS;
$path = $this->_pluginPath($this->plugin) . $migrationFolder;
}

return str_replace('/', DS, $path);
Expand Down

0 comments on commit 16548b1

Please sign in to comment.