Eluinhost/TeamspeakAuth

View on GitHub
src/PublicUHC/Bundle/TeamspeakAuthBundle/Helpers/DefaultTeamspeakHelper.php

Summary

Maintainability
A
3 hrs
Test Coverage

DefaultTeamspeakHelper has 23 functions (exceeds 20 allowed). Consider refactoring.
Open

class DefaultTeamspeakHelper implements TeamspeakHelper {

    private $server;
    private $entityManager;
    private $groupID;

    Method verifyClient has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function verifyClient(TeamspeakAccount $tsAccount, MinecraftAccount $mcAccount) {
            //unauthenticate any accounts with the same MC name but not the same UUID
            $mcqb = $this->entityManager->createQueryBuilder();
            $mcqb->select('mcAccount')
                ->from('PublicUHCTeamspeakAuthBundle:MinecraftAccount', 'mcAccount')

      There are no issues that match your filters.

      Category
      Status