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
Push — master ( 9a7ea4...53d770 )
by Yang
02:32
created

GetTopicAttributeRequest   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 100 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

1
<?php
2
namespace AliyunMNS\Requests;
3
4
use AliyunMNS\Requests\BaseRequest;
5
6
class GetTopicAttributeRequest extends BaseRequest
7
{
8
    private $topicName;
9
10
    public function __construct($topicName)
11
    {
12
        parent::__construct('get', 'topics/' . $topicName);
13
14
        $this->topicName = $topicName;
15
    }
16
17
    public function getTopicName()
18
    {
19
        return $this->topicName;
20
    }
21
22
    public function generateBody()
23
    {
24
        return NULL;
25
    }
26
27
    public function generateQueryString()
28
    {
29
        return NULL;
30
    }
31
}
32
?>
33