Passed
Push — master ( ca71fa...a18c2c )
by Sebastian
02:51
created

LipsumHelper::containsLipsum()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
/**
3
 * @package Application Utils
4
 * @subpackage LipsumHelper
5
 * @see \AppUtils\LipsumHelper
6
 */
7
8
declare(strict_types=1);
9
10
namespace AppUtils;
11
12
use AppUtils\LipsumHelper\LipsumDetector;
13
14
/**
15
 * Lipsum helper with tools all around the often used
16
 * dummy text. Includes a detector that can find out
17
 * if a string contains dummy text.
18
 *
19
 * @package Application Utils
20
 * @subpackage LipsumHelper
21
 * @author Sebastian Mordziol <[email protected]>
22
 *
23
 * @see https://lipsum.com
24
 */
25
class LipsumHelper
26
{
27
    public static function containsLipsum(string $subject) : LipsumDetector
28
    {
29
        return new LipsumDetector($subject);
30
    }
31
}
32