Add the parameter 2 to the continue instruction in product lookup to … #31
Annotations
10 warnings
src/Client/AuthenticationMiddleware.php#L30
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
public function sendRequest(RequestInterface $request) : ResponseInterface
{
$response = $this->tryRequest($request);
- if (401 === $response->getStatusCode()) {
+ if (400 === $response->getStatusCode()) {
$this->refreshToken();
$response = $this->tryRequest($request);
}
|
src/Client/AuthenticationMiddleware.php#L30
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
public function sendRequest(RequestInterface $request) : ResponseInterface
{
$response = $this->tryRequest($request);
- if (401 === $response->getStatusCode()) {
+ if (402 === $response->getStatusCode()) {
$this->refreshToken();
$response = $this->tryRequest($request);
}
|
src/Client/Client.php#L44
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if (empty($body)) {
return;
}
- $response = $this->client->sendRequest($this->requestFactory->createRequest('POST', $this->uriFactory->createUri()->withPath('/crm/v3/Contacts/upsert')->withHost($this->host)->withScheme('https'))->withHeader('Content-Type', 'application/json')->withBody($this->streamFactory->createStream(json_encode(['data' => $body], \JSON_THROW_ON_ERROR))));
+ $response = $this->client->sendRequest($this->requestFactory->createRequest('POST', $this->uriFactory->createUri()->withPath('/crm/v3/Contacts/upsert')->withHost($this->host)->withScheme('https'))->withHeader('Content-Type', 'application/json')->withBody($this->streamFactory->createStream(json_encode([], \JSON_THROW_ON_ERROR))));
$this->processResponse($response, $body);
}
/**
|
src/Client/Client.php#L47
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
return;
}
$response = $this->client->sendRequest($this->requestFactory->createRequest('POST', $this->uriFactory->createUri()->withPath('/crm/v3/Contacts/upsert')->withHost($this->host)->withScheme('https'))->withHeader('Content-Type', 'application/json')->withBody($this->streamFactory->createStream(json_encode(['data' => $body], \JSON_THROW_ON_ERROR))));
- $this->processResponse($response, $body);
+
}
/**
* @throws ClientExceptionInterface
|
src/Client/Client.php#L194
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
}
private function processResponse(ResponseInterface $response, array|null $body = []) : void
{
- if (400 === $response->getStatusCode()) {
+ if (399 === $response->getStatusCode()) {
throw new BadRequestException('The format of the request is not correct. Please check the information sent.', $response);
}
if (403 === $response->getStatusCode()) {
|
src/Client/Client.php#L194
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
}
private function processResponse(ResponseInterface $response, array|null $body = []) : void
{
- if (400 === $response->getStatusCode()) {
+ if (401 === $response->getStatusCode()) {
throw new BadRequestException('The format of the request is not correct. Please check the information sent.', $response);
}
if (403 === $response->getStatusCode()) {
|
src/Client/Client.php#L198
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
if (400 === $response->getStatusCode()) {
throw new BadRequestException('The format of the request is not correct. Please check the information sent.', $response);
}
- if (403 === $response->getStatusCode()) {
+ if (402 === $response->getStatusCode()) {
throw new ForbiddenException('You do not have the right to make this request. Please login before making your request or verify your rights.');
}
if (404 === $response->getStatusCode()) {
|
src/Client/Client.php#L198
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
if (400 === $response->getStatusCode()) {
throw new BadRequestException('The format of the request is not correct. Please check the information sent.', $response);
}
- if (403 === $response->getStatusCode()) {
+ if (404 === $response->getStatusCode()) {
throw new ForbiddenException('You do not have the right to make this request. Please login before making your request or verify your rights.');
}
if (404 === $response->getStatusCode()) {
|
src/Client/Client.php#L202
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
if (403 === $response->getStatusCode()) {
throw new ForbiddenException('You do not have the right to make this request. Please login before making your request or verify your rights.');
}
- if (404 === $response->getStatusCode()) {
+ if (403 === $response->getStatusCode()) {
throw new NotFoundException('What you are looking for does not exist. Please check your request.');
}
if (413 === $response->getStatusCode()) {
|
src/Client/Client.php#L202
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
if (403 === $response->getStatusCode()) {
throw new ForbiddenException('You do not have the right to make this request. Please login before making your request or verify your rights.');
}
- if (404 === $response->getStatusCode()) {
+ if (405 === $response->getStatusCode()) {
throw new NotFoundException('What you are looking for does not exist. Please check your request.');
}
if (413 === $response->getStatusCode()) {
|
The logs for this run have expired and are no longer available.
Loading