summaryrefslogtreecommitdiffstats
path: root/system/helpers/download_helper.php
diff options
context:
space:
mode:
authorGabriel Potkány <gadelat@gmail.com>2015-02-04 08:22:06 +0100
committerGabriel Potkány <gadelat@gmail.com>2015-02-04 08:22:06 +0100
commitcea5fb713822d00460222deaa1cf66543effccf8 (patch)
tree9c21cbaadda1ded0bfb64b0449f64bccd2c35837 /system/helpers/download_helper.php
parent1fb500077784638399be79b32fe354aec257413c (diff)
Adjusted returns/return types to suggestions
Diffstat (limited to 'system/helpers/download_helper.php')
-rw-r--r--system/helpers/download_helper.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/system/helpers/download_helper.php b/system/helpers/download_helper.php
index 2710a4ac7..95c94a1b8 100644
--- a/system/helpers/download_helper.php
+++ b/system/helpers/download_helper.php
@@ -59,13 +59,13 @@ if ( ! function_exists('force_download'))
* @param string filename
* @param mixed the data to be downloaded
* @param bool whether to try and send the actual file MIME type
- * @return bool
+ * @return void
*/
function force_download($filename = '', $data = '', $set_mime = FALSE)
{
if ($filename === '' OR $data === '')
{
- return FALSE;
+ return;
}
elseif ($data === NULL)
{
@@ -77,7 +77,7 @@ if ( ! function_exists('force_download'))
}
else
{
- return FALSE;
+ return;
}
}
else
@@ -98,7 +98,7 @@ if ( ! function_exists('force_download'))
/* If we're going to detect the MIME type,
* we'll need a file extension.
*/
- return FALSE;
+ return;
}
// Load the mime types
@@ -125,7 +125,7 @@ if ( ! function_exists('force_download'))
if ($data === NULL && ($fp = @fopen($filepath, 'rb')) === FALSE)
{
- return FALSE;
+ return;
}
// Clean output buffer