$apiKeysArray = explode(':', $apiKeys) ; | $apiKeysArray = explode(':', $apiKeys) ; | ||||
if(count($apiKeysArray) == 2) { | if(count($apiKeysArray) == 2) { | ||||
if($type == 'private') { | if($type == 'private') { | ||||
return $apiKeysArray[1] ; | |||||
$key = $apiKeysArray[1] ; | |||||
} | } | ||||
else { | else { | ||||
return $apiKeysArray[0] ; | |||||
$key = $apiKeysArray[0] ; | |||||
} | } | ||||
return trim($key) ; | |||||
} | } | ||||
} | } | ||||
} | } |