Skip to content

Commit

Permalink
refactor: Remove unused param from export CMDs
Browse files Browse the repository at this point in the history
  • Loading branch information
fibble committed Oct 3, 2024
1 parent 3c9fcf0 commit 3ef329f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$this->initializeOutputInterface($output);

$params = [
'reportName' => $input->getOption('report-name'),
'path' => $input->getOption('path'),
'reportName' => $input->getOption('report-name')
];

$result = $this->handleCommand([DataDvaNiExport::create($params)]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$this->initializeOutputInterface($output);

$params = [
'reportName' => $input->getOption('report-name'),
'path' => $input->getOption('path'),
'reportName' => $input->getOption('report-name')
];

$result = $this->handleCommand([DataGovUkExport::create($params)]);
Expand Down
13 changes: 0 additions & 13 deletions app/api/module/Cli/src/Domain/Command/DataDvaNiExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,11 @@ final class DataDvaNiExport extends AbstractCommand
/** @var string */
protected $reportName = null;

/** @var string|null */
protected $path = null;

/**
* @return string
*/
public function getReportName()
{
return $this->reportName;
}

/**
* Optional path to folder where cvs files should be saved
*
* @return string|null
*/
public function getPath()
{
return $this->path;
}
}
12 changes: 0 additions & 12 deletions app/api/module/Cli/src/Domain/Command/DataGovUkExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ final class DataGovUkExport extends AbstractCommand
{
/** @var string */
protected $reportName = null;
/** @var string|null */
protected $path = null;

/**
* @return string
Expand All @@ -23,14 +21,4 @@ public function getReportName()
{
return $this->reportName;
}

/**
* Optional path to folder where cvs files should be saved
*
* @return string|null
*/
public function getPath()
{
return $this->path;
}
}

0 comments on commit 3ef329f

Please sign in to comment.