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.

checkCorrectLogLevel()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 0
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace WyriHaximus\PSR3;
6
7
/**
8
 * Logging levels PSR-3 LogLevel enum.
9
 */
10
const LOG_LEVELS = Utils::LOG_LEVELS;
0 ignored issues
show
Bug introduced by
The type WyriHaximus\PSR3\Utils was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
11
12
/**
13
 * Functions in this file are a continuation of the code from this
14
 * https://github.com/Seldaek/monolog/blob/6e6586257d9fb231bf039563632e626cdef594e5/src/Monolog/Processor/PsrLogMessageProcessor.php file.
15
 */
16
17
/**
18
 * @deprecated Use Utils::processPlaceHolders instead
19
 *
20
 * @param  array<string, mixed> $context
21
 */
22
function processPlaceHolders(string $message, array $context): string
23
{
24
    return Utils::processPlaceHolders($message, $context);
25
}
26
27
/** @deprecated Use Utils::formatValue instead */
28
function formatValue(mixed $value): string
29
{
30
    return Utils::formatValue($value);
31
}
32
33
/**
34
 * @deprecated Use Utils::normalizeContext instead
35
 *
36 15
 * @param  array<string, mixed> $context
37 4
 *
38
 * @return  array<string, mixed>
39
 */
40 11
function normalizeContext(array $context): array
41 11
{
42 11
    return Utils::normalizeContext($context);
43
}
44
45 11
/** @deprecated Use Utils::checkCorrectLogLevel instead */
46
function checkCorrectLogLevel(string $level): bool
47
{
48
    return Utils::checkCorrectLogLevel($level);
49
}
50