@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | public $wsdl = 'https://netenberg.com/api/netenberg.wsdl'; |
41 | 41 | |
42 | - public $connected = false; |
|
42 | + public $connected = FALSE; |
|
43 | 43 | |
44 | 44 | /** |
45 | 45 | * the username to use for API access |
@@ -93,21 +93,21 @@ discard block |
||
93 | 93 | * @return void |
94 | 94 | */ |
95 | 95 | public function connect() { |
96 | - $nusoap = false; |
|
97 | - if (null === $this->soapClient) { |
|
96 | + $nusoap = FALSE; |
|
97 | + if (NULL === $this->soapClient) { |
|
98 | 98 | ini_set('soap.wsdl_cache_enabled', '0'); |
99 | 99 | ini_set('max_execution_time', 1000); |
100 | 100 | ini_set('default_socket_timeout', 1000); |
101 | 101 | try { |
102 | 102 | $this->soapClient = new \SoapClient($this->wsdl, ['soap_version' => SOAP_1_1, 'connection_timeout' => 1000, 'trace' => 1, 'exception' => 1]); |
103 | 103 | } catch (\Exception $e) { |
104 | - $nusoap = true; |
|
104 | + $nusoap = TRUE; |
|
105 | 105 | } |
106 | 106 | } |
107 | - if (true === $nusoap) { |
|
107 | + if (TRUE === $nusoap) { |
|
108 | 108 | require_once INCLUDE_ROOT.'/../vendor/detain/nusoap/lib/nusoap.php'; |
109 | 109 | $this->soapClient = new \nusoap_client($this->wsdl); |
110 | - $this->connected = true; |
|
110 | + $this->connected = TRUE; |
|
111 | 111 | } |
112 | 112 | } |
113 | 113 |