src: phpcs sure is picky today

This commit is contained in:
Franco Fichtner 2015-02-21 11:03:13 +01:00
parent acc9db9efb
commit 227a53ba29

View File

@ -286,10 +286,8 @@ class MenuItem
foreach ($this->children as $nodeId => $node) {
$node->toggleSelected($url);
if ($node->getUrl() != "") {
if (
strlen($url) >= strlen($node->getUrl()) &&
$node->getUrl() == substr($url, strlen($url)-strlen($node->getUrl()))
) {
if (strlen($url) >= strlen($node->getUrl()) &&
$node->getUrl() == substr($url, strlen($url)-strlen($node->getUrl()))) {
$node->select();
}
}