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

JBZoo / Codestyle / 18063683129

27 Sep 2025 06:57PM UTC coverage: 80.896% (-6.8%) from 87.66%
18063683129

push

github

web-flow
test(ci): Update PHP versions and fix workflow tests (#54)

- Update PHP versions in CI workflows from 8.1-8.3 to 8.2-8.4.
- Remove the unnecessary scheduled CI job.
- Adjust `TraitGithubActions` to validate the updated workflow
configuration.
- Fix badge line formatting in `TraitReadme` test.

4 of 4 new or added lines in 2 files covered. (100.0%)

79 existing lines in 7 files now uncovered.

542 of 670 relevant lines covered (80.9%)

10.91 hits per line

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

0.0
/src/compatibility.php
1
<?php
2

3
/**
4
 * JBZoo Toolbox - Codestyle.
5
 *
6
 * This file is part of the JBZoo Toolbox project.
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license    MIT
11
 * @copyright  Copyright (C) JBZoo.com, All rights reserved.
12
 * @see        https://github.com/JBZoo/Codestyle
13
 */
14

15
declare(strict_types=1);
16

17
// @codeCoverageIgnore
18

19
if (\extension_loaded('xdebug')) {
20
    if (!\function_exists('xdebug_enable')) {
21
        /**
22
         * Enable showing stack traces on error conditions.
23
         * @phan-suppress PhanRedefineFunctionInternal
24
         */
25
        function xdebug_enable(): void
26
        {
UNCOV
27
        }
×
28
    }
29

30
    if (!\function_exists('xdebug_disable')) {
31
        /**
32
         * Disable showing stack traces on error conditions.
33
         * @phan-suppress PhanRedefineFunctionInternal
34
         */
35
        function xdebug_disable(): void
36
        {
UNCOV
37
        }
×
38
    }
39

40
    if (!\function_exists('xdebug_get_declared_vars')) {
41
        /**
42
         * Returns an array where each element is a variable name which is defined in the current scope.
43
         * @phan-suppress PhanRedefineFunctionInternal
44
         */
45
        function xdebug_get_declared_vars(): array
46
        {
47
            return [];
×
48
        }
49
    }
50

51
    if (!\function_exists('xdebug_get_declared_vars')) {
52
        /**
53
         * Return whether stack traces would be shown in case of an error or not.
54
         * @phan-suppress PhanRedefineFunctionInternal
55
         */
56
        function xdebug_is_enabled(): bool
57
        {
58
            return true;
59
        }
60
    }
61
}
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

© 2025 Coveralls, Inc