Completed
Pull Request — master (#1)
by Miro
03:33
created

SampleDataProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 16
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getAllMilestones() 0 6 1
A getAllIssues() 0 6 1
1
<?php
2
namespace tests\DevBoardLib\GithubObjectApiFacade;
3
4
class SampleDataProvider
5
{
6
    public function getAllMilestones()
7
    {
8
        $content = file_get_contents(__DIR__.'/sample-data/devboard/test-hitman/milestones.json');
9
10
        return json_decode($content, true);
11
    }
12
13
    public function getAllIssues()
14
    {
15
        $content = file_get_contents(__DIR__.'/sample-data/devboard/test-hitman/issues.json');
16
17
        return json_decode($content, true);
18
    }
19
}
20