hipay/hipay-wallet-cashout-mirakl-integration

View on GitHub
src/Command/Cashout/GenerateCommand.php

Summary

Maintainability
B
5 hrs
Test Coverage

Method configure has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function configure()
    {
        $this->setName('cashout:generate')
            ->setDescription('Generate the cashout operations')
            ->addOption(
Severity: Minor
Found in src/Command/Cashout/GenerateCommand.php - About 1 hr to fix

    Method execute has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        protected function execute(InputInterface $input, OutputInterface $output)
        {
            $batch = new Batch($this->getName());
            $this->batchManager->save($batch);
    
    
    Severity: Minor
    Found in src/Command/Cashout/GenerateCommand.php - About 1 hr to fix

      Method getCycleDate has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      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());
      Severity: Minor
      Found in src/Command/Cashout/GenerateCommand.php - About 1 hr to fix

        Method __construct has 9 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                LoggerInterface $logger,
                CashoutInitializer $processor,
                array $cycleDays,
                $cycleHour,
                $cycleMinute,
        Severity: Major
        Found in src/Command/Cashout/GenerateCommand.php - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status