From 68175845131857440a8ffd7feb499080110887e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 18 Sep 2014 21:51:39 +0300 Subject: [PATCH] last_modified is always integer, no need to check for null --- min/lib/Minify/HTML/Helper.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/min/lib/Minify/HTML/Helper.php b/min/lib/Minify/HTML/Helper.php index f4808c5..59d06dc 100644 --- a/min/lib/Minify/HTML/Helper.php +++ b/min/lib/Minify/HTML/Helper.php @@ -17,7 +17,7 @@ class Minify_HTML_Helper { /** * Get an HTML-escaped Minify URI for a group or set of files - * + * * @param string|array $keyOrFiles a group key or array of filepaths/URIs * @param array $opts options: * 'farExpires' : (default true) append a modified timestamp for cache revving @@ -141,7 +141,7 @@ class Minify_HTML_Helper { $max = $lastModified; /** @var Minify_Source $source */ foreach ((array)$sources as $source) { - if ($source instanceof Minify_Source && $source->getLastModified() !== null) { + if ($source instanceof Minify_Source) { $max = max($max, $source->getLastModified()); } elseif (is_object($source) && isset($source->lastModified)) { $max = max($max, $source->lastModified); @@ -161,7 +161,7 @@ class Minify_HTML_Helper { protected $_filePaths = array(); protected $_lastModified = null; - + /** * In a given array of strings, find the character they all have at * a particular index @@ -208,7 +208,7 @@ class Minify_HTML_Helper { } $base = preg_replace('@[^/]+$@', '', $base); $uri = $minRoot . 'f=' . implode(',', $paths); - + if (substr($base, -1) === '/') { // we have a base dir! $basedPaths = $paths;