1
0
mirror of https://github.com/mrclay/minify.git synced 2025-09-01 01:51:47 +02:00

last_modified is always integer, no need to check for null

This commit is contained in:
Elan Ruusamäe
2014-09-18 21:51:39 +03:00
parent 4f5cdbb746
commit 6817584513

View File

@@ -141,7 +141,7 @@ class Minify_HTML_Helper {
$max = $lastModified; $max = $lastModified;
/** @var Minify_Source $source */ /** @var Minify_Source $source */
foreach ((array)$sources as $source) { foreach ((array)$sources as $source) {
if ($source instanceof Minify_Source && $source->getLastModified() !== null) { if ($source instanceof Minify_Source) {
$max = max($max, $source->getLastModified()); $max = max($max, $source->getLastModified());
} elseif (is_object($source) && isset($source->lastModified)) { } elseif (is_object($source) && isset($source->lastModified)) {
$max = max($max, $source->lastModified); $max = max($max, $source->lastModified);