Completed
Push — master ( cd6d5c...fa5688 )
by Axel
05:46 queued 03:12
created

Slugger   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 9
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A slugify() 0 6 1
1
<?php
2
3
namespace Developtech\AgilityBundle\Utils;
4
5
class Slugger
6
{
7 2
    public function slugify($string)
8
    {
9 2
        return preg_replace(
10 2
            '/[^a-z0-9]/', '-', strtolower(trim(strip_tags($string)))
11 2
        );
12
    }
13
}
14