original_string: public function getActiveMainMenuItem()
      {
          foreach ($this->listMainMenuItems() as $item) {
              if ($this->isMainMenuItemActive($item)) {
                  return $item;
              }
          }
  
          return null;
      }
code: public function getActiveMainMenuItem()
      {
          foreach ($this->listMainMenuItems() as $item) {
              if ($this->isMainMenuItemActive($item)) {
                  return $item;
              }
          }
  
          return null;
      }
code_tokens: public function getActiveMainMenuItem ( ) { foreach ( $ this -> listMainMenuItems ( ) as $ item ) { if ( $ this -> isMainMenuItemActive ( $ item ) ) { return $ item ; } } return null ; }
docstring: Returns the currently active main menu item
  @param mixed $item Returns the item object or null.
docstring_tokens: Returns the currently active main menu item