Test Setup Failed
Push — master ( 7ba13b...2681c1 )
by Denis
03:15
created

Helper::prepare()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Ngtfkx\Laradeck\AddressGenerator;
4
5
6
class Helper
7
{
8
    public static function prepare($string)
9
    {
10
        $string = str_replace([' ', '-', '_'], '', mb_strtolower($string));
11
12
        return $string;
13
    }
14
}