mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-17 16:26:51 +03:00
Remove duplicated call to str_replace()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user