original_string: protected function fixAuthorSetupParameters(array $params)
      {
          if (!isset($params['author'])) {
              $params['author'] = null;
          }
          if (preg_match('/(.*) <(.+)>/', $params['author'], $m)) {
              $params['author'] = $m[1];
              $params['author-email'] = $m[2];
          } else {
              $params['author-email'] = null;
          }
  
          return $params;
      }
code: protected function fixAuthorSetupParameters(array $params)
      {
          if (!isset($params['author'])) {
              $params['author'] = null;
          }
          if (preg_match('/(.*) <(.+)>/', $params['author'], $m)) {
              $params['author'] = $m[1];
              $params['author-email'] = $m[2];
          } else {
              $params['author-email'] = null;
          }
  
          return $params;
      }
code_tokens: protected function fixAuthorSetupParameters ( array $ params ) { if ( ! isset ( $ params [ 'author' ] ) ) { $ params [ 'author' ] = null ; } if ( preg_match ( '/(.*) <(.+)>/' , $ params [ 'author' ] , $ m ) ) { $ params [ 'author' ] = $ m [ 1 ] ; $ params [ 'author-email' ] = $ m [ 2 ] ; } else { $ params [ 'author-email' ] = null ; } return $ params ; }
docstring: Fixes the author setup parameter.
  
  In the setup you can specify an author as `Author Name <author@email.com>`.
  This function separates this into two different keys, `author` and `author_email`.
  
  @param array $params setup parameter array
  
  @return array fixed setup parameter array
docstring_tokens: Fixes the author setup parameter .