Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.humitest.fr
/
htdocs
/
vendor
/
vich
/
uploader-bundle
/
Util
/
/srv/data/web/vhosts/www.humitest.fr/htdocs/vendor/vich/uploader-bundle/Util/FilenameUtils.php
<?php namespace Vich\UploaderBundle\Util; final class FilenameUtils { /** * This class should not be instantiated. */ private function __construct() { } /** * Splits filename for array of basename and extension. * * @param string $filename * * @return array An array of basename and extension */ public static function spitNameByExtension(string $filename): array { if (false === $pos = \strrpos($filename, '.')) { return [$filename, '']; } return [\substr($filename, 0, $pos), \substr($filename, $pos + 1)]; } }