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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user