original_string: public function getRequirementErrors(array $requirements)
      {
          $errors = array();
          foreach ($requirements as $items) {
              foreach ($items as $name => $info) {
                  if (empty($info['status'])) {
                      $errors[$info['severity']][] = $name;
                  }
              }
          }
  
          return $errors;
      }
code: public function getRequirementErrors(array $requirements)
      {
          $errors = array();
          foreach ($requirements as $items) {
              foreach ($items as $name => $info) {
                  if (empty($info['status'])) {
                      $errors[$info['severity']][] = $name;
                  }
              }
          }
  
          return $errors;
      }
code_tokens: public function getRequirementErrors ( array $ requirements ) { $ errors = array ( ) ; foreach ( $ requirements as $ items ) { foreach ( $ items as $ name => $ info ) { if ( empty ( $ info [ 'status' ] ) ) { $ errors [ $ info [ 'severity' ] ] [ ] = $ name ; } } } return $ errors ; }
docstring: Returns an array of requirements errors
  @param array $requirements
  @return array
docstring_tokens: Returns an array of requirements errors