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

Helper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A prepare() 0 5 1
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
}