Update Detector.php