- /**
- * Split a filename into filename and extension
- *
- * @param string $filename
- * @return array
- */
- private function splitFilename( $filename ) {
- $parts = explode( '.', $filename );
- $ext = $parts[count( $parts ) - 1];
- unset( $parts[count( $parts ) - 1] );
- $fname = implode( '.', $parts );
-
- return [ $fname, $ext ];
- }
-