Failed Conditions
Pull Request — master (#102)
by Marco
17:05
created

assert-alpha.php ➔ consume()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Webmozart\Assert\StaticAnalysis\AssertString;
4
5
use Webmozart\Assert\Assert;
6
7
/**
8
 * @psalm-param string|numeric $value
9
 */
10
function consume($value) : string
11
{
12
    Assert::alpha($value);
13
14
    return $value;
15
}
16