It seems like getMedia() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
57
$this->representations = (new AutoRepresentations($this->/** @scrutinizer ignore-call */ getMedia()->probe(), $side_values, $k_bitrate_values))->get();
Loading history...
58
59
return $this;
60
}
61
62
/**
63
* check whether format is set or nor
64
*/
65
private function checkFormat()
66
{
67
if (!$this->format) {
68
throw new InvalidArgumentException('First you must set the format of the video');