digipolisgent/robo-digipolis-symfony

View on GitHub

Showing 6 of 30 total issues

Method handle has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function handle(GenericEvent $event)
    {
        $event->stopPropagation();
        $archiveName = $event->hasArgument('archiveName') ? $event->getArgument('archiveName') : null;
        $archive = is_null($archiveName) ? TimeHelper::getInstance()->getTime() . '.tar.gz' : $archiveName;
Severity: Minor
Found in src/EventHandler/BuildTaskHandler.php - About 1 hr to fix

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

            $sourceUser,
            $sourceHost,
            $sourceKeyFile,
            $destinationUser,
            $destinationHost,
    Severity: Major
    Found in src/Robo/Plugin/Commands/DigipolisSymfonySyncCommand.php - About 1 hr to fix

      Method defaultDbConfig has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function defaultDbConfig()
          {
              $rootDir = $this->getConfig()->get('digipolis.root.project', false);
              if (!$rootDir) {
                  return false;
      Severity: Minor
      Found in src/Robo/Plugin/Commands/DigipolisSymfonyDefaultHooksCommands.php - About 1 hr to fix

        Avoid too many return statements within this method.
        Open

                return $value;
        Severity: Major
        Found in src/Robo/Plugin/Commands/DigipolisSymfonyDefaultHooksCommands.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return;
          Severity: Major
          Found in src/Robo/Plugin/Commands/DigipolisSymfonyDefaultHooksCommands.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                        return substr($value, 1, -1);
            Severity: Major
            Found in src/Robo/Plugin/Commands/DigipolisSymfonyDefaultHooksCommands.php - About 30 mins to fix
              Severity
              Category
              Status
              Source
              Language