Passed
Pull Request — develop (#51)
by Kevin
06:34
created

NextTenYears   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 15
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getSourceData() 0 10 2
1
<?php
2
3
namespace Magium\Configuration\Source\Datetime;
4
5
use Magium\Configuration\Source\SourceInterface;
6
7
class NextTenYears implements SourceInterface
8
{
9
10
    public function getSourceData()
11
    {
12
        $now = date('Y');
13
        $return = [];
14
        do {
15
            $return[] = $now++;
16
        } while (count($return) < 10);
17
        return $return;
18
19
    }
20
21
}
22