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.

MessageUtility::debug()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Plasma Driver MySQL component
4
 * Copyright 2018-2019 PlasmaPHP, All Rights Reserved
5
 *
6
 * Website: https://github.com/PlasmaPHP
7
 * License: https://github.com/PlasmaPHP/driver-mysql/blob/master/LICENSE
8
*/
9
10
namespace Plasma\Drivers\MySQL\Messages;
11
12
/**
13
 * Utilities for messages.
14
 * @internal
15
 */
16
class MessageUtility {
17
    /**
18
     * Debug.
19
     * @param mixed $debug
20
     * @return void
21
     * @codeCoverageIgnore
22
     */
23
    static function debug($debug): void {
24
        if(\getenv('PLASMA_DEBUG')) {
25
            echo $debug.\PHP_EOL;
26
            @\ob_flush();
27
        }
28
    }
29
}
30