original_string: public function loadTransformations(Transformer $transformer)
      {
          /** @var ConfigurationHelper $configurationHelper */
          $configurationHelper = $this->getHelper('phpdocumentor_configuration');
  
          $received = array();
          $transformations = $configurationHelper->getConfigValueFromPath('transformations/transformations');
          if (is_array($transformations)) {
              if (isset($transformations['writer'])) {
                  $received[] = $this->createTransformation($transformations);
              } else {
                  foreach ($transformations as $transformation) {
                      if (is_array($transformation)) {
                          $received[] = $this->createTransformation($transformations);
                      }
                  }
              }
          }
  
          $this->appendReceivedTransformations($transformer, $received);
      }
code: public function loadTransformations(Transformer $transformer)
      {
          /** @var ConfigurationHelper $configurationHelper */
          $configurationHelper = $this->getHelper('phpdocumentor_configuration');
  
          $received = array();
          $transformations = $configurationHelper->getConfigValueFromPath('transformations/transformations');
          if (is_array($transformations)) {
              if (isset($transformations['writer'])) {
                  $received[] = $this->createTransformation($transformations);
              } else {
                  foreach ($transformations as $transformation) {
                      if (is_array($transformation)) {
                          $received[] = $this->createTransformation($transformations);
                      }
                  }
              }
          }
  
          $this->appendReceivedTransformations($transformer, $received);
      }
code_tokens: public function loadTransformations ( Transformer $ transformer ) { /** @var ConfigurationHelper $configurationHelper */ $ configurationHelper = $ this -> getHelper ( 'phpdocumentor_configuration' ) ; $ received = array ( ) ; $ transformations = $ configurationHelper -> getConfigValueFromPath ( 'transformations/transformations' ) ; if ( is_array ( $ transformations ) ) { if ( isset ( $ transformations [ 'writer' ] ) ) { $ received [ ] = $ this -> createTransformation ( $ transformations ) ; } else { foreach ( $ transformations as $ transformation ) { if ( is_array ( $ transformation ) ) { $ received [ ] = $ this -> createTransformation ( $ transformations ) ; } } } } $ this -> appendReceivedTransformations ( $ transformer , $ received ) ; }
docstring: Load custom defined transformations.
  
  @param Transformer $transformer
  
  @todo this is an ugly implementation done for speed of development, should be refactored
  
  @return void
docstring_tokens: Load custom defined transformations .