vendor/codezeen/yii2-tinymce/TinyMceCompressorAction.php
/**
     * Parses the specified time format into seconds. Supports formats like 10h, 10d, 10m.
     *
     * @param String $time Time format to convert into seconds.
     *
     * @return Int Number of seconds for the specified format.
     */
Parses the specified time format into seconds. Supports formats like 10h, 10d, 10m.
@param String $time Time format to convert into seconds.

@return Int Number of seconds for the specified format.
Parses the specified time format into seconds . Supports formats like 10h 10d 10m . @param String $time Time format to convert into seconds . @return Int Number of seconds for the specified format .
private function parseTime($time)
    {
        $multipel = 1;
        if (strpos($time, "h") > 0) {
            $multipel = 3600;
        }
        if (strpos($time, "d") > 0) {
            $multipel = 86400;
        }
        if (strpos($time, "m") > 0) {
            $multipel = 2592000;
        }
        return intval($time) * $multipel;
    }
private function parseTime ( $ time ) { $ multipel = 1 ; if ( strpos ( $ time , " h " ) > 0 ) { $ multipel = 3600 ; } if ( strpos ( $ time , " d " ) > 0 ) { $ multipel = 86400 ; } if ( strpos ( $ time , " m " ) > 0 ) { $ multipel = 2592000 ; } return intval ( $ time ) * $ multipel ; }
Parses the specified time format into seconds.
Parses the specified time format into seconds .
// Hours // Days // Months // Trim string