Remove duplicated call to str_replace()

This commit is contained in:
Marcos
2016-06-23 21:06:22 +02:00
parent b4fe3b7387
commit ab81ad278a
+1 -2
View File
@@ -42,8 +42,7 @@ class SystemNodeProvider implements NodeProviderInterface
// the first one found
if (preg_match_all($pattern, $this->getIfconfig(), $matches, PREG_PATTERN_ORDER)) {
$node = $matches[1][0];
$node = str_replace(':', '', $node);
$node = str_replace('-', '', $node);
$node = str_replace([':', '-'], '', $node);
}
return $node;