original_string: private function getDestinations($name, $location)
      {
          $selected     = ($isHome = $location === '/') ? $name : "{$location}/{$name}";
          $destinations = $this->media->directories($location)
              ->pluck('path')
              ->reject(function ($path) use ($selected) {
                  return $path === $selected;
              })
              ->values();
  
          if ( ! $isHome)
              $destinations->prepend('..');
  
          return $destinations;
      }
code: private function getDestinations($name, $location)
      {
          $selected     = ($isHome = $location === '/') ? $name : "{$location}/{$name}";
          $destinations = $this->media->directories($location)
              ->pluck('path')
              ->reject(function ($path) use ($selected) {
                  return $path === $selected;
              })
              ->values();
  
          if ( ! $isHome)
              $destinations->prepend('..');
  
          return $destinations;
      }
code_tokens: private function getDestinations ( $ name , $ location ) { $ selected = ( $ isHome = $ location === '/' ) ? $ name : "{$location}/{$name}" ; $ destinations = $ this -> media -> directories ( $ location ) -> pluck ( 'path' ) -> reject ( function ( $ path ) use ( $ selected ) { return $ path === $ selected ; } ) -> values ( ) ; if ( ! $ isHome ) $ destinations -> prepend ( '..' ) ; return $ destinations ; }
docstring: Get the destinations paths.
  
  @param  string  $name
  @param  string  $location
  
  @return \Arcanesoft\Media\Entities\DirectoryCollection
docstring_tokens: Get the destinations paths .