Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3.0261 |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
32 | 4 | private function rawSlugValue(): string |
|
33 | { |
||
34 | 4 | if (!$this->urlRecord) { |
|
35 | return ''; |
||
36 | } |
||
37 | |||
38 | 4 | $slug = $this->urlRecord->slug; |
|
39 | |||
40 | 4 | if ($this->startsWithBaseUrlSegment($slug)) { |
|
41 | 2 | $slug = trim(substr($slug, strlen($this->baseUrlSegment)), '/'); |
|
42 | } |
||
43 | |||
44 | 4 | return $slug; |
|
45 | } |
||
70 |