open-orchestra/open-orchestra-front-bundle

View on GitHub
FrontBundle/Tests/Security/Authorization/Voter/NodeVoterTest.php

Summary

Maintainability
A
1 hr
Test Coverage

Method provideDataToVote has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function provideDataToVote()
    {
        return array(
            array(
                Phake::mock('OpenOrchestra\ModelInterface\Model\ReadNodeInterface'),
Severity: Minor
Found in FrontBundle/Tests/Security/Authorization/Voter/NodeVoterTest.php - About 1 hr to fix

Method testVote has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public function testVote($subject, $attribute, array $tokenRoles, array $subjectRoles, $expectedVote)
Severity: Minor
Found in FrontBundle/Tests/Security/Authorization/Voter/NodeVoterTest.php - About 35 mins to fix

There are no issues that match your filters.

Category
Status