ATraitsTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 10
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A inputEntries() 0 8 1
1
<?php
2
3
namespace TraitsTests;
4
5
6
use CommonTestClass;
7
use kalanis\kw_input\Entries;
8
9
10
abstract class ATraitsTest extends CommonTestClass
11
{
12
    protected function inputEntries(): array
13
    {
14
        return [
15
            (new Entries\Entry())->setEntry(Entries\Entry::SOURCE_EXTERNAL, 'foo', 'fhdfh'),
16
            (new Entries\Entry())->setEntry(Entries\Entry::SOURCE_EXTERNAL, 'bar', 'hjyxn'),
17
            (new Entries\Entry())->setEntry(Entries\Entry::SOURCE_EXTERNAL, 'baz', (new Entries\Entry())->setEntry(Entries\Entry::SOURCE_RAW, 'baz', 'gnbgy')),
18
            (new Entries\Entry())->setEntry(Entries\Entry::SOURCE_ENV, 'foo', 'mjgdf'),
19
            (new Entries\Entry())->setEntry(Entries\Entry::SOURCE_ENV, 'bar', 'shshh'),
20
        ];
21
    }
22
}
23