Line 142 in /var/www/vhosts/discovery.kent.sch.uk/public_html/vendor/embed/embed/src/Embed.php
133 134 //Use the default webpage adapter 135 $adapter = self::getClass('Webpage', $config); 136 137 if ($adapter::check($response)) { 138 return new $adapter($response, $config, $dispatcher); 139 } 140 141 if ($response->getError() === null) { 142 $exception = new Exceptions\InvalidUrlException(sprintf("Invalid url '%s' (Status code %s)", (string) $url, $response->getStatusCode())); 143 } else { 144 $exception = new Exceptions\InvalidUrlException($response->getError()); 145 } 146 147 $exception->setResponse($response); 148