original_string: private function performMoveMedia($type, $location, $oldName, $newName)
      {
          $from = "{$location}/{$oldName}";
  
          switch (Str::lower($type)) {
              case Media::MEDIA_TYPE_FILE:
                  return $this->moveFile($from, $location, $newName);
  
              case Media::MEDIA_TYPE_DIRECTORY:
                  return $this->moveDirectory($from, $location, $newName);
  
              default:
                  return false;
          }
      }
code: private function performMoveMedia($type, $location, $oldName, $newName)
      {
          $from = "{$location}/{$oldName}";
  
          switch (Str::lower($type)) {
              case Media::MEDIA_TYPE_FILE:
                  return $this->moveFile($from, $location, $newName);
  
              case Media::MEDIA_TYPE_DIRECTORY:
                  return $this->moveDirectory($from, $location, $newName);
  
              default:
                  return false;
          }
      }
code_tokens: private function performMoveMedia ( $ type , $ location , $ oldName , $ newName ) { $ from = "{$location}/{$oldName}" ; switch ( Str :: lower ( $ type ) ) { case Media :: MEDIA_TYPE_FILE : return $ this -> moveFile ( $ from , $ location , $ newName ) ; case Media :: MEDIA_TYPE_DIRECTORY : return $ this -> moveDirectory ( $ from , $ location , $ newName ) ; default : return false ; } }
docstring: Perform the media movement.
  
  @param  string  $type
  @param  string  $location
  @param  string  $oldName
  @param  string  $newName
  
  @return bool|string
docstring_tokens: Perform the media movement .