BugForm::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
ccs 3
cts 3
cp 1
crap 1
rs 10
c 2
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * BugForm
6
 */
7
8
namespace Fr3nch13\Jira\Form;
9
10
use Cake\Event\EventManager;
11
12
/**
13
 * Bug Form
14
 *
15
 * Used to submit a bug to Jira.
16
 */
17
class BugForm extends AppForm
18
{
19
    /**
20
     * Constructor
21
     *
22
     * @param \Cake\Event\EventManager|null $eventManager The event manager.
23
     *  Defaults to a new instance.
24
     * @return void
25
     */
26 4
    public function __construct(?EventManager $eventManager = null)
27
    {
28 4
        $this->issueType = 'Bug';
29
30 4
        parent::__construct($eventManager);
31
    }
32
}
33