src/Shell/ValidateShell.php
public function main(string $modules = '')
    {
        $this->info('Checking modules configuration');
        $this->hr();

        $this->modules = Utility::getModules();
        $this->skipWarnings = (bool)$this->param('no-warnings');

        if (empty($this->modules)) {
            $this->warn('Did not find any modules');
            exit();
        }

        $modules = '' === $modules ? $this->modules : explode(',', $modules);
        $errorsCount = $this->validateModules($modules);
        if ($errorsCount > 0) {
            $this->abort("Errors found: $errorsCount.  Validation failed!");
        }
        $this->success('No errors found. Validation passed!');
    }
public function main(string $modules = '')
    {
        $this->info('Checking modules configuration');
        $this->hr();

        $this->modules = Utility::getModules();
        $this->skipWarnings = (bool)$this->param('no-warnings');

        if (empty($this->modules)) {
            $this->warn('Did not find any modules');
            exit();
        }

        $modules = '' === $modules ? $this->modules : explode(',', $modules);
        $errorsCount = $this->validateModules($modules);
        if ($errorsCount > 0) {
            $this->abort("Errors found: $errorsCount.  Validation failed!");
        }
        $this->success('No errors found. Validation passed!');
    }
public function main ( string $ modules = '' ) { $ this -> info ( 'Checking modules configuration' ) ; $ this -> hr ( ) ; $ this -> modules = Utility :: getModules ( ) ; $ this -> skipWarnings = ( bool ) $ this -> param ( 'no-warnings' ) ; if ( empty ( $ this -> modules ) ) { $ this -> warn ( 'Did not find any modules' ) ; exit ( ) ; } $ modules = '' === $ modules ? $ this -> modules : explode ( ',' , $ modules ) ; $ errorsCount = $ this -> validateModules ( $ modules ) ; if ( $ errorsCount > 0 ) { $ this -> abort ( "Errors found: $errorsCount.  Validation failed!" ) ; } $ this -> success ( 'No errors found. Validation passed!' ) ; }
Main method for shell execution

@param string $modules Comma-separated list of module names to validate
@return bool|int|void
Main method for shell execution