models/InstagramMedia.php
public function cover($entity, array $options = []) {
		$options += ['internal' => false];
		$result = [
			'type' => $entity->raw['type'],
			'title' => $entity->title()
		];

		if ($options['internal']) {
			return ['url' => 'instagram://' . $entity->id()] + $result;
		}
		if (!$url = static::_url($entity->raw)) {
			return false;
		}
		return compact('url') + $result;
	}
public function cover($entity, array $options = []) {
		$options += ['internal' => false];
		$result = [
			'type' => $entity->raw['type'],
			'title' => $entity->title()
		];

		if ($options['internal']) {
			return ['url' => 'instagram://' . $entity->id()] + $result;
		}
		if (!$url = static::_url($entity->raw)) {
			return false;
		}
		return compact('url') + $result;
	}
public function cover ( $ entity , array $ options = [ ] ) { $ options += [ 'internal' => false ] ; $ result = [ 'type' => $ entity -> raw [ 'type' ] , 'title' => $ entity -> title ( ) ] ; if ( $ options [ 'internal' ] ) { return [ 'url' => 'instagram://' . $ entity -> id ( ) ] + $ result ; } if ( ! $ url = static :: _url ( $ entity -> raw ) ) { return false ; } return compact ( 'url' ) + $ result ; }
Chooses highest resolution possible.
Chooses highest resolution possible .