private function determineSuperfluous($mentionedAuthors, $wantedAuthors, $path)
    {
        $superfluous = [];
        foreach (\array_diff_key($mentionedAuthors, $wantedAuthors) as $key => $author) {
            if (!$this->config->isCopyLeftAuthor($author, $path)) {
                $superfluous[$key] = $author;
            }
        }

        return $superfluous;
    }
private function determineSuperfluous($mentionedAuthors, $wantedAuthors, $path)
    {
        $superfluous = [];
        foreach (\array_diff_key($mentionedAuthors, $wantedAuthors) as $key => $author) {
            if (!$this->config->isCopyLeftAuthor($author, $path)) {
                $superfluous[$key] = $author;
            }
        }

        return $superfluous;
    }
private function determineSuperfluous ( $ mentionedAuthors , $ wantedAuthors , $ path ) { $ superfluous = [ ] ; foreach ( \ array_diff_key ( $ mentionedAuthors , $ wantedAuthors ) as $ key => $ author ) { if ( ! $ this -> config -> isCopyLeftAuthor ( $ author , $ path ) ) { $ superfluous [ $ key ] = $ author ; } } return $ superfluous ; }
Determine the superfluous authors from the passed arrays.

@param array  $mentionedAuthors The author list containing the current state.
@param array  $wantedAuthors    The author list containing the desired state.
@param string $path             The path to relate to.

@return array
Determine the superfluous authors from the passed arrays .