Merge branch '3.x' of https://github.com/bkayranci/uuid into bkayranci-3.x

This commit is contained in:
Ben Ramsey
2019-11-30 11:51:54 -08:00
+2 -2
View File
@@ -67,7 +67,7 @@ class SystemNodeProvider implements NodeProviderInterface
}
ob_start();
switch (strtoupper(substr(php_uname('a'), 0, 3))) {
switch (strtoupper(substr(PHP_OS, 0, 3))) {
case 'WIN':
passthru('ipconfig /all 2>&1');
break;
@@ -95,7 +95,7 @@ class SystemNodeProvider implements NodeProviderInterface
{
$mac = false;
if (strtoupper(php_uname('s')) === 'LINUX') {
if (strtoupper(PHP_OS) === 'LINUX') {
$addressPaths = glob('/sys/class/net/*/address', GLOB_NOSORT);
if (empty($addressPaths)) {