autowp/external-login-service

View on GitHub

Showing 72 of 72 total issues

The method getData() has an NPath complexity of 19683. The configured NPath complexity threshold is 200.
Open

public function getData(array $options): Result
{
$provider = $this->getProvider();
 
$ownerDetails = $provider->getResourceOwner($this->accessToken);
Severity: Minor
Found in src/Facebook.php by phpmd

Avoid using static access to class '\Laminas\Uri\UriFactory' in method 'setSizeParam'.
Open

$uri = UriFactory::factory($url);
Severity: Minor
Found in src/Google.php by phpmd

The method getData() has a Cyclomatic Complexity of 19. The configured cyclomatic complexity threshold is 10.
Open

public function getData(array $options): Result
{
$provider = $this->getProvider();
 
$ownerDetails = $provider->getResourceOwner($this->accessToken);
Severity: Minor
Found in src/Facebook.php by phpmd

The method getData() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10.
Open

public function getData(array $options): Result
{
$provider = $this->getProvider();
 
$ownerDetails = $provider->getResourceOwner($this->accessToken);
Severity: Minor
Found in src/GooglePlus.php by phpmd

The method getFriends() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10.
Open

public function getFriends(): array
{
if (! $this->accessToken) {
throw new ExternalLoginServiceException("Access token not provided");
}
Severity: Minor
Found in src/Facebook.php by phpmd

The method getData() has a Cyclomatic Complexity of 14. The configured cyclomatic complexity threshold is 10.
Open

public function getData(array $options): Result
{
$provider = $this->getProvider();
 
if (isset($options['language'])) {
Severity: Minor
Found in src/Vk.php by phpmd

Parameter $name is never used
Open

public function __invoke(ContainerInterface $container, $name, ?array $options = null): PluginManager
Severity: Minor
Found in src/PluginManagerFactory.php by phan

Possibly zero references to public method \Autowp\ExternalLoginService\Provider\FacebookProvider::getDefaultScopes()
Open

public function getDefaultScopes(): array
Severity: Minor
Found in src/Provider/FacebookProvider.php by phan

Possibly zero references to protected method \Autowp\ExternalLoginService\GooglePlus::getFriendsAuthorizationUrl()
Open

protected function getFriendsAuthorizationUrl(): string
Severity: Minor
Found in src/GooglePlus.php by phan

Possibly zero references to public method \Autowp\ExternalLoginService\GooglePlus::getFriendsUrl()
Open

public function getFriendsUrl(): string
Severity: Minor
Found in src/GooglePlus.php by phan

Possibly zero references to public method \Autowp\ExternalLoginService\Vk::getData()
Open

public function getData(array $options): Result
Severity: Minor
Found in src/Vk.php by phan

Parameter $options is never used
Open

public function getData(array $options): Result
Severity: Minor
Found in src/Linkedin.php by phan

Possibly zero references to public property \Autowp\ExternalLoginService\Provider\VkProvider->scopes
Open

public $scopes = [
Severity: Minor
Found in src/Provider/VkProvider.php by phan

syntax error, unexpected '?', expecting function (T_FUNCTION) or const (T_CONST)
Open

protected ?AbstractProvider $provider;
Severity: Critical
Found in src/AbstractLeagueOAuth2.php by phan

Parameter $options is never used
Open

public function getData(array $options): Result
Severity: Minor
Found in src/Github.php by phan

Possibly zero references to public method \Autowp\ExternalLoginService\Github::getFriendsUrl()
Open

public function getFriendsUrl(): string
Severity: Minor
Found in src/Github.php by phan

Possibly zero references to public method \Autowp\ExternalLoginService\Module::getConfig()
Open

public function getConfig(): array
Severity: Minor
Found in src/Module.php by phan

syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)
Open

protected array $options;
Severity: Critical
Found in src/AbstractService.php by phan

Possibly zero references to public method \Autowp\ExternalLoginService\Github::getData()
Open

public function getData(array $options): Result
Severity: Minor
Found in src/Github.php by phan

Possibly zero references to public method \Autowp\ExternalLoginService\GooglePlus::getFriends()
Open

public function getFriends(): array
Severity: Minor
Found in src/GooglePlus.php by phan
Severity
Category
Status
Source
Language