original_string: protected function loadDependencies(RecordSelector $selector)
      {
          if (empty($this->dependencies)) {
              return $selector;
          }
  
          foreach ($this->dependencies as $dependency) {
              $selector = $selector->with(
                  $dependency->getRelation(),
                  $dependency->getOptions()
              );
          }
  
          return $selector;
      }
code: protected function loadDependencies(RecordSelector $selector)
      {
          if (empty($this->dependencies)) {
              return $selector;
          }
  
          foreach ($this->dependencies as $dependency) {
              $selector = $selector->with(
                  $dependency->getRelation(),
                  $dependency->getOptions()
              );
          }
  
          return $selector;
      }
code_tokens: protected function loadDependencies ( RecordSelector $ selector ) { if ( empty ( $ this -> dependencies ) ) { return $ selector ; } foreach ( $ this -> dependencies as $ dependency ) { $ selector = $ selector -> with ( $ dependency -> getRelation ( ) , $ dependency -> getOptions ( ) ) ; } return $ selector ; }
docstring: Apply dependencies for RecordSelector
  
  @param RecordSelector $selector
  @return RecordSelector
docstring_tokens: Apply dependencies for RecordSelector