src/MFileInfo.php
public function getGroup(): string
    {
        if ($this->caching == false) {
            $groupId = $this->getGroupId();

            if ($groupId == -2) {
                return "";
            }

            $group = posix_getgrgid($groupId);

            return $group["name"];
        }

        if ($this->group == null) {
            $groupId = $this->getOwnerId();

            if ($groupId == -2) {
                $this->group = "";
            }

            $group = posix_getpwuid($groupId);

            $this->group = $group["name"];
        }

        return $this->group;
    }
public function getGroup(): string
    {
        if ($this->caching == false) {
            $groupId = $this->getGroupId();

            if ($groupId == -2) {
                return "";
            }

            $group = posix_getgrgid($groupId);

            return $group["name"];
        }

        if ($this->group == null) {
            $groupId = $this->getOwnerId();

            if ($groupId == -2) {
                $this->group = "";
            }

            $group = posix_getpwuid($groupId);

            $this->group = $group["name"];
        }

        return $this->group;
    }
public function getGroup ( ) : string { if ( $ this -> caching == false ) { $ groupId = $ this -> getGroupId ( ) ; if ( $ groupId == - 2 ) { return "" ; } $ group = posix_getgrgid ( $ groupId ) ; return $ group [ "name" ] ; } if ( $ this -> group == null ) { $ groupId = $ this -> getOwnerId ( ) ; if ( $ groupId == - 2 ) { $ this -> group = "" ; } $ group = posix_getpwuid ( $ groupId ) ; $ this -> group = $ group [ "name" ] ; } return $ this -> group ; }
Returns the group of the file. On Windows, on systems where files do not
have groups, or if an error occurs, an empty string is returned.

@return string
Returns the group of the file . On Windows on systems where files do not have groups or if an error occurs an empty string is returned .