original_string: protected function processMap($arr, $prefix='') {
          
          foreach ($arr as $uri => $options) {
              
              $uri = $prefix . $this->preProcessURI($uri);
              
              foreach ($options as $method => $target) {
  
                  if (!is_array($target)) continue;
  
                  if (array_key_exists('name', $target)) {
                      $this->map($method, $uri, $target, $target['name']);
                  } else {
                      $this->map($method, $uri, $target);
                  }
              }
          }
          
      }
code: protected function processMap($arr, $prefix='') {
          
          foreach ($arr as $uri => $options) {
              
              $uri = $prefix . $this->preProcessURI($uri);
              
              foreach ($options as $method => $target) {
  
                  if (!is_array($target)) continue;
  
                  if (array_key_exists('name', $target)) {
                      $this->map($method, $uri, $target, $target['name']);
                  } else {
                      $this->map($method, $uri, $target);
                  }
              }
          }
          
      }
code_tokens: protected function processMap ( $ arr , $ prefix = '' ) { foreach ( $ arr as $ uri => $ options ) { $ uri = $ prefix . $ this -> preProcessURI ( $ uri ) ; foreach ( $ options as $ method => $ target ) { if ( ! is_array ( $ target ) ) continue ; if ( array_key_exists ( 'name' , $ target ) ) { $ this -> map ( $ method , $ uri , $ target , $ target [ 'name' ] ) ; } else { $ this -> map ( $ method , $ uri , $ target ) ; } } } }
docstring: For each array item, pre process and add to global mapping
  
  @param array $arr
  @param string $prefix
docstring_tokens: For each array item pre process and add to global mapping