isHoverDisabled( $device ) ){ $css[ $device ][ self::NAME . '-property' ] = "none"; // Check if properties for this breakpoint are available, and generate appropriate styles } elseif ( $this->isBreakpointEnabled( $device ) ) { $timingFunction = $this->{$device}->timingFunction ?? 'ease'; $duration = $this->{$device}->duration ?? 1; $css[ $device ][ self::NAME ] = "all {$timingFunction} {$duration}s"; // If no property is set and hover is enabled for this breakpoint, set a default transition } elseif( $this->isHoverEnabled( $device ) ){ $css[ $device ][ self::NAME ] = "all ease 1s"; } } return $css; } }