private function detectConflict(array $digits, callable $detect)
    {
        foreach ($digits as $digit) {
            if ($this->inDigits($digit, $digits, $detect)) {
                return true;
            }
        }

        return false;
    }
private function detectConflict(array $digits, callable $detect)
    {
        foreach ($digits as $digit) {
            if ($this->inDigits($digit, $digits, $detect)) {
                return true;
            }
        }

        return false;
    }
private function detectConflict ( array $ digits , callable $ detect ) { foreach ( $ digits as $ digit ) { if ( $ this -> inDigits ( $ digit , $ digits , $ detect ) ) { return true ; } } return false ; }
Tells if a conflict exists between string values.
@param string[] $digits The list of digits for the numeral system
@param callable $detect Function used to detect the conflict
@return bool True if a conflict exists, false if not
Tells if a conflict exists between string values .