Skip to content

Bumps changelog version to 2.6.0 #1494

Bumps changelog version to 2.6.0

Bumps changelog version to 2.6.0 #1494

Triggered via push June 1, 2023 19:18
Status Success
Total duration 1m 10s
Artifacts
run  /  Generate test matrix
2s
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

10 warnings
run / Mutation Tests (8.2): src/Extension/RouterTwigExtension.php#L59
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#L61
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#L62
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#L63
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#L85
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#L91
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#L116
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#L116
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#L118
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#L123
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); } }