src/ArrayKeyCombiner.php
Showing 3 of 3 total issues
Function combineIdentical
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
Open
protected function combineIdentical($arrays) { // Check for identical items in the array and merge them. foreach ($arrays as &$sort) { asort($sort); }
- Read upRead up
Function combineIntersections
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
Open
protected function combineIntersections(&$arrays, $intersections) { $changed = FALSE; foreach ($intersections as $intersection) { $size = count($intersection); $keys = [];
- Read upRead up
Avoid using Jelle_S\Util\Combiner\count() function in do loops. Open
Open
do { $i = new ArrayIntersections($arrays, $this->threshold, $this->intersectionIterationsLimit); $intersections = $i->getAll(); if (!$intersections) { break;
- Read upRead up
- Exclude checks