public function run(): void
    {
        if (!$this->config->isLoadedFromFile()) {
            throw new \RuntimeException('No configuration to edit');
        }

        $this->checkHook();
        $this->checkChange();

        $change = $this->createChange();
        $change->applyTo($this->config);
        Config\Util::writeToDisk($this->config);

        $this->io->write('Configuration successfully updated');
    }
public function run(): void
    {
        if (!$this->config->isLoadedFromFile()) {
            throw new \RuntimeException('No configuration to edit');
        }

        $this->checkHook();
        $this->checkChange();

        $change = $this->createChange();
        $change->applyTo($this->config);
        Config\Util::writeToDisk($this->config);

        $this->io->write('Configuration successfully updated');
    }
public function run ( ) : void { if ( ! $ this -> config -> isLoadedFromFile ( ) ) { throw new \ RuntimeException ( 'No configuration to edit' ) ; } $ this -> checkHook ( ) ; $ this -> checkChange ( ) ; $ change = $ this -> createChange ( ) ; $ change -> applyTo ( $ this -> config ) ; Config \ Util :: writeToDisk ( $ this -> config ) ; $ this -> io -> write ( 'Configuration successfully updated' ) ; }
Executes the Runner

@return void
@throws \RuntimeException
Executes the Runner