<commit_before><?php

class sfSympalMenuAdminMenu extends sfSympalMenu
{
  public function getCredentials()
  {
    $credentials = $this->_credentials;
    foreach ($this->getChildren() as $child)
    {
      $credentials = array_merge($credentials, $child->getCredentials());
    }
    if ($credentials)
    {
      return array($credentials);
    } else {
      return array();
    }
  }
}<commit_msg>[Admin] Adding phpDoc to sfSympalMenuAdminMenu<commit_after><?php

/**
 * Generic menu class allows a menu item to be shown if the current user
 * has credentials matching its credentials or any of the credentials
 * of its children
 * 
 * @package     sfSympalAdminPlugin
 * @subpackage  menu
 * @author      <NAME> <<EMAIL>>
 */
class sfSympalMenuAdminMenu extends sfSympalMenu
{
  public function getCredentials()
  {
    $credentials = $this->_credentials;
    foreach ($this->getChildren() as $child)
    {
      $credentials = array_merge($credentials, $child->getCredentials());
    }
    if ($credentials)
    {
      return array($credentials);
    }
    else
    {
      return array();
    }
  }
}
{'fraction_non_alphanumeric': 0.11611161116111611, 'fraction_numerical': 0.0, 'mean_word_length': 3.1647940074906367, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1920213', 'n_tokens_mistral': 330, 'n_tokens_neox': 330, 'n_words': 86}