original_string: protected function getReferenceSource(Model $model, $source = null)
      {
          if (null === $source) {
              // Get model information for the model
              $information = $this->getInformationRepository()->getByModel($model);
  
              if ($information && $information->reference->source) {
                  $source = $information->reference->source;
              }
          }
  
          if ( ! $source) return null;
  
          return $source;
      }
code: protected function getReferenceSource(Model $model, $source = null)
      {
          if (null === $source) {
              // Get model information for the model
              $information = $this->getInformationRepository()->getByModel($model);
  
              if ($information && $information->reference->source) {
                  $source = $information->reference->source;
              }
          }
  
          if ( ! $source) return null;
  
          return $source;
      }
code_tokens: protected function getReferenceSource ( Model $ model , $ source = null ) { if ( null === $ source ) { // Get model information for the model $ information = $ this -> getInformationRepository ( ) -> getByModel ( $ model ) ; if ( $ information && $ information -> reference -> source ) { $ source = $ information -> reference -> source ; } } if ( ! $ source ) return null ; return $ source ; }
docstring: Returns the source to feed to the reference strategy.
  
  @param Model       $model
  @param string|null $source
  @return string|null
docstring_tokens: Returns the source to feed to the reference strategy .