public static function opacity($opacity): int
    {
        if ($opacity <= 1) {
            $opacity *= 100;
        }

        $opacity = Filter::int($opacity);
        $opacity = Vars::limit($opacity, 0, 100);

        return $opacity;
    }
public static function opacity($opacity): int
    {
        if ($opacity <= 1) {
            $opacity *= 100;
        }

        $opacity = Filter::int($opacity);
        $opacity = Vars::limit($opacity, 0, 100);

        return $opacity;
    }
public static function opacity ( $ opacity ) : int { if ( $ opacity <= 1 ) { $ opacity *= 100 ; } $ opacity = Filter :: int ( $ opacity ) ; $ opacity = Vars :: limit ( $ opacity , 0 , 100 ) ; return $ opacity ; }
Check opacity value

@param $opacity
@return int
Check opacity value