private function searchAuthor($line, $authors)
    {
        foreach ($authors as $index => $author) {
            list($name, $email) = \explode(' <', $author);

            $name  = \trim($name);
            $email = \trim(\substr($email, 0, -1));
            if ((\strpos($line, $name) !== false) && (\strpos($line, $email) !== false)) {
                unset($authors[$index]);
                return $index;
            }
        }

        return false;
    }
private function searchAuthor($line, $authors)
    {
        foreach ($authors as $index => $author) {
            list($name, $email) = \explode(' <', $author);

            $name  = \trim($name);
            $email = \trim(\substr($email, 0, -1));
            if ((\strpos($line, $name) !== false) && (\strpos($line, $email) !== false)) {
                unset($authors[$index]);
                return $index;
            }
        }

        return false;
    }
private function searchAuthor ( $ line , $ authors ) { foreach ( $ authors as $ index => $ author ) { list ( $ name , $ email ) = \ explode ( ' <' , $ author ) ; $ name = \ trim ( $ name ) ; $ email = \ trim ( \ substr ( $ email , 0 , - 1 ) ) ; if ( ( \ strpos ( $ line , $ name ) !== false ) && ( \ strpos ( $ line , $ email ) !== false ) ) { unset ( $ authors [ $ index ] ) ; return $ index ; } } return false ; }
Search the author in "line" in the passed array and return the index of the match or false if none matches.

@param string   $line    The author to search for.
@param string[] $authors The author list to search in.

@return false|int
Search the author in line in the passed array and return the index of the match or false if none matches .