original_string: protected function createThumbnail()
      {
  		$this->thumbnail = $this->thumbnailName();
  
      	if (! $this->validFile($this->thumbnailPath())) {
      		$img = $this->intervention
  				->make($this->imagePath())
  				->resize($this->width(), $this->height(), function ($constraint) {
              		$constraint->aspectRatio();
              		$constraint->upsize();
          		});
  
          	$img->save($this->thumbnailPath());
      	}
      }
code: protected function createThumbnail()
      {
  		$this->thumbnail = $this->thumbnailName();
  
      	if (! $this->validFile($this->thumbnailPath())) {
      		$img = $this->intervention
  				->make($this->imagePath())
  				->resize($this->width(), $this->height(), function ($constraint) {
              		$constraint->aspectRatio();
              		$constraint->upsize();
          		});
  
          	$img->save($this->thumbnailPath());
      	}
      }
code_tokens: protected function createThumbnail ( ) { $ this -> thumbnail = $ this -> thumbnailName ( ) ; if ( ! $ this -> validFile ( $ this -> thumbnailPath ( ) ) ) { $ img = $ this -> intervention -> make ( $ this -> imagePath ( ) ) -> resize ( $ this -> width ( ) , $ this -> height ( ) , function ( $ constraint ) { $ constraint -> aspectRatio ( ) ; $ constraint -> upsize ( ) ; } ) ; $ img -> save ( $ this -> thumbnailPath ( ) ) ; } }
docstring: Creates a new thumbnail.
  
  @return void
docstring_tokens: Creates a new thumbnail .