Plugin Directory

Changeset 2307853


Ignore:
Timestamp:
05/19/2020 10:26:48 AM (6 years ago)
Author:
yaroslawww
Message:

version 0.0.3

Location:
wp-bullhorn-staffing
Files:
1 edited
8 copied

Legend:

Unmodified
Added
Removed
  • wp-bullhorn-staffing/tags/0.0.3/bootstrap.php

    r2307842 r2307853  
    44 * Plugin URI:
    55 * Description: Bullhorn Staffing synchronisation plugin
    6  * Version: 0.0.2
     6 * Version: 0.0.3
    77 * Author: Think studio
    88 * Author URI: https://think.studio/
     
    4848    }
    4949
    50     public function isRestError() {
     50    public function isRestError()
     51    {
    5152        $this->initRestClient();
    5253        return $this->restError;
     
    8283            return (new \WPBullhornStaffing\App\CandidateFinder())->find($user);
    8384        } catch (Exception $e) {
    84             return  null;
     85            return null;
    8586        }
    8687    }
     
    8889    protected function initRestClient()
    8990    {
    90         if($this->restClient) {
     91        if (!defined('BH_CLIENT_ID') || !defined('BH_CLIENT_SECRET')
     92            || !defined('BH_API_USERNAME') || !defined('BH_API_PASSWORD')
     93        ) {
     94            return false;
     95        }
     96        if ($this->restClient) {
    9197            return $this->restClient;
    9298        }
     
    127133        $this->initRestClient();
    128134
    129         if(!$this->restClient) {
     135        if (!$this->restClient) {
    130136            return new WP_Error(500, 'REST not Working');
    131137        }
  • wp-bullhorn-staffing/trunk/bootstrap.php

    r2307842 r2307853  
    44 * Plugin URI:
    55 * Description: Bullhorn Staffing synchronisation plugin
    6  * Version: 0.0.2
     6 * Version: 0.0.3
    77 * Author: Think studio
    88 * Author URI: https://think.studio/
     
    4848    }
    4949
    50     public function isRestError() {
     50    public function isRestError()
     51    {
    5152        $this->initRestClient();
    5253        return $this->restError;
     
    8283            return (new \WPBullhornStaffing\App\CandidateFinder())->find($user);
    8384        } catch (Exception $e) {
    84             return  null;
     85            return null;
    8586        }
    8687    }
     
    8889    protected function initRestClient()
    8990    {
    90         if($this->restClient) {
     91        if (!defined('BH_CLIENT_ID') || !defined('BH_CLIENT_SECRET')
     92            || !defined('BH_API_USERNAME') || !defined('BH_API_PASSWORD')
     93        ) {
     94            return false;
     95        }
     96        if ($this->restClient) {
    9197            return $this->restClient;
    9298        }
     
    127133        $this->initRestClient();
    128134
    129         if(!$this->restClient) {
     135        if (!$this->restClient) {
    130136            return new WP_Error(500, 'REST not Working');
    131137        }
Note: See TracChangeset for help on using the changeset viewer.