original_string: public function getSummaryMessages()
      {
          $messages = $this->getDetailMessages();
          $summaries = array();
          foreach ($messages as $field => $rules) {
              foreach ($rules as $options) {
                  foreach ($options as $message) {
                      $summaries[$field][] = $message;
                  }
              }
          }
          return $summaries;
      }
code: public function getSummaryMessages()
      {
          $messages = $this->getDetailMessages();
          $summaries = array();
          foreach ($messages as $field => $rules) {
              foreach ($rules as $options) {
                  foreach ($options as $message) {
                      $summaries[$field][] = $message;
                  }
              }
          }
          return $summaries;
      }
code_tokens: public function getSummaryMessages ( ) { $ messages = $ this -> getDetailMessages ( ) ; $ summaries = array ( ) ; foreach ( $ messages as $ field => $ rules ) { foreach ( $ rules as $ options ) { foreach ( $ options as $ message ) { $ summaries [ $ field ] [ ] = $ message ; } } } return $ summaries ; }
docstring: Returns summary invalid messages
  
  @return array
docstring_tokens: Returns summary invalid messages