src/MediaUploader.php
private function verifySource()
    {
        if (empty($this->source)) {
            throw ConfigurationException::noSourceProvided();
        }
        if (! $this->source->valid()) {
            throw FileNotFoundException::fileNotFound($this->source->path());
        }
    }
private function verifySource()
    {
        if (empty($this->source)) {
            throw ConfigurationException::noSourceProvided();
        }
        if (! $this->source->valid()) {
            throw FileNotFoundException::fileNotFound($this->source->path());
        }
    }
private function verifySource ( ) { if ( empty ( $ this -> source ) ) { throw ConfigurationException :: noSourceProvided ( ) ; } if ( ! $ this -> source -> valid ( ) ) { throw FileNotFoundException :: fileNotFound ( $ this -> source -> path ( ) ) ; } }
Ensure that a valid source has been provided.
@return void
@throws \Plank\Mediable\Exceptions\MediaUpload\ConfigurationException If no source is provided
@throws \Plank\Mediable\Exceptions\MediaUpload\FileNotFoundException If the source is invalid
Ensure that a valid source has been provided .