Whitespace style should be `if($this->detectionType == self::DETECTION_TYPE_EXTENDED) {` as in other places.