public function find(
        Composer $composer,
        SymbolIteratorInterface $symbols
    ): ViolationIteratorInterface {
        $candidates = $this->extractor->extract($composer, $symbols);

        return new ViolationIterator(
            ...array_merge(
                $this->determineLockViolations($composer, ...$candidates),
                $this->determineUnusedCodeViolations($composer, ...$candidates)
            )
        );
    }
public function find(
        Composer $composer,
        SymbolIteratorInterface $symbols
    ): ViolationIteratorInterface {
        $candidates = $this->extractor->extract($composer, $symbols);

        return new ViolationIterator(
            ...array_merge(
                $this->determineLockViolations($composer, ...$candidates),
                $this->determineUnusedCodeViolations($composer, ...$candidates)
            )
        );
    }
public function find ( Composer $ composer , SymbolIteratorInterface $ symbols ) : ViolationIteratorInterface { $ candidates = $ this -> extractor -> extract ( $ composer , $ symbols ) ; return new ViolationIterator ( ... array_merge ( $ this -> determineLockViolations ( $ composer , ... $ candidates ) , $ this -> determineUnusedCodeViolations ( $ composer , ... $ candidates ) ) ) ; }
Find violations for the given Composer instance and symbols.

@param Composer                $composer
@param SymbolIteratorInterface $symbols

@return ViolationIteratorInterface
Find violations for the given Composer instance and symbols .