version: set to 3.0.0-dev #295
Annotations
11 warnings
Build PHP (8.3)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Build PHP (8.2)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Build PHP (8.1)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Code Quality:
src/Client/RestClient.php#L72
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
public function authenticate() : self
{
- $this->authorisationMiddleware->resetToken();
+
$options = ['username' => $this->configuration->getUsername(), 'password' => $this->configuration->getPassword(), 'lifetime' => $this->configuration->getLifetime()];
try {
$response = $this->request('POST', 'application/tokens', $options);
|
Code Quality:
src/Client/RestClient.php#L133
Escaped Mutant for Mutator "UnwrapLtrim":
--- Original
+++ New
@@ @@
if (!\is_array($data)) {
throw new RestClientException(\sprintf('data must be an array, "%s" given', \get_debug_type($data)), 1578233543);
}
- $resource = \ltrim($resource, '/');
+ $resource = $resource;
$contentType = $this->routeContentTypeMapper->getRequestContentTypeForRoute($method, $resource);
try {
if ($contentType === 'multipart/form-data') {
|
Code Quality:
src/Middleware/AuthorisationMiddleware.php#L46
Escaped Mutant for Mutator "FunctionCall":
--- Original
+++ New
@@ @@
if ($this->token) {
$request = $request->withHeader('X-Jobrouter-Authorization', 'Bearer ' . $this->token);
}
- return $next($request);
+ $next($request);
+ return null;
}
public function handleResponse(RequestInterface $request, ResponseInterface $response, callable $next) : ?ResponseInterface
{
|
Code Quality:
src/Middleware/AuthorisationMiddleware.php#L51
Escaped Mutant for Mutator "FunctionCall":
--- Original
+++ New
@@ @@
}
public function handleResponse(RequestInterface $request, ResponseInterface $response, callable $next) : ?ResponseInterface
{
- return $next($request, $response);
+ $next($request, $response);
+ return null;
}
}
|
Code Quality:
src/Middleware/UserAgentMiddleware.php#L33
Escaped Mutant for Mutator "UnwrapRtrim":
--- Original
+++ New
@@ @@
private readonly string $userAgent;
public function __construct(string $userAgentAddition = '')
{
- $this->userAgent = \rtrim(\sprintf(self::USER_AGENT_TEMPLATE, (new Version())->getVersion(), $userAgentAddition));
+ $this->userAgent = \sprintf(self::USER_AGENT_TEMPLATE, (new Version())->getVersion(), $userAgentAddition);
}
public function handleRequest(RequestInterface $request, callable $next) : ?RequestInterface
{
|
Code Quality:
src/Middleware/UserAgentMiddleware.php#L46
Escaped Mutant for Mutator "FunctionCall":
--- Original
+++ New
@@ @@
public function handleRequest(RequestInterface $request, callable $next) : ?RequestInterface
{
$request = $request->withHeader('User-Agent', $this->userAgent);
- return $next($request);
+ $next($request);
+ return null;
}
public function handleResponse(RequestInterface $request, ResponseInterface $response, callable $next) : ?ResponseInterface
{
|
Code Quality:
src/Middleware/UserAgentMiddleware.php#L51
Escaped Mutant for Mutator "FunctionCall":
--- Original
+++ New
@@ @@
}
public function handleResponse(RequestInterface $request, ResponseInterface $response, callable $next) : ?ResponseInterface
{
- return $next($request, $response);
+ $next($request, $response);
+ return null;
}
}
|
Code Quality
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|