src/MFileInfo.php
public function getOwner(): string
    {
        if ($this->caching == false) {
            $ownerId = $this->getOwnerId();

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

            $owner = posix_getpwuid($ownerId);

            return $owner["name"];
        }

        if ($this->owner == null) {
            $ownerId = $this->getOwnerId();

            if ($ownerId == -2) {
                $this->owner = "";
            }

            $owner = posix_getpwuid($ownerId);

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

        return $this->owner;
    }
public function getOwner(): string
    {
        if ($this->caching == false) {
            $ownerId = $this->getOwnerId();

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

            $owner = posix_getpwuid($ownerId);

            return $owner["name"];
        }

        if ($this->owner == null) {
            $ownerId = $this->getOwnerId();

            if ($ownerId == -2) {
                $this->owner = "";
            }

            $owner = posix_getpwuid($ownerId);

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

        return $this->owner;
    }
public function getOwner ( ) : string { if ( $ this -> caching == false ) { $ ownerId = $ this -> getOwnerId ( ) ; if ( $ ownerId == - 2 ) { return "" ; } $ owner = posix_getpwuid ( $ ownerId ) ; return $ owner [ "name" ] ; } if ( $ this -> owner == null ) { $ ownerId = $ this -> getOwnerId ( ) ; if ( $ ownerId == - 2 ) { $ this -> owner = "" ; } $ owner = posix_getpwuid ( $ ownerId ) ; $ this -> owner = $ owner [ "name" ] ; } return $ this -> owner ; }
Returns the owner of the file. On systems where files do not have
owners, or if an error occurs, an empty string is returned.

@return string
Returns the owner of the file . On systems where files do not have owners or if an error occurs an empty string is returned .