public function distro()
    {
        if (file_exists('/etc/redhat-release')) {
            $centos_array = explode(' ', file_get_contents('/etc/redhat-release'));
            return strtoupper($centos_array[0]);
        }

        if (file_exists('/etc/os-release')) {
            preg_match('/ID=([a-zA-Z]+)/', file_get_contents('/etc/os-release'), $matches);
            return strtoupper($matches[1]);
        }
        return false;
    }
public function distro()
    {
        if (file_exists('/etc/redhat-release')) {
            $centos_array = explode(' ', file_get_contents('/etc/redhat-release'));
            return strtoupper($centos_array[0]);
        }

        if (file_exists('/etc/os-release')) {
            preg_match('/ID=([a-zA-Z]+)/', file_get_contents('/etc/os-release'), $matches);
            return strtoupper($matches[1]);
        }
        return false;
    }
public function distro ( ) { if ( file_exists ( '/etc/redhat-release' ) ) { $ centos_array = explode ( ' ' , file_get_contents ( '/etc/redhat-release' ) ) ; return strtoupper ( $ centos_array [ 0 ] ) ; } if ( file_exists ( '/etc/os-release' ) ) { preg_match ( '/ID=([a-zA-Z]+)/' , file_get_contents ( '/etc/os-release' ) , $ matches ) ; return strtoupper ( $ matches [ 1 ] ) ; } return false ; }
Get system distro

@return string
Get system distro