cleaning up code.

This commit is contained in:
Taylor Otwell
2012-02-17 14:02:53 -06:00
parent ba3f62f79a
commit bf6313e50b
5 changed files with 20 additions and 31 deletions

View File

@@ -161,8 +161,7 @@ class File {
// The MIME configuration file contains an array of file extensions and
// their associated MIME types. We will spin through each extension the
// developer wants to check to determine if the file's MIME type is in
// the list of MIMEs we have for that extension.
// developer wants to check and look for the MIME type.
foreach ((array) $extensions as $extension)
{
if (isset($mimes[$extension]) and in_array($mime, (array) $mimes[$extension]))