Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply fixes from StyleCI #86

Merged
merged 1 commit into from
Mar 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function redirect_to_new()
{

header('Location: ' . $_SERVER['PHP_SELF'] . '?action=new');
exit();
exit;
}

/**
Expand Down Expand Up @@ -333,7 +333,7 @@ function print_tokens($access_token, $refresh_token)
echo 'All fields are mandatory!<br>' . PHP_EOL;
echo '<a href="' . $_SERVER['PHP_SELF'] . '?action=new">Start again</a>';

exit();
exit;
}

$_SESSION['clientid'] = $_REQUEST['clientid'];
Expand All @@ -355,7 +355,7 @@ function print_tokens($access_token, $refresh_token)

echo 'Invalid State! You will have to start again!<br>';
echo '<a href="' . $_SERVER['PHP_SELF'] . '?action=new">Start again</a>';
exit();
exit;
}

// Clear the state value.
Expand Down
2 changes: 1 addition & 1 deletion src/Cache/MemcachedCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function __construct($instance = null)
$this->memcached->addServer($configuration->memcached_cache_host, $configuration->memcached_cache_port, 0);

if ($this->is_memcached)
$this->memcached->setOption(\Memcached::OPT_COMPRESSION, ($configuration->memcached_cache_compressed));
$this->memcached->setOption(\Memcached::OPT_COMPRESSION, $configuration->memcached_cache_compressed);
else
$this->flags = ($configuration->memcached_cache_compressed) ? MEMCACHE_COMPRESSED : 0;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Fetchers/GuzzleFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ public function stripRefreshTokenValue(string $uri): string

// If we have 'refresh_token' in the URI, strip it.
if (strpos($uri, 'refresh_token'))
return Uri::withoutQueryValue((new Uri($uri)), 'refresh_token')
return Uri::withoutQueryValue(new Uri($uri), 'refresh_token')
->__toString();

return $uri;
Expand Down