Why using `StringHelper::basename()` here? The `$file` should be a valid file path, which means `basename()` should work.