Skip to content

Normalize

Normalize #77

Triggered via push August 27, 2024 12:02
Status Success
Total duration 4m 1s
Artifacts

build.yaml

on: push
Matrix: Code Coverage
Matrix: Coding Standards
Matrix: Dependency Analysis
Matrix: Mutation tests
Matrix: Static Code Analysis
Matrix: Unit tests
Fit to window
Zoom out
Zoom in

Annotations

25 warnings
Static Code Analysis (7.4, highest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Dependency Analysis (7.4, highest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Dependency Analysis (8.1, highest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Unit tests (8.0, highest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Unit tests (8.1, highest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Unit tests (7.4, highest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Dependency Analysis (8.0, highest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Code Coverage (8.1, highest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Coding Standards (7.4, highest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Static Code Analysis (8.0, highest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Static Code Analysis (8.1, highest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Unit tests (7.4, lowest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Unit tests (8.1, lowest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Unit tests (8.0, lowest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Mutation tests (8.1, highest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Mutation tests (8.1, highest): src/Client/Client.php#L51
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ foreach ($result->GetAllParcelShopsResult->PakkeshopData as $parcelShop) { $parcelShops[] = ParcelShop::createFromStdClass($parcelShop); } - return $parcelShops; + return count($parcelShops) > 1 ? array_slice($parcelShops, 0, 1, true) : $parcelShops; } catch (ClientException $e) { if (!$e->getResponse()->isOk() || $e->getResponse()->getResult() === null) { return [];
Mutation tests (8.1, highest): src/Client/Client.php#L67
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ try { $response = $this->sendRequest('GetOneParcelShop', ['ParcelShopNumber' => $parcelShopNumber]); $result = $response->getResult(); - if (null === $result || !isset($result->GetOneParcelShopResult)) { + if (null === $result && !isset($result->GetOneParcelShopResult)) { throw new ParcelShopNotFoundException($parcelShopNumber); } return ParcelShop::createFromStdClass($result->GetOneParcelShopResult);
Mutation tests (8.1, highest): src/Client/Client.php#L139
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ throw $e; } } - public function searchNearestParcelShops(string $street, string $zipCode, string $countryCode, int $amount = 10) : array + public function searchNearestParcelShops(string $street, string $zipCode, string $countryCode, int $amount = 9) : array { try { $response = $this->sendRequest('SearchNearestParcelShops', ['street' => $street, 'zipcode' => $zipCode, 'countryIso3166A2' => $countryCode, 'Amount' => $amount]);
Mutation tests (8.1, highest): src/Client/Client.php#L139
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ throw $e; } } - public function searchNearestParcelShops(string $street, string $zipCode, string $countryCode, int $amount = 10) : array + public function searchNearestParcelShops(string $street, string $zipCode, string $countryCode, int $amount = 11) : array { try { $response = $this->sendRequest('SearchNearestParcelShops', ['street' => $street, 'zipcode' => $zipCode, 'countryIso3166A2' => $countryCode, 'Amount' => $amount]);
Mutation tests (8.1, highest): src/Client/Client.php#L142
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ public function searchNearestParcelShops(string $street, string $zipCode, string $countryCode, int $amount = 10) : array { try { - $response = $this->sendRequest('SearchNearestParcelShops', ['street' => $street, 'zipcode' => $zipCode, 'countryIso3166A2' => $countryCode, 'Amount' => $amount]); + $response = $this->sendRequest('SearchNearestParcelShops', ['zipcode' => $zipCode, 'countryIso3166A2' => $countryCode, 'Amount' => $amount]); $result = $response->getResult(); if (null === $result || !isset($result->SearchNearestParcelShopsResult->parcelshops->PakkeshopData)) { return [];
Mutation tests (8.1, highest): src/Client/Client.php#L150
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ try { $response = $this->sendRequest('SearchNearestParcelShops', ['street' => $street, 'zipcode' => $zipCode, 'countryIso3166A2' => $countryCode, 'Amount' => $amount]); $result = $response->getResult(); - if (null === $result || !isset($result->SearchNearestParcelShopsResult->parcelshops->PakkeshopData)) { + if (null === $result && !isset($result->SearchNearestParcelShopsResult->parcelshops->PakkeshopData)) { return []; } $parcelShops = [];
Mutation tests (8.1, highest): src/Client/Client.php#L159
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ foreach ($result->SearchNearestParcelShopsResult->parcelshops->PakkeshopData as $parcelShop) { $parcelShops[] = ParcelShop::createFromStdClass($parcelShop); } - return $parcelShops; + return count($parcelShops) > 1 ? array_slice($parcelShops, 0, 1, true) : $parcelShops; } catch (ClientException $e) { if (!$e->getResponse()->isOk() || $e->getResponse()->getResult() === null) { return [];
Mutation tests (8.1, highest): src/Client/Client.php#L161
Escaped Mutant for Mutator "LogicalNot": --- Original +++ New @@ @@ } return $parcelShops; } catch (ClientException $e) { - if (!$e->getResponse()->isOk() || $e->getResponse()->getResult() === null) { + if ($e->getResponse()->isOk() || $e->getResponse()->getResult() === null) { return []; } throw $e;
Mutation tests (8.1, highest): src/Client/Client.php#L161
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ } return $parcelShops; } catch (ClientException $e) { - if (!$e->getResponse()->isOk() || $e->getResponse()->getResult() === null) { + if (!$e->getResponse()->isOk() || $e->getResponse()->getResult() !== null) { return []; } throw $e;
Mutation tests (8.1, highest): src/Client/Client.php#L161
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ } return $parcelShops; } catch (ClientException $e) { - if (!$e->getResponse()->isOk() || $e->getResponse()->getResult() === null) { + if (!$e->getResponse()->isOk() && $e->getResponse()->getResult() === null) { return []; } throw $e;