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.
Completed
Pull Request — master (#68)
by Bidesh
03:32
created

DummyBridge::removeJob()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 3
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: bthapaliya
5
 * Date: 14/02/17
6
 * Time: 14:24
7
 */
8
9
namespace Chapi\Service\JobRepository;
10
11
12
use Chapi\Entity\JobEntityInterface;
13
use Psr\Log\LoggerInterface;
14
15
class DummyBridge implements BridgeInterface
16
{
17
18
    /** @var LoggerInterface  */
19
    private $oLogger;
20
21
    public function __construct(
22
        LoggerInterface $oLogger
23
    )
24
    {
25
        $this->oLogger = $oLogger;
26
    }
27
28
    /**
29
     * @return JobEntityInterface[]
30
     */
31
    public function getJobs()
32
    {
33
        return [];
34
    }
35
36
    /**
37
     * @param JobEntityInterface $oJobEntity
38
     * @return bool
39
     */
40
    public function addJob(JobEntityInterface $oJobEntity)
41
    {
42
        $this->oLogger->warning('Adding a job cannot be done. Required parameters missing or not configured properly in .chapiconfig');
43
        return true;
44
    }
45
46
    /**
47
     * @param JobEntityInterface $oJobEntity
48
     * @return bool
49
     */
50
    public function updateJob(JobEntityInterface $oJobEntity)
51
    {
52
        $this->oLogger->warning('Updating job cannot be done. Required parameters missing or not configured properly in .chapiconfig');
53
        return true;
54
    }
55
56
    /**
57
     * @param JobEntityInterface $oJobEntity
58
     * @return bool
59
     */
60
    public function removeJob(JobEntityInterface $oJobEntity)
61
    {
62
        $this->oLogger->warning('Removing job cannot be done. Required parameters missing or not configured properly in .chapiconfig');
63
        return true;
64
    }
65
}
66