GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

BasicFileNamingStrategyFactory   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 3
c 2
b 1
f 0
lcom 0
cbo 2
dl 0
loc 14
ccs 8
cts 8
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A createFileNamingStrategy() 0 11 3
1
<?php
2
3
namespace BVCR\Behat\Cassette;
4
5
use UnexpectedValueException;
6
7
class BasicFileNamingStrategyFactory implements FileNamingStrategyFactory
8
{
9 4
    public function createFileNamingStrategy($strategyName)
10
    {
11
        switch($strategyName) {
12 4
            case 'by_tags':
13 2
                return new ByTagsFileNamingStrategy();
14 2
            case 'by_scenario_name':
15 1
                return new ByScenarioNameFileNamingStrategy();
16 1
            default:
17 1
                throw new UnexpectedValueException(sprintf('No strategy for `s', $strategyName));
18 1
        }
19
    }
20
}
21