public function github()
    {
        $this->requireAdmin();

        $this->settings['phpci']['github']['id']     = $this->getParam('githubid', '');
        $this->settings['phpci']['github']['secret'] = $this->getParam('githubsecret', '');
        $error                                       = $this->storeSettings();

        $response = new b8\Http\Response\RedirectResponse();

        if ($error) {
            $response->setHeader('Location', PHPCI_URL . 'settings?saved=2');
        } else {
            $response->setHeader('Location', PHPCI_URL . 'settings?saved=1');
        }

        return $response;
    }
public function github()
    {
        $this->requireAdmin();

        $this->settings['phpci']['github']['id']     = $this->getParam('githubid', '');
        $this->settings['phpci']['github']['secret'] = $this->getParam('githubsecret', '');
        $error                                       = $this->storeSettings();

        $response = new b8\Http\Response\RedirectResponse();

        if ($error) {
            $response->setHeader('Location', PHPCI_URL . 'settings?saved=2');
        } else {
            $response->setHeader('Location', PHPCI_URL . 'settings?saved=1');
        }

        return $response;
    }
public function github ( ) { $ this -> requireAdmin ( ) ; $ this -> settings [ 'phpci' ] [ 'github' ] [ 'id' ] = $ this -> getParam ( 'githubid' , '' ) ; $ this -> settings [ 'phpci' ] [ 'github' ] [ 'secret' ] = $ this -> getParam ( 'githubsecret' , '' ) ; $ error = $ this -> storeSettings ( ) ; $ response = new b8 \ Http \ Response \ RedirectResponse ( ) ; if ( $ error ) { $ response -> setHeader ( 'Location' , PHPCI_URL . 'settings?saved=2' ) ; } else { $ response -> setHeader ( 'Location' , PHPCI_URL . 'settings?saved=1' ) ; } return $ response ; }
Save Github settings.
Save Github settings .