File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
swagger-config/marketing/php/templates Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,9 @@ class Configuration
4141
4242 public function setConfig($config = array())
4343 {
44- $apiKey = isset( $config [' apiKey' ]) ? $ config [ ' apiKey ' ] : ' ' ;
45- $accessToken = isset( $config [' accessToken' ]) ? $ config [ ' accessToken ' ] : ' ' ;
46- $server = isset( $config [' server' ]) ? $ config [ ' server ' ] : ' invalid-server' ;
44+ $apiKey = $config [' apiKey' ] ?? ' ' ;
45+ $accessToken = $config [' accessToken' ] ?? ' ' ;
46+ $server = $config [' server' ] ?? ' invalid-server' ;
4747 $host = str_replace(' server' , $server , $this -> getHost ());
4848
4949 // Basic Authentication
@@ -74,7 +74,7 @@ class Configuration
7474
7575 public function getApiKey($apiKeyIdentifier)
7676 {
77- return isset( $this -> apiKeys [$apiKeyIdentifier ]) ? $ this -> apiKeys [ $ apiKeyIdentifier ] : null;
77+ return $this -> apiKeys [$apiKeyIdentifier ] ?? null;
7878 }
7979
8080 public function setApiKeyPrefix($apiKeyIdentifier, $prefix)
@@ -85,7 +85,7 @@ class Configuration
8585
8686 public function getApiKeyPrefix($apiKeyIdentifier)
8787 {
88- return isset( $this -> apiKeyPrefixes [$apiKeyIdentifier ]) ? $ this -> apiKeyPrefixes [ $ apiKeyIdentifier ] : null;
88+ return $this -> apiKeyPrefixes [$apiKeyIdentifier ] ?? null;
8989 }
9090
9191 public function setAccessToken($accessToken)
You can’t perform that action at this time.
0 commit comments