Get review image.

@param \simplehtmldom_1_5\simple_html_dom $top_area

@return string
6515
private function getReviewImage($top_area)
    {
        $image = $top_area->find('table', 0);
        $image = $image->find('td', 0)->find('img', 0)->src;

        return Helper::imageUrlCleaner($image);
    }
273732
public function getCurrentArea(): AreaContract
    {
        $segment = $this->request->segment(1);
        $area    = $segment ? $this->getById($segment) : null;


        if (!$area && $this->auth->check()) {
            $user  = $this->auth->user();
            $areas = $user->getArea();
            if (is_array($areas)) {
                $area = $this->areas->getById(reset($areas));
            } else {
                $area = $this->areas->getById($areas);
            }
        }

        return $area ?: $this->getDefault();
    }
1228488
public function getImage(string $name)
    {
        $contentArea = $this->content->getImage($name);

        if ($contentArea) {
            return $contentArea->image;
        }

        return null;
    }
321153
public function top()
    {
        $objects = array_values($this->_data);

        $object = null;
        if (isset($objects[0])) {
            $object = $objects[0];
        }

        return $object;
    }
1326181
private function getEpisode($result_area)
    {
        $episode = $result_area->find('td', 3)->plaintext;
        $episode = trim($episode);

        return $episode == '-' ? '' : $episode;
    }
1328163
protected function _getPreview()
    {
        return empty($this->_properties['photos']) ? null : collection($this->_properties['photos'])->extract('path')->first();
    }
1089576
public function getImageQuery()
    {
        $command = '';

        foreach($this->effect as $effect)
        {
            if($effect instanceof PictureEffect)
            {
                $command .= $effect->__toString() . '&';
            }
        }

        $command .= 'Quality;' . $this->quality . '&';

        if($this->progressive)
        {
            $command .= 'Progressive&';
        }

        return substr($command, 0, strlen($command) - 1);
    }
301417
protected function _getPicture()
    {
        if (!empty($this->_properties['id'])) {
            $files = ((new Folder(USER_PICTURES))->find($this->_properties['id'] . '\..+'));

            if (!empty($files)) {
                return 'users' . DS . array_values($files)[0];
            }
        }

        //Checks for `webroot/img/no-avatar.jpg`
        if (is_readable(WWW_ROOT . 'img' . DS . 'no-avatar.jpg')) {
            return 'no-avatar.jpg';
        }

        return 'MeCms.no-avatar.jpg';
    }
808263
public function getTagAttribute()
    {
        return ImageElement::img()
            ->isSelfClosing()
            ->src($this->getUrlAttribute() ?: false)
            ->alt($this->getAttribute('title') ?: false);
    }
994402
public function review() {
		if(!$this->canReview()){
			return $this->redirect($this->Link());
		}
		$registration = $this->getCurrentRegistration();
		$customisations = array(
			'EditLink' => $this->Link('attendee/edit'),
			'DeleteLink' => $this->Link('attendee/delete'),
			'Total' => $registration->obj('calculateTotal')
		);
		$this->extend("updateReviewTable", $registration, $customisations);
		$registration = $registration->renderWith("AttendeesReviewTable", $customisations);
		return array(
			'Title' => 'Review',
			'Content' => $registration,
			'Form' => $this->ReviewForm()
		);
	}
665200
public function getAdminThumbAttribute($width = 40, $height = 40)
    {

        // Check if there are images for the model
        if (!method_exists($this, 'images')) {
            return;
        }

        $images = $this->images;
        if ($images->isEmpty()) {
            return;
        }

        // Get null-named (default) images first
        return $images->sortBy('name')->first()->crop($width, $height)->url;
    }
133118
public static function getImage($ImageUrl, $ImageDesc, $ImageW = null, $ImageH = null)
    {
        self::$Data = $ImageUrl;

        if (file_exists(self::$Data) && !is_dir(self::$Data)):
            $patch = HOME;
            $imagem = self::$Data;
            return "<img src=\"{$patch}/tim.php?src={$patch}/{$imagem}&w={$ImageW}&h={$ImageH}\" alt=\"{$ImageDesc}\" title=\"{$ImageDesc}\"/>";
        elseif (file_exists('../' . self::$Data) && !is_dir('../' . self::$Data)):
            $patch = HOME;
            $imagem = self::$Data;
            return "<img src=\"{$patch}/tim.php?src={$patch}/{$imagem}&w={$ImageW}&h={$ImageH}\" alt=\"{$ImageDesc}\" title=\"{$ImageDesc}\" class='imgreturn' />";
        else:
            return false;
        endif;
    }
365580
public function preview()
	{
		$sizes = \System::getContainer()->get('contao.image.image_sizes')->getAllOptions();
		$size = StringUtil::deserialize($this->size);
		
		if (is_numeric($size[2]))
		{
			return '<div class="widget"><span style="color:#b3b3b3 ">' . $sizes['image_sizes'][$size[2]] . '</span></div>';
		}
		else
		{
			return '<div class="widget"><span style="color:#b3b3b3 ">' . $GLOBALS['TL_LANG']['MSC'][$size[2]][0] . ' (' . $size[0] . 'x' . $size[1] . ')</span></div>';
		}
	}
884662
private function getId($name_area)
    {
        $temp_id = $name_area->find('a', 0)->href;
        $temp_id = explode('=', $temp_id);

        return $temp_id[1];
    }
272474
public function get_area_title() {

        if ($this->get_context()->contextlevel == CONTEXT_SYSTEM) {
            return '';

        } else if ($this->get_context()->contextlevel >= CONTEXT_COURSE) {
            $this->ensure_isset(array('context', 'component', 'area'));
            $areas = $this->get_available_areas();
            if (array_key_exists($this->get_area(), $areas)) {
                return $areas[$this->get_area()];
            } else {
                debugging('Unknown area!');
                return '???';
            }

        } else {
            throw new coding_exception('Unsupported context level');
        }
    }
1119546
private function getScore($result_area)
    {
        $score = $result_area->find('td', 4)->plaintext;
        $score = trim($score);

        return $score == 'N/A' ? '' : $score;
    }
717100
private function getReviewId($very_bottom_area)
    {
        $id = $very_bottom_area->find('a', 0)->href;
        $id = explode('?id=', $id);

        return $id[1];
    }