• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sirbrillig / phpcs-variable-analysis / 15118106362

19 May 2025 04:19PM UTC coverage: 93.79%. Remained the same
15118106362

Pull #353

github

jrfnl
Ruleset: update schema URL

PHPCS now offers permalinks for the schema.

Refs:
* PHPCSStandards/PHP_CodeSniffer 1094
* https://github.com/PHPCSStandards/schema.phpcodesniffer.com
Pull Request #353: Ruleset: update schema URL

1903 of 2029 relevant lines covered (93.79%)

138.99 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/VariableAnalysis/Lib/ForLoopInfo.php
1
<?php
2

3
namespace VariableAnalysis\Lib;
4

5
/**
6
 * Holds details of a for loop.
7
 */
8
class ForLoopInfo
9
{
10
        /**
11
         * The position of the `for` token.
12
         *
13
         * @var int
14
         */
15
        public $forIndex;
16

17
        /**
18
         * The position of the initialization expression opener for the loop.
19
         *
20
         * @var int
21
         */
22
        public $initStart;
23

24
        /**
25
         * The position of the initialization expression closer for the loop.
26
         *
27
         * @var int
28
         */
29
        public $initEnd;
30

31
        /**
32
         * The position of the condition expression opener for the loop.
33
         *
34
         * @var int
35
         */
36
        public $conditionStart;
37

38
        /**
39
         * The position of the condition expression closer for the loop.
40
         *
41
         * @var int
42
         */
43
        public $conditionEnd;
44

45
        /**
46
         * The position of the increment expression opener for the loop.
47
         *
48
         * @var int
49
         */
50
        public $incrementStart;
51

52
        /**
53
         * The position of the increment expression closer for the loop.
54
         *
55
         * @var int
56
         */
57
        public $incrementEnd;
58

59
        /**
60
         * The position of the block opener for the loop.
61
         *
62
         * @var int
63
         */
64
        public $blockStart;
65

66
        /**
67
         * The position of the block closer for the loop.
68
         *
69
         * @var int
70
         */
71
        public $blockEnd;
72

73
        /**
74
         * Any variables defined inside the third expression of the loop.
75
         *
76
         * The key is the variable index.
77
         *
78
         * @var array<int, \VariableAnalysis\Lib\VariableInfo>
79
         */
80
        public $incrementVariables = [];
81

82
        /**
83
         * @param int $forIndex
84
         * @param int $blockStart
85
         * @param int $blockEnd
86
         * @param int $initStart
87
         * @param int $initEnd
88
         * @param int $conditionStart
89
         * @param int $conditionEnd
90
         * @param int $incrementStart
91
         * @param int $incrementEnd
92
         */
93
        public function __construct(
8✔
94
                $forIndex,
95
                $blockStart,
96
                $blockEnd,
97
                $initStart,
98
                $initEnd,
99
                $conditionStart,
100
                $conditionEnd,
101
                $incrementStart,
102
                $incrementEnd
103
        ) {
104
                $this->forIndex = $forIndex;
8✔
105
                $this->blockStart = $blockStart;
8✔
106
                $this->blockEnd = $blockEnd;
8✔
107
                $this->initStart = $initStart;
8✔
108
                $this->initEnd = $initEnd;
8✔
109
                $this->conditionStart = $conditionStart;
8✔
110
                $this->conditionEnd = $conditionEnd;
8✔
111
                $this->incrementStart = $incrementStart;
8✔
112
                $this->incrementEnd = $incrementEnd;
8✔
113
        }
4✔
114
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc