CI #123
ci.yml
on: schedule
Dependency Validation
14s
Coding Guidelines
0s
Static Analysis
Code Coverage
0s
Annotations
10 warnings
|
Unit Tests:
src/Http/ResponseConverter.php#L45
Escaped Mutant for Mutator "PublicVisibility":
@@ @@
/**
* @return mixed[]
*/
- public static function convertToArray(ResponseInterface $response)
+ protected static function convertToArray(ResponseInterface $response)
{
return json_decode((string) $response->getBody(), true);
}
}
|
|
Unit Tests:
src/Authenticator.php#L277
Escaped Mutant for Mutator "ProtectedVisibility":
@@ @@
/**
* @return RequestManagerInterface
*/
- protected function getRequestManager()
+ private function getRequestManager()
{
return $this->requestManager;
}
}
|
|
Unit Tests:
src/Authenticator.php#L257
Escaped Mutant for Mutator "Identical":
@@ @@
protected function establishCSRFTokenState(): void
{
$storage = $this->getStorage();
- if ($storage->get('state') === null) {
+ if ($storage->get('state') !== null) {
$storage->set('state', md5(uniqid((string) mt_rand(), true)));
}
}
|
|
Unit Tests:
src/Authenticator.php#L221
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
{
$storage = $this->getStorage();
if (!GlobalVariableGetter::has('code')) {
- return null;
+
}
if ($storage->get('code') === GlobalVariableGetter::get('code')) {
// we have already validated this code
|
|
Unit Tests:
src/Authenticator.php#L148
Escaped Mutant for Mutator "This":
@@ @@
public function setStorage(DataStorageInterface $storage)
{
$this->storage = $storage;
- return $this;
+ return null;
}
/**
* Retrieves an access token for the given authorization code
|
|
Unit Tests:
src/Authenticator.php#L148
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
public function setStorage(DataStorageInterface $storage)
{
$this->storage = $storage;
- return $this;
+
}
/**
* Retrieves an access token for the given authorization code
|
|
Unit Tests:
src/AccessToken.php#L84
Escaped Mutant for Mutator "This":
@@ @@
public function setToken($token)
{
$this->token = $token;
- return $this;
+ return null;
}
/**
* @return null|string
|
|
Unit Tests:
src/AccessToken.php#L84
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
public function setToken($token)
{
$this->token = $token;
- return $this;
+
}
/**
* @return null|string
|
|
Unit Tests:
src/AccessToken.php#L64
Escaped Mutant for Mutator "This":
@@ @@
public function setExpiresAt(?DateTime $expiresAt = null)
{
$this->expiresAt = $expiresAt;
- return $this;
+ return null;
}
/**
* @return null|DateTime
|
|
Unit Tests:
src/AccessToken.php#L64
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
public function setExpiresAt(?DateTime $expiresAt = null)
{
$this->expiresAt = $expiresAt;
- return $this;
+
}
/**
* @return null|DateTime
|