From 16548b1ee5bf738ae411e1775d5ba2dde030c581 Mon Sep 17 00:00:00 2001 From: "t.golisch" Date: Fri, 30 Jun 2023 14:17:58 +0200 Subject: [PATCH] feat(#608): Extracted '$this->pathFragment . DS . $args->getOption('source') . DS' into an intermediate variable --- src/Command/BakeSimpleMigrationCommand.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Command/BakeSimpleMigrationCommand.php b/src/Command/BakeSimpleMigrationCommand.php index ef943aca..37f2dca8 100644 --- a/src/Command/BakeSimpleMigrationCommand.php +++ b/src/Command/BakeSimpleMigrationCommand.php @@ -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);