RepoCommitStatusUpdatedModel::getCommitStatus()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 4
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Smalot\Bitbucket\Webhook\Model;
4
5
/**
6
 * Class RepoCommitStatusUpdatedModel
7
 * @package Smalot\Bitbucket\Webhook\Model
8
 *
9
 * A build system, CI tool, or another vendor recognizes that a commit has
10
 * a new status and updates the commit with its status.
11
 */
12 View Code Duplication
class RepoCommitStatusUpdatedModel extends ModelBase
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
13
{
14
    /**
15
     * @return array
16
     */
17
    public function getActor()
18
    {
19
        return $this->payload['actor'];
20
    }
21
22
    /**
23
     * @return array
24
     */
25
    public function getRepository()
26
    {
27
        return $this->payload['repository'];
28
    }
29
30
    /**
31
     * @return array
32
     */
33
    public function getCommitStatus()
34
    {
35
        return $this->payload['commit_status'];
36
    }
37
}
38