original_string: protected function findComponentFromStack($name, $stack)
      {
          foreach ($stack['components'] as $componentInfo) {
              if ($componentInfo['name'] == $name) {
                  return $componentInfo['obj'];
              }
          }
  
          return null;
      }
code: protected function findComponentFromStack($name, $stack)
      {
          foreach ($stack['components'] as $componentInfo) {
              if ($componentInfo['name'] == $name) {
                  return $componentInfo['obj'];
              }
          }
  
          return null;
      }
code_tokens: protected function findComponentFromStack ( $ name , $ stack ) { foreach ( $ stack [ 'components' ] as $ componentInfo ) { if ( $ componentInfo [ 'name' ] == $ name ) { return $ componentInfo [ 'obj' ] ; } } return null ; }
docstring: Locates a component by its alias from the supplied stack.
docstring_tokens: Locates a component by its alias from the supplied stack .