Removed repetition.
This commit is contained in:
parent
c41f1c4b52
commit
80f5d6d64b
5
vendor/Sensei/Sensei/Doc/Section.php
vendored
5
vendor/Sensei/Sensei/Doc/Section.php
vendored
@ -131,11 +131,6 @@ class Sensei_Doc_Section implements Countable
|
||||
if ( ! $short && ! $this->_parent->isRoot()) {
|
||||
return $this->_parent->getPath($short, $separator) . $separator . $this->getPath(true);
|
||||
} else {
|
||||
$patterns = array('/\s/', '/[^a-z0-9-]/');
|
||||
$replacements = array('-', '');
|
||||
|
||||
$path = preg_replace($patterns, $replacements, strtolower($this->_name));
|
||||
|
||||
return self::convertNameToPath($this->_name);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user