private function deriveOperaDevices()
{
if ($this->data->browser->name == 'Opera' && $this->data->device->type == Constants\DeviceType::TELEVISION) {
$this->data->browser->name = 'Opera Devices';
$this->data->browser->version = null;
if ($this->data->engine->getName() == 'Presto') {
$data = ['2.12' => '3.4', '2.11' => '3.3', '2.10' => '3.2', '2.9' => '3.1', '2.8' => '3.0', '2.7' => '2.9', '2.6' => '2.8', '2.4' => '10.3', '2.3' => '10', '2.2' => '9.7', '2.1' => '9.6'];
$key = implode('.', array_slice(explode('.', $this->data->engine->getVersion()), 0, 2));
if (isset($data[$key])) {
$this->data->browser->version = new Version(['value' => $data[$key]]);
} else {
unset($this->data->browser->version);
}
}
$this->data->os->reset();
}
}