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.

CursorState   A
last analyzed

↳ Parent: Project

Coupling/Cohesion

Components 0
Dependencies 0

Complexity

Total Complexity 9

Size/Duplication

Total Lines 128
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 9
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 128
ccs 26
cts 26
cp 1
rs 10

9 Methods

Rating   Name   Duplication   Size   Complexity  
A getCurrentPosition() 0 4 1
A getLength() 0 4 1
A getLine() 0 4 1
A getPreviousPosition() 0 4 1
A getFirstNonSpaceCache() 0 4 1
A getIndent() 0 4 1
A getColumn() 0 4 1
A __construct() 0 11 1
A getPartiallyConsumedTab() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the league/commonmark package.
5
 *
6
 * (c) Colin O'Dell <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace League\CommonMark;
13
14
class CursorState
15
{
16
    /**
17
     * @var string
18
     */
19
    private $line;
20
21
    /**
22
     * @var int
23
     */
24
    private $length;
25
26
    /**
27
     * @var int
28
     */
29
    private $currentPosition;
30
31
    /**
32
     * @var int
33
     */
34
    private $previousPosition;
35
36
    /**
37
     * @var int|null
38
     */
39
    private $firstNonSpaceCache;
40
41
    /**
42
     * @var int
43
     */
44
    private $indent;
45
46
    /**
47
     * @var int
48
     */
49
    private $column;
50
51
    /**
52
     * @var bool
53
     */
54
    private $partiallyConsumedTab;
55
56
    /**
57
     * @param string   $line
58
     * @param int      $length
59
     * @param int      $currentPosition
60
     * @param int      $previousPosition
61
     * @param int|null $firstNonSpaceCache
62
     * @param int      $indent
63
     * @param int      $column
64
     * @param bool     $partiallyConsumedTab
65
     */
66 1821
    public function __construct($line, $length, $currentPosition, $previousPosition, $firstNonSpaceCache, $indent, $column, $partiallyConsumedTab)
67
    {
68 1821
        $this->line = $line;
69 1821
        $this->length = $length;
70 1821
        $this->currentPosition = $currentPosition;
71 1821
        $this->previousPosition = $previousPosition;
72 1821
        $this->firstNonSpaceCache = $firstNonSpaceCache;
73 1821
        $this->indent = $indent;
74 1821
        $this->column = $column;
75 1821
        $this->partiallyConsumedTab = $partiallyConsumedTab;
76 1821
    }
77
78
    /**
79
     * @return int
80
     */
81 1749
    public function getCurrentPosition()
82
    {
83 1749
        return $this->currentPosition;
84
    }
85
86
    /**
87
     * @return int
88
     */
89 1740
    public function getLength()
90
    {
91 1740
        return $this->length;
92
    }
93
94
    /**
95
     * @return string
96
     */
97 1740
    public function getLine()
98
    {
99 1740
        return $this->line;
100
    }
101
102
    /**
103
     * @return int
104
     */
105 1740
    public function getPreviousPosition()
106
    {
107 1740
        return $this->previousPosition;
108
    }
109
110
    /**
111
     * @return int|null
112
     */
113 1740
    public function getFirstNonSpaceCache()
114
    {
115 1740
        return $this->firstNonSpaceCache;
116
    }
117
118
    /**
119
     * @return int
120
     */
121 1740
    public function getIndent()
122
    {
123 1740
        return $this->indent;
124
    }
125
126
    /**
127
     * @return int
128
     */
129 1740
    public function getColumn()
130
    {
131 1740
        return $this->column;
132
    }
133
134
    /**
135
     * @return bool
136
     */
137 1740
    public function getPartiallyConsumedTab()
138
    {
139 1740
        return $this->partiallyConsumedTab;
140
    }
141
}
142