phpcs
This commit is contained in:
parent
de2f97ab4e
commit
b6e537a7e5
@ -1814,19 +1814,14 @@ class TCPDF_STATIC {
|
|||||||
*/
|
*/
|
||||||
public static function fopenLocal($filename, $mode)
|
public static function fopenLocal($filename, $mode)
|
||||||
{
|
{
|
||||||
if (strpos($filename, '//') === 0)
|
if (strpos($filename, '//') === 0) {
|
||||||
{
|
|
||||||
// Share folder on a (windows) server
|
// Share folder on a (windows) server
|
||||||
// e.g.: "//[MyServerName]/[MySharedFolder]/"
|
// e.g.: "//[MyServerName]/[MySharedFolder]/"
|
||||||
//
|
//
|
||||||
// nothing to change
|
// nothing to change
|
||||||
}
|
} elseif (strpos($filename, '://') === false) {
|
||||||
elseif (strpos($filename, '://') === false)
|
|
||||||
{
|
|
||||||
$filename = 'file://'.$filename;
|
$filename = 'file://'.$filename;
|
||||||
}
|
} elseif (stream_is_local($filename) !== true) {
|
||||||
elseif (stream_is_local($filename) !== true)
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1862,8 +1857,8 @@ class TCPDF_STATIC {
|
|||||||
* Wrapper for file_exists.
|
* Wrapper for file_exists.
|
||||||
* Checks whether a file or directory exists.
|
* Checks whether a file or directory exists.
|
||||||
* Only allows some protocols and local files.
|
* Only allows some protocols and local files.
|
||||||
* @param filename (string) Path to the file or directory.
|
* @param filename (string) Path to the file or directory.
|
||||||
* @return Returns TRUE if the file or directory specified by filename exists; FALSE otherwise.
|
* @return Returns TRUE if the file or directory specified by filename exists; FALSE otherwise.
|
||||||
* @public static
|
* @public static
|
||||||
*/
|
*/
|
||||||
public static function file_exists($filename) {
|
public static function file_exists($filename) {
|
||||||
@ -1880,7 +1875,7 @@ class TCPDF_STATIC {
|
|||||||
* Reads entire file into a string.
|
* Reads entire file into a string.
|
||||||
* The file can be also an URL.
|
* The file can be also an URL.
|
||||||
* @param $file (string) Name of the file or URL to read.
|
* @param $file (string) Name of the file or URL to read.
|
||||||
* @return The function returns the read data or FALSE on failure.
|
* @return The function returns the read data or FALSE on failure.
|
||||||
* @author Nicola Asuni
|
* @author Nicola Asuni
|
||||||
* @since 6.0.025
|
* @since 6.0.025
|
||||||
* @public static
|
* @public static
|
||||||
@ -2110,7 +2105,7 @@ class TCPDF_STATIC {
|
|||||||
return $a['i'];
|
return $a['i'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of page formats
|
* Array of page formats
|
||||||
* measures are calculated in this way: (inches * 72) or (millimeters * 72 / 25.4)
|
* measures are calculated in this way: (inches * 72) or (millimeters * 72 / 25.4)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user