Removed repetition.
This commit is contained in:
parent
c41f1c4b52
commit
80f5d6d64b
1 changed files with 0 additions and 5 deletions
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()) {
|
if ( ! $short && ! $this->_parent->isRoot()) {
|
||||||
return $this->_parent->getPath($short, $separator) . $separator . $this->getPath(true);
|
return $this->_parent->getPath($short, $separator) . $separator . $this->getPath(true);
|
||||||
} else {
|
} else {
|
||||||
$patterns = array('/\s/', '/[^a-z0-9-]/');
|
|
||||||
$replacements = array('-', '');
|
|
||||||
|
|
||||||
$path = preg_replace($patterns, $replacements, strtolower($this->_name));
|
|
||||||
|
|
||||||
return self::convertNameToPath($this->_name);
|
return self::convertNameToPath($this->_name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue