mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-03-05 13:30:32 -05:00
style fixes
This commit is contained in:
@@ -65,7 +65,7 @@ class ShlinkProxy
|
||||
'http' => array(
|
||||
'method' => 'POST',
|
||||
'header' => "Content-Type: application/json\r\n" .
|
||||
"X-Api-Key: " . $shlink_api_key . "\r\n",
|
||||
'X-Api-Key: ' . $shlink_api_key . "\r\n",
|
||||
'content' => json_encode(
|
||||
array(
|
||||
'longUrl' => $link,
|
||||
@@ -76,8 +76,8 @@ class ShlinkProxy
|
||||
)
|
||||
);
|
||||
if ($data === false) {
|
||||
$http_response_header = $http_response_header ?? [];
|
||||
$statusCode = '';
|
||||
$http_response_header = $http_response_header ?? array();
|
||||
$statusCode = '';
|
||||
if (!empty($http_response_header) && preg_match('/HTTP\/\d+\.\d+\s+(\d+)/', $http_response_header[0], $matches)) {
|
||||
$statusCode = $matches[1];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user