private static function runShellCommand($commandString): string
    {
        $shellCommand = new Command();
        $shellCommand->setCommand($commandString);

        if ($shellCommand->execute()) {
            $result = $shellCommand->getOutput();
        } else {
            $result = $shellCommand->getError();
        }

        return $result;
    }
private static function runShellCommand($commandString): string
    {
        $shellCommand = new Command();
        $shellCommand->setCommand($commandString);

        if ($shellCommand->execute()) {
            $result = $shellCommand->getOutput();
        } else {
            $result = $shellCommand->getError();
        }

        return $result;
    }
private static function runShellCommand ( $ commandString ) : string { $ shellCommand = new Command ( ) ; $ shellCommand -> setCommand ( $ commandString ) ; if ( $ shellCommand -> execute ( ) ) { $ result = $ shellCommand -> getOutput ( ) ; } else { $ result = $ shellCommand -> getError ( ) ; } return $ result ; }
Runs a shell command through mikehaertl\shellcommand

@param $commandString

@return string
Runs a shell command through mikehaertl \ shellcommand