Skip to content

Update build tools #1488

Update build tools

Update build tools #1488

Triggered via pull request April 26, 2023 13:39
Status Failure
Total duration 58s
Artifacts

continuous-integration.yml

on: pull_request
run  /  Generate test matrix
3s
run / Generate test matrix
Matrix: run / Code Coverage
Matrix: run / Coding Standards
Matrix: run / Lint composer.json
Matrix: run / Lint symfony container
Matrix: run / Mutation Tests
Matrix: run / Static Code Analysis
Matrix: run / Lint twig files
Matrix: run / Lint XLIFF files
Matrix: run / Lint YML files
Matrix: run / tests
Fit to window
Zoom out
Zoom in

Annotations

1 error and 10 warnings
run / Static Code Analysis (8.2)
Process completed with exit code 2.
run / Mutation Tests (8.2): src/Extension/RouterTwigExtension.php#L65
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ } public function getFunctions() : array { - return [new TwigFunction('routeExists', [$this, 'routeExists']), new TwigFunction('page_pager', [$this, 'generatePager'], ['is_safe' => ['html'], 'deprecated' => true])]; + return [new TwigFunction('page_pager', [$this, 'generatePager'], ['is_safe' => ['html'], 'deprecated' => true])]; } public function getFilters() : array {
run / Mutation Tests (8.2): src/Extension/RouterTwigExtension.php#L67
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ } public function getFunctions() : array { - return [new TwigFunction('routeExists', [$this, 'routeExists']), new TwigFunction('page_pager', [$this, 'generatePager'], ['is_safe' => ['html'], 'deprecated' => true])]; + return [new TwigFunction('routeExists', [$this, 'routeExists']), new TwigFunction('page_pager', [$this, 'generatePager'], ['deprecated' => true])]; } public function getFilters() : array {
run / Mutation Tests (8.2): src/Extension/RouterTwigExtension.php#L68
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ } public function getFunctions() : array { - return [new TwigFunction('routeExists', [$this, 'routeExists']), new TwigFunction('page_pager', [$this, 'generatePager'], ['is_safe' => ['html'], 'deprecated' => true])]; + return [new TwigFunction('routeExists', [$this, 'routeExists']), new TwigFunction('page_pager', [$this, 'generatePager'], ['is_safe' => [], 'deprecated' => true])]; } public function getFilters() : array {
run / Mutation Tests (8.2): src/Extension/RouterTwigExtension.php#L69
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ } public function getFunctions() : array { - return [new TwigFunction('routeExists', [$this, 'routeExists']), new TwigFunction('page_pager', [$this, 'generatePager'], ['is_safe' => ['html'], 'deprecated' => true])]; + return [new TwigFunction('routeExists', [$this, 'routeExists']), new TwigFunction('page_pager', [$this, 'generatePager'], ['is_safe' => ['html'], 'deprecated' => false])]; } public function getFilters() : array {
run / Mutation Tests (8.2): src/Extension/RouterTwigExtension.php#L91
Escaped Mutant for Mutator "UnwrapTrim": --- Original +++ New @@ @@ */ public function splitTag(string $text, string $tag) : array { - if ('' === trim($tag)) { + if ('' === $tag) { return [$text]; } $split = preg_split('/(?=<' . $tag . '([^>])*>)/', $text, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
run / Mutation Tests (8.2): src/Extension/RouterTwigExtension.php#L97
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ return [$text]; } $split = preg_split('/(?=<' . $tag . '([^>])*>)/', $text, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE); - if (false !== $split) { + if (true !== $split) { return $split; } return [$text];
run / Mutation Tests (8.2): src/Extension/RouterTwigExtension.php#L122
Escaped Mutant for Mutator "CastInt": --- Original +++ New @@ @@ public function generatePager(PagerInterface $pager, array $options = []) : string { $data = array_merge(array_merge($this->options, $options), ['itemsCount' => $pager->count(), 'limit' => max(1, $pager->getMaxPerPage()), 'currentPage' => $pager->getPage()]); - $data['lastPage'] = self::getNumPages((int) $data['limit'], (int) $data['itemsCount']); + $data['lastPage'] = self::getNumPages((int) $data['limit'], $data['itemsCount']); return $this->environment->render((string) $data['template'], $data); } private static function getNumPages(int $limit, int $count) : int
run / Mutation Tests (8.2): src/Extension/RouterTwigExtension.php#L122
Escaped Mutant for Mutator "CastInt": --- Original +++ New @@ @@ public function generatePager(PagerInterface $pager, array $options = []) : string { $data = array_merge(array_merge($this->options, $options), ['itemsCount' => $pager->count(), 'limit' => max(1, $pager->getMaxPerPage()), 'currentPage' => $pager->getPage()]); - $data['lastPage'] = self::getNumPages((int) $data['limit'], (int) $data['itemsCount']); + $data['lastPage'] = self::getNumPages($data['limit'], (int) $data['itemsCount']); return $this->environment->render((string) $data['template'], $data); } private static function getNumPages(int $limit, int $count) : int
run / Mutation Tests (8.2): src/Extension/RouterTwigExtension.php#L124
Escaped Mutant for Mutator "CastString": --- Original +++ New @@ @@ { $data = array_merge(array_merge($this->options, $options), ['itemsCount' => $pager->count(), 'limit' => max(1, $pager->getMaxPerPage()), 'currentPage' => $pager->getPage()]); $data['lastPage'] = self::getNumPages((int) $data['limit'], (int) $data['itemsCount']); - return $this->environment->render((string) $data['template'], $data); + return $this->environment->render($data['template'], $data); } private static function getNumPages(int $limit, int $count) : int {
run / Mutation Tests (8.2): src/Extension/RouterTwigExtension.php#L129
Escaped Mutant for Mutator "RoundingFamily": --- Original +++ New @@ @@ } private static function getNumPages(int $limit, int $count) : int { - return (int) ceil($count / $limit); + return (int) floor($count / $limit); } }