Passed
Push — master ( c58240...196ab2 )
by Tim
02:31
created

Assert::__callStatic()   C

Complexity

Conditions 12
Paths 36

Size

Total Lines 38
Code Lines 29

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 12
eloc 29
nc 36
nop 2
dl 0
loc 38
rs 6.9666
c 0
b 0
f 0

How to fix   Complexity   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\SAML2\Assert;
6
7
use SimpleSAML\XMLSecurity\Assert\Assert as BaseAssert;
8
9
/**
10
 * SimpleSAML\SAML2\Assert\Assert wrapper class
11
 *
12
 * @package simplesamlphp/saml2
13
 *
14
 * @method static void validDateTime(mixed $value, string $message = '', string $exception = '')
15
 * @method static void validURI(mixed $value, string $message = '', string $exception = '')
16
 * @method static void validEntityID(mixed $value, string $message = '', string $exception = '')
17
 * @method static void nullOrValidDateTime(mixed $value, string $message = '', string $exception = '')
18
 * @method static void nullOrValidURI(mixed $value, string $message = '', string $exception = '')
19
 * @method static void nullOrValidEntityID(mixed $value, string $message = '', string $exception = '')
20
 * @method static void allValidDateTime(mixed $value, string $message = '', string $exception = '')
21
 * @method static void allValidURI(mixed $value, string $message = '', string $exception = '')
22
 * @method static void allValidEntityID(mixed $value, string $message = '', string $exception = '')
23
 */
24
class Assert extends BaseAssert
25
{
26
    use CustomAssertionTrait;
27
}
28