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

Assert::valueToString()   C

Complexity

Conditions 13
Paths 11

Size

Total Lines 43
Code Lines 21

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 13
eloc 21
c 1
b 0
f 0
nc 11
nop 1
dl 0
loc 43
rs 6.6166

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