update lock clucknut
All checks were successful
All checks were successful
This commit is contained in:
@@ -5,9 +5,7 @@
|
||||
use Safe\Exceptions\FileinfoException;
|
||||
|
||||
/**
|
||||
* This function closes the instance opened by finfo_open.
|
||||
*
|
||||
* @param \finfo $finfo An finfo instance, returned by finfo_open.
|
||||
* @param \finfo $finfo
|
||||
* @throws FileinfoException
|
||||
*
|
||||
*/
|
||||
@@ -22,24 +20,9 @@ function finfo_close(\finfo $finfo): void
|
||||
|
||||
|
||||
/**
|
||||
* Procedural style
|
||||
*
|
||||
* Object-oriented style (constructor):
|
||||
*
|
||||
* This function opens a magic database and returns its instance.
|
||||
*
|
||||
* @param int $flags One or disjunction of more Fileinfo
|
||||
* constants.
|
||||
* @param null|string $magic_database Name of a magic database file, usually something like
|
||||
* /path/to/magic.mime. If not specified, the
|
||||
* MAGIC environment variable is used. If the
|
||||
* environment variable isn't set, then PHP's bundled magic database will
|
||||
* be used.
|
||||
*
|
||||
* Passing NULL or an empty string will be equivalent to the default
|
||||
* value.
|
||||
* @return \finfo (Procedural style only)
|
||||
* Returns an finfo instance on success.
|
||||
* @param int $flags
|
||||
* @param null|string $magic_database
|
||||
* @return \finfo
|
||||
* @throws FileinfoException
|
||||
*
|
||||
*/
|
||||
@@ -59,12 +42,8 @@ function finfo_open(int $flags = FILEINFO_NONE, ?string $magic_database = null):
|
||||
|
||||
|
||||
/**
|
||||
* Returns the MIME content type for a file as determined by using
|
||||
* information from the magic.mime file.
|
||||
*
|
||||
* @param resource|string $filename Path to the tested file.
|
||||
* @return string Returns the content type in MIME format, like
|
||||
* text/plain or application/octet-stream.
|
||||
* @param resource|string $filename
|
||||
* @return string
|
||||
* @throws FileinfoException
|
||||
*
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user