public function height() {
        return $this->_cache(__FUNCTION__, function($file) {
            /** @type \Transit\File $file */

            if (!$file->isImage()) {
                return null;
            }

            $height = 0;

            if ($dims = $file->dimensions()) {
                $height = $dims['height'];
            }

            return $height;
        });
    }
public function height() {
        return $this->_cache(__FUNCTION__, function($file) {
            /** @type \Transit\File $file */

            if (!$file->isImage()) {
                return null;
            }

            $height = 0;

            if ($dims = $file->dimensions()) {
                $height = $dims['height'];
            }

            return $height;
        });
    }
public function height ( ) { return $ this -> _cache ( __FUNCTION__ , function ( $ file ) { /** @type \Transit\File $file */ if ( ! $ file -> isImage ( ) ) { return null ; } $ height = 0 ; if ( $ dims = $ file -> dimensions ( ) ) { $ height = $ dims [ 'height' ] ; } return $ height ; } ) ; }
Return the image height.

@return int
Return the image height .