src/Google.php
Showing 5 of 5 total issues
Method getData
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getData(array $options): Result { $clientIDs = preg_split("/[[:space:]]+/isu", $this->options['clientId']); foreach ($clientIDs as $clientID) {
Function getData
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
Open
public function getData(array $options): Result { $clientIDs = preg_split("/[[:space:]]+/isu", $this->options['clientId']); foreach ($clientIDs as $clientID) {
- Read upRead up
Avoid unused parameters such as '$params'. Open
Open
public function callback(array $params): array
- Read upRead up
- Exclude checks
syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
private string $idToken;
- Exclude checks
Avoid using static access to class '\Laminas\Uri\UriFactory' in method 'setSizeParam'. Open
Open
$uri = UriFactory::factory($url);
- Read upRead up
- Exclude checks