• 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/ScopeInfo.php
1
<?php
2

3
namespace VariableAnalysis\Lib;
4

5
/**
6
 * Holds details of a scope.
7
 */
8
class ScopeInfo
9
{
10
        /**
11
         * The token index of the start of this scope.
12
         *
13
         * @var int
14
         */
15
        public $scopeStartIndex;
16

17
        /**
18
         * The token index of the end of this scope, if important.
19
         *
20
         * @var int|null
21
         */
22
        public $scopeEndIndex;
23

24
        /**
25
         * The variables defined in this scope.
26
         *
27
         * @var VariableInfo[]
28
         */
29
        public $variables = [];
30

31
        /**
32
         * @param int      $scopeStartIndex
33
         * @param int|null $scopeEndIndex
34
         */
35
        public function __construct($scopeStartIndex, $scopeEndIndex = null)
356✔
36
        {
37
                $this->scopeStartIndex = $scopeStartIndex;
356✔
38
                $this->scopeEndIndex = $scopeEndIndex;
356✔
39
        }
178✔
40
}
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