Passed
Push — master ( 765b41...e6bf79 )
by Tim
03:49 queued 01:38
created

Assert::valueToString()   C

Complexity

Conditions 13
Paths 11

Size

Total Lines 43
Code Lines 21

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 13
eloc 21
c 2
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\SAML11\Assert;
6
7
use SimpleSAML\XML\Assert\Assert as BaseAssert;
8
9
/**
10
 * SimpleSAML\SAML11\Assert\Assert wrapper class
11
 *
12
 * @package simplesamlphp/saml11
13
 *
14
 * @method static void validSAMLAnyURI(mixed $value, string $message = '', string $exception = '')
15
 * @method static void validSAMLDateTime(mixed $value, string $message = '', string $exception = '')
16
 * @method static void validSAMLString(mixed $value, string $message = '', string $exception = '')
17
 * @method static void nullOrValidSAMLAnyURI(mixed $value, string $message = '', string $exception = '')
18
 * @method static void nullOrValidSAMLDateTime(mixed $value, string $message = '', string $exception = '')
19
 * @method static void nullOrValidSAMLString(mixed $value, string $message = '', string $exception = '')
20
 * @method static void allValidSAMLAnyURI(mixed $value, string $message = '', string $exception = '')
21
 * @method static void allValidSAMLDateTime(mixed $value, string $message = '', string $exception = '')
22
 * @method static void allValidSAMLString(mixed $value, string $message = '', string $exception = '')
23
 */
24
class Assert extends BaseAssert
25
{
26
    use SAMLAnyURITrait;
27
    use SAMLDateTimeTrait;
28
    use SAMLStringTrait;
29
}
30