Added get_dir_file_info(), get_file_info(), and get_mime_by_extension() to the File Helper.
Changed ( ! condition) into (! condition) within the code
diff --git a/system/libraries/Zip.php b/system/libraries/Zip.php
index fab8e7f..4bdc925 100644
--- a/system/libraries/Zip.php
+++ b/system/libraries/Zip.php
@@ -57,7 +57,7 @@
{
foreach ((array)$directory as $dir)
{
- if ( ! preg_match("|.+/$|", $dir))
+ if (! preg_match("|.+/$|", $dir))
{
$dir .= '/';
}
@@ -196,7 +196,7 @@
*/
function read_file($path, $preserve_filepath = FALSE)
{
- if ( ! file_exists($path))
+ if (! file_exists($path))
{
return FALSE;
}
@@ -301,7 +301,7 @@
*/
function archive($filepath)
{
- if ( ! ($fp = @fopen($filepath, "wb")))
+ if (! ($fp = @fopen($filepath, "wb")))
{
return FALSE;
}
@@ -326,7 +326,7 @@
*/
function download($filename = 'backup.zip')
{
- if ( ! preg_match("|.+?\.zip$|", $filename))
+ if (! preg_match("|.+?\.zip$|", $filename))
{
$filename .= '.zip';
}