Generates a filename (without extension)

@return string
191115
public function filename()
    {
        $shipping_file = $this->shipping_file;
        $assignment = $shipping_file->assignment;

        $format = 'COB.%03.3s.%06.6s.%08.8s.%05.5s.%05.5s';

        $data = [
            $assignment->cnab,
            $assignment->edi,
            static::date('Ymd', $shipping_file->stamp),
            $shipping_file->counter,
            $assignment->covenant,
        ];

        return vsprintf($format, $data);
    }
175849
public function getFilename()
	{
		if (is_null($this->filename)) {
			$this->filename = pathinfo($this->path, PATHINFO_BASENAME);
		}
		return $this->filename;
	}
478873
static function filenameWithoutExtension($filename) {
		$filename=self::filename($filename);
		if (preg_match('~(.*)\.(\w{1,10})$~',$filename,$parts)) {
			return $parts[1];
		}
		return $filename;
	}
1311002
public function getFilepath()
    {
        $filepath = $this->_path['dirname'].DIRECTORY_SEPARATOR.$this->_path['filename'];

        if ($this->_path['extension'])
            $filepath .= '.'.$this->_path['extension'];

        return $filepath;
    }
880895
public function getSafeFileName()
    {
        $fileExtension = pathinfo($this->file->getClientOriginalName(), PATHINFO_EXTENSION);
        $mimeTypeExtension = $this->file->guessExtension();
        $newExtension = !empty($mimeTypeExtension) ? $mimeTypeExtension : $fileExtension;

        $baseName = !empty($fileExtension) ? basename($this->file->getClientOriginalName(), $fileExtension) : $this->file->getClientOriginalName();
        $safeBaseName = Transliterator::urlize($baseName);

        return $safeBaseName . (!empty($newExtension) ? '.' . $newExtension : '');
    }
757588
protected function tmpfilename()
    {
        if (is_null($this->tmpfilename) === true) {
            $this->tmpfilename = $this->files->tmpfilename($this->name, $this->token);
        }

        return $this->tmpfilename;
    }
106757
private function generateFilename($path, $extension)
    {
        $file = '';

        while (!$file || is_file($path.$file)) {
            $file = uniqid().'.'.$extension;
        }

        return $file;
    }
238135
function getBasename()
    {
        $filename  = $this->getFilename();
        $extension = $this->getExtension();

        return ($extension === '' || $extension === null)
            ? $filename
            : $filename.'.'.$extension;
    }
679200
public function getExportFilename()
    {
        $host = php_uname('n');
        $default = $host . '_' . date('Y-m-d_H.i.s', time());
        $filename = array_get(
            $this->manifest,
            'storage.filename',
            array_get($this->manifest, 'storage.file', $default)
        );

        $filename = (empty($filename)) ? $default : $filename;

        if (strpos($filename, static::FILE_EXTENSION) === false) {
            $filename .= '.' . static::FILE_EXTENSION;
        }

        return $filename;
    }
1361363
public function fetchName(string $filename): ?string
    {
        return str_replace('\\', '/', substr($filename, 0, -1 * (1 + strlen($this->extension))));
    }
526404
private function _get_file_extension()
    {

        if (empty($this->u_mime_type)) return false;

        $tmp                  = explode('/', $this->u_mime_type);
        $this->file_extension = array_pop($tmp);

        unset($tmp);

        return true;
    }
372157
protected function generateBasename()
    {
        $filename = md5($this->image . $this->height . $this->width);

        if (isset(static::$config['default_extension'])) {

            $extension = static::$config['default_extension'];

        } else {

            $extension = pathinfo($this->image, PATHINFO_EXTENSION);

        }

        return $filename . '.' . $extension;   
    }
28853
private function filename()
    {
        $to = str_replace(['@', '.'], ['_at_', '_'], array_keys($this->message->getTo())[0]);

        return str_slug($this->message->getDate().'_'.$to.'_'.$this->message->getSubject(), '_').'.html';
    }
293261
protected function getFileName()
    {
        if (!$this->fileName) {
            $this->fileName = preg_replace('/\W/', '.', get_class($this)) . '.json';
        }
        return codecept_data_dir() . $this->fileName;
    }
1138282
public static function _getFilename ($file)
	{
		
		// Remove extension
		
		$base	= basename ($file);
		$arr	= explode ('.', $base);
		array_pop ($arr);
		
		// Reset the filename
		
		$file	= NULL;
		
		// Construct the filename without the extension
		
		foreach ($arr as $part)
		{
			$file	.= $part;
		}
		
		// Return the filename
		
		return $file;
		
	}
861774
protected function getFilename()
    {
        $filenameParts = [];
        $filenameParts[] = date('Y-m-d_H-i-s');

        if ($this->getTitle() != '') {
            $title = $this->getTitle();
            $title = str_replace(' ', '_', $title);

            $filenameParts[] = preg_replace('/[^a-z0-9_-]+/i', '', $title);
        }

        return implode('_', $filenameParts);
    }
941125
public function getFilename()
    {
        if (is_null($this->filename) === true) {
            $str = new StringWrapper(parent::getFilename());
            $this->filename = $str->deleteSufix('.'.$this->getExtension());
        }

        return $this->filename;
    }