original_string: public function setConfig($config)
      {
          $this->config = $config;
  
          // Sanity check
          if (strpos($this->config['url'], '{id}') === false) {
              throw new Exception('Invalid Url: an id interpolation is required.', 1);
          }
  
          // Set media disk
          $this->config['disk'] = Arr::get(
              $this->config, 'disk', config('filesystems.default', 'local')
          );
      }
code: public function setConfig($config)
      {
          $this->config = $config;
  
          // Sanity check
          if (strpos($this->config['url'], '{id}') === false) {
              throw new Exception('Invalid Url: an id interpolation is required.', 1);
          }
  
          // Set media disk
          $this->config['disk'] = Arr::get(
              $this->config, 'disk', config('filesystems.default', 'local')
          );
      }
code_tokens: public function setConfig ( $ config ) { $ this -> config = $ config ; // Sanity check if ( strpos ( $ this -> config [ 'url' ] , '{id}' ) === false ) { throw new Exception ( 'Invalid Url: an id interpolation is required.' , 1 ) ; } // Set media disk $ this -> config [ 'disk' ] = Arr :: get ( $ this -> config , 'disk' , config ( 'filesystems.default' , 'local' ) ) ; }
docstring: Mutator method for the config property.
  
  @param array $config
  
  @return void
  @throws Exception
docstring_tokens: Mutator method for the config property .