original_string: public function formatLongLine(array $privileges)
      {
          $output     = \MUtil_Html::create('div');
  
          if (count($privileges)) {
              $privileges = array_combine($privileges, $privileges);
              foreach ($this->getUsedPrivileges() as $privilege => $description) {
                  if (isset($privileges[$privilege])) {
                      if (count($output) > 11) {
                          $output->append('...');
                          return $output;
                      }
                      if (\MUtil_String::contains($description, '<br/>')) {
                          $description = substr($description, 0, strpos($description, '<br/>') - 1);
                      }
                      $output->raw($description);
                      $output->br();
                  }
              }
          }
  
          return $output;
      }
code: public function formatLongLine(array $privileges)
      {
          $output     = \MUtil_Html::create('div');
  
          if (count($privileges)) {
              $privileges = array_combine($privileges, $privileges);
              foreach ($this->getUsedPrivileges() as $privilege => $description) {
                  if (isset($privileges[$privilege])) {
                      if (count($output) > 11) {
                          $output->append('...');
                          return $output;
                      }
                      if (\MUtil_String::contains($description, '<br/>')) {
                          $description = substr($description, 0, strpos($description, '<br/>') - 1);
                      }
                      $output->raw($description);
                      $output->br();
                  }
              }
          }
  
          return $output;
      }
code_tokens: public function formatLongLine ( array $ privileges ) { $ output = \ MUtil_Html :: create ( 'div' ) ; if ( count ( $ privileges ) ) { $ privileges = array_combine ( $ privileges , $ privileges ) ; foreach ( $ this -> getUsedPrivileges ( ) as $ privilege => $ description ) { if ( isset ( $ privileges [ $ privilege ] ) ) { if ( count ( $ output ) > 11 ) { $ output -> append ( '...' ) ; return $ output ; } if ( \ MUtil_String :: contains ( $ description , '<br/>' ) ) { $ description = substr ( $ description , 0 , strpos ( $ description , '<br/>' ) - 1 ) ; } $ output -> raw ( $ description ) ; $ output -> br ( ) ; } } } return $ output ; }
docstring: Output for browsing rols
  
  @param array $privileges
  @return array
docstring_tokens: Output for browsing rols