@@ -4,9 +4,9 @@ discard block |
||
| 4 | 4 | //define possibly missing constants |
| 5 | 5 | //thanks https://stackoverflow.com/questions/31266501/use-of-undefined-constant-curl-sslversion-tlsv1-assumed-curl-sslversion-tlsv1/31267155#answer-32018088 |
| 6 | 6 | defined('CURL_SSLVERSION_DEFAULT') || define('CURL_SSLVERSION_DEFAULT', 0); |
| 7 | -defined('CURL_SSLVERSION_TLSv1') || define('CURL_SSLVERSION_TLSv1', 1); |
|
| 8 | -defined('CURL_SSLVERSION_SSLv2') || define('CURL_SSLVERSION_SSLv2', 2); |
|
| 9 | -defined('CURL_SSLVERSION_SSLv3') || define('CURL_SSLVERSION_SSLv3', 3); |
|
| 7 | +defined('CURL_SSLVERSION_TLSv1') || define('CURL_SSLVERSION_TLSv1', 1); |
|
| 8 | +defined('CURL_SSLVERSION_SSLv2') || define('CURL_SSLVERSION_SSLv2', 2); |
|
| 9 | +defined('CURL_SSLVERSION_SSLv3') || define('CURL_SSLVERSION_SSLv3', 3); |
|
| 10 | 10 | |
| 11 | 11 | //define autoloader |
| 12 | 12 | $d = dirname(__FILE__); |
@@ -16,12 +16,12 @@ discard block |
||
| 16 | 16 | $fileName = ''; |
| 17 | 17 | if ($lastNsPos = strrpos($className, '\\')) { |
| 18 | 18 | $namespace = substr($className, 0, $lastNsPos); |
| 19 | - $className = substr($className, $lastNsPos + 1); |
|
| 20 | - $fileName = str_replace('\\', DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR; |
|
| 19 | + $className = substr($className, $lastNsPos+1); |
|
| 20 | + $fileName = str_replace('\\', DIRECTORY_SEPARATOR, $namespace).DIRECTORY_SEPARATOR; |
|
| 21 | 21 | } |
| 22 | - $fileName .= str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php'; |
|
| 22 | + $fileName .= str_replace('_', DIRECTORY_SEPARATOR, $className).'.php'; |
|
| 23 | 23 | |
| 24 | - if(true === file_exists( $d.'/'.$fileName)) { |
|
| 24 | + if (true === file_exists($d.'/'.$fileName)) { |
|
| 25 | 25 | require $d.'/'.$fileName; |
| 26 | 26 | } |
| 27 | 27 | }); |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | define('MSGAPI_SDK_VERSION', $sdkVersion); |
| 31 | 31 | $cryptTool = Threema\MsgApi\Tools\CryptTool::getInstance(); |
| 32 | 32 | |
| 33 | -if(null === $cryptTool) { |
|
| 33 | +if (null === $cryptTool) { |
|
| 34 | 34 | throw new \Threema\Core\Exception("no supported crypt-tool"); |
| 35 | 35 | } |
| 36 | 36 | |