original_string: private function get_component_contexts($component) {
  
          if (empty($component)) {
              return $this->contexts;
          }
  
          $componentcontexts = array();
          foreach ($this->contexts as $key => $path) {
              if ($component == '' || $component === $key) {
                  $componentcontexts[$key] = $path;
              }
          }
  
          return $componentcontexts;
      }
code: private function get_component_contexts($component) {
  
          if (empty($component)) {
              return $this->contexts;
          }
  
          $componentcontexts = array();
          foreach ($this->contexts as $key => $path) {
              if ($component == '' || $component === $key) {
                  $componentcontexts[$key] = $path;
              }
          }
  
          return $componentcontexts;
      }
code_tokens: private function get_component_contexts ( $ component ) { if ( empty ( $ component ) ) { return $ this -> contexts ; } $ componentcontexts = array ( ) ; foreach ( $ this -> contexts as $ key => $ path ) { if ( $ component == '' || $ component === $ key ) { $ componentcontexts [ $ key ] = $ path ; } } return $ componentcontexts ; }
docstring: Get component contexts.
  
  @param string $component component name.
  @return array
docstring_tokens: Get component contexts .