src/PHPCoverFish/Common/CoverFishHelper.php
public function getClassFromUse($coverClassName, $usedClasses)
    {
        if (false === is_array($usedClasses)) {
            return $coverClassName;
        }

        foreach ($usedClasses as $use) {
            $this->getClassNameFromClassFQN($use);
            if ($coverClassName === $this->getClassNameFromClassFQN($use)) {
                return $use;
            }
        }

        return $coverClassName;
    }
public function getClassFromUse($coverClassName, $usedClasses)
    {
        if (false === is_array($usedClasses)) {
            return $coverClassName;
        }

        foreach ($usedClasses as $use) {
            $this->getClassNameFromClassFQN($use);
            if ($coverClassName === $this->getClassNameFromClassFQN($use)) {
                return $use;
            }
        }

        return $coverClassName;
    }
public function getClassFromUse ( $ coverClassName , $ usedClasses ) { if ( false === is_array ( $ usedClasses ) ) { return $ coverClassName ; } foreach ( $ usedClasses as $ use ) { $ this -> getClassNameFromClassFQN ( $ use ) ; if ( $ coverClassName === $ this -> getClassNameFromClassFQN ( $ use ) ) { return $ use ; } } return $ coverClassName ; }
check for className in use statements, return className on missing use statement

@param string     $coverClassName
@param array|null $usedClasses

@return string
check for className in use statements return className on missing use statement