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.

ReflectionDocCommentTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 32
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getReflectionDocComment() 0 8 2
getDocComment() 0 1 ?
1
<?php
2
3
namespace Wingu\OctopusCore\Reflection;
4
5
/**
6
 * Trait fot getting the documentation comment.
7
 */
8
trait ReflectionDocCommentTrait
9
{
10
11
    /**
12
     * The documentation comment object.
13
     *
14
     * @var \Wingu\OctopusCore\Reflection\ReflectionDocComment
15
     */
16
    protected $reflectionDocComment;
17
18
    /**
19
     * Get the document of the method.
20
     * 
21
     * @param string $trimLinePattern Pattern for trim() function applied to each line. Usefull to leave spaces or tabs. The default is the same as calling trim() without the argument.
22
     * @return \Wingu\OctopusCore\Reflection\ReflectionDocComment
23
     */
24 6
    public function getReflectionDocComment($trimLinePattern = " \t\n\r\0\x0B")
25
    {
26 6
        if ($this->reflectionDocComment === null) {
27 6
            $this->reflectionDocComment = new ReflectionDocComment((string)$this->getDocComment(), $trimLinePattern);
28 2
        }
29
30 6
        return $this->reflectionDocComment;
31
    }
32
33
    /**
34
     * Return the string containing the current constant comment or false if there's no comment.
35
     *
36
     * @return string|false
37
     */
38
    abstract public function getDocComment();
39
}
40