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.

RclKaraokeRowMapper   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 41
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
A getFormatterName() 0 4 1
A getDefaultPlatformName() 0 4 1
A getShortName() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: wechsler
5
 * Date: 03/03/2017
6
 * Time: 18:11
7
 */
8
9
namespace Phase\TakeATicket\SongLoader;
10
11
use Doctrine\DBAL\Exception\InvalidArgumentException;
12
use Phase\TakeATicket\DataSource\AbstractSql;
13
use Phase\TakeATicket\Model\Instrument;
14
use Phase\TakeATicket\Model\Platform;
15
use Phase\TakeATicket\Model\Song;
16
use Phase\TakeATicket\Model\Source;
17
18
/**
19
 * Imports the RCL XLS file but only loads fields relevant to solo karaoke performance
20
 */
21
class RclKaraokeRowMapper extends SimpleKaraokeRowMapper
22
{
23
    /**
24
     * RclRowMapper constructor.
25
     * @param $dataStore
26
     */
27
    public function __construct(AbstractSql $dataStore)
28
    {
29
        $this->fileFields = [
0 ignored issues
show
Documentation Bug introduced by
It seems like array('B' => self::INPUT...UT_FIELD_DURATION_MMSS) of type array<string,string,{"B"..."string","H":"string"}> is incompatible with the declared type array<integer,string> of property $fileFields.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
30
        'B' => self::INPUT_FIELD_ARTIST,
31
        'C' => self::INPUT_FIELD_TITLE,
32
        'H' => self::INPUT_FIELD_DURATION_MMSS,
33
        ];
34
        parent::__construct($dataStore);
35
    }
36
37
    /**
38
     * Get formatter name for interface / selection
39
     *
40
     * @return string
41
     */
42
    public function getFormatterName()
43
    {
44
        return 'RCL Karaoke formatter';
45
    }
46
47
    protected function getDefaultPlatformName()
48
    {
49
        return 'Rock Band';
50
    }
51
52
    /**
53
     * Get short name for form keys, CLI etc
54
     *
55
     * @return string
56
     */
57
    public function getShortName()
58
    {
59
        return 'RclKaraoke';
60
    }
61
}
62