src/Command/Cashout/GenerateCommand.php
Method configure
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function configure()
{
$this->setName('cashout:generate')
->setDescription('Generate the cashout operations')
->addOption(
Method execute
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function execute(InputInterface $input, OutputInterface $output)
{
$batch = new Batch($this->getName());
$this->batchManager->save($batch);
Method getCycleDate
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getCycleDate(array $cycleDays, DateTime $cronDate)
{
$currentDay = (int) date('j', $cronDate->getTimestamp());
$currentMonth = (int) date('n', $cronDate->getTimestamp());
$currentYear = (int) date('Y', $cronDate->getTimestamp());
Method __construct
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
LoggerInterface $logger,
CashoutInitializer $processor,
array $cycleDays,
$cycleHour,
$cycleMinute,