public function getPreview(): ?string
    {
        $array = glob($this->getPath() . '/assets/images/preview.{jpg,jpeg,png,gif}', GLOB_BRACE);
        if (isset($array[0])) {
            return sprintf('/themes/%s/images/%s', $this->shortName, (new SplFileInfo($array[0]))->getBasename());
        }

        return null;
    }
public function getPreview(): ?string
    {
        $array = glob($this->getPath() . '/assets/images/preview.{jpg,jpeg,png,gif}', GLOB_BRACE);
        if (isset($array[0])) {
            return sprintf('/themes/%s/images/%s', $this->shortName, (new SplFileInfo($array[0]))->getBasename());
        }

        return null;
    }
public function getPreview ( ) : ? string { $ array = glob ( $ this -> getPath ( ) . '/assets/images/preview.{jpg,jpeg,png,gif}' , GLOB_BRACE ) ; if ( isset ( $ array [ 0 ] ) ) { return sprintf ( '/themes/%s/images/%s' , $ this -> shortName , ( new SplFileInfo ( $ array [ 0 ] ) ) -> getBasename ( ) ) ; } return null ; }
Returns the theme preview image.

@return null|string The theme preview image
Returns the theme preview image .