digipolisgent/robo-digipolis-symfony

View on GitHub
src/EventHandler/BuildTaskHandler.php

Summary

Maintainability
A
1 hr
Test Coverage

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

    Line indented incorrectly; expected at least 8 spaces, found 6
    Open

          return parent::getPriority() - 100;

    Expected 0 spaces before closing bracket; newline found
    Open

            $collection->taskExec((string) CommandBuilder::create('rm')

    Opening brace should be on a new line
    Open

        public function getPriority(): int {

    There are no issues that match your filters.

    Category
    Status