Code Duplication    Length = 14-14 lines in 2 locations

src/Voters/FeatureVoter.php 1 location

@@ 11-24 (lines=14) @@
8
/**
9
 * @author Julius Ehrlich <[email protected]>
10
 */
11
class FeatureVoter implements VoterInterface
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function vote($parameter = null, $user = null, array $additional = [])
17
    {
18
        return Feature::decide(
19
            $parameter,
20
            $user,
21
            isset($additional['defaultIfNotFound']) ? (bool) $additional['defaultIfNotFound'] : false
22
        );
23
    }
24
}
25

src/Voters/ValueVoter.php 1 location

@@ 11-24 (lines=14) @@
8
/**
9
 * @author Julius Ehrlich <[email protected]>
10
 */
11
class ValueVoter implements VoterInterface
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function vote($parameter = null, $user = null, array $additional = [])
17
    {
18
        return Value::decide(
19
            $parameter,
20
            $user,
21
            isset($additional['defaultValue']) ? $additional['defaultValue'] : false
22
        );
23
    }
24
}
25