src/Meinhof/Action/SetupSiteAction.php
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;
    }
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;
    }
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 ; }
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
Fixes the author setup parameter .