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

JBZoo / Codestyle / 8445177639

26 Mar 2024 08:28PM UTC coverage: 87.66% (-0.3%) from 87.967%
8445177639

push

github

web-flow
Update getFixerConfig method in PhpCsFixerCodingStandard (#50)

11 of 14 new or added lines in 1 file covered. (78.57%)

51 existing lines in 5 files now uncovered.

547 of 624 relevant lines covered (87.66%)

10.39 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