original_string: public function getComponent($name)
      {
          if (!$this->activePartial) {
              return null;
          }
  
          $component = $this->findComponentFromStack($name, $this->activePartial);
          if ($component !== null) {
              return $component;
          }
  
          foreach ($this->partialStack as $stack) {
              $component = $this->findComponentFromStack($name, $stack);
              if ($component !== null) {
                  return $component;
              }
          }
  
          return null;
      }
code: public function getComponent($name)
      {
          if (!$this->activePartial) {
              return null;
          }
  
          $component = $this->findComponentFromStack($name, $this->activePartial);
          if ($component !== null) {
              return $component;
          }
  
          foreach ($this->partialStack as $stack) {
              $component = $this->findComponentFromStack($name, $stack);
              if ($component !== null) {
                  return $component;
              }
          }
  
          return null;
      }
code_tokens: public function getComponent ( $ name ) { if ( ! $ this -> activePartial ) { return null ; } $ component = $ this -> findComponentFromStack ( $ name , $ this -> activePartial ) ; if ( $ component !== null ) { return $ component ; } foreach ( $ this -> partialStack as $ stack ) { $ component = $ this -> findComponentFromStack ( $ name , $ stack ) ; if ( $ component !== null ) { return $ component ; } } return null ; }
docstring: Returns a component by its alias from the partial stack.
docstring_tokens: Returns a component by its alias from the partial stack .