original_string: private function moveDirectory($from, $location, $newName)
      {
          $newName = Str::slug($newName);
  
          return tap("{$location}/{$newName}", function ($to) use ($from) {
              $this->media->move($from, $to);
          });
      }
code: private function moveDirectory($from, $location, $newName)
      {
          $newName = Str::slug($newName);
  
          return tap("{$location}/{$newName}", function ($to) use ($from) {
              $this->media->move($from, $to);
          });
      }
code_tokens: private function moveDirectory ( $ from , $ location , $ newName ) { $ newName = Str :: slug ( $ newName ) ; return tap ( "{$location}/{$newName}" , function ( $ to ) use ( $ from ) { $ this -> media -> move ( $ from , $ to ) ; } ) ; }
docstring: Move directory.
  
  @param  string  $from
  @param  string  $location
  @param  string  $newName
  
  @return string
docstring_tokens: Move directory .