private function handleProviderQuirks($provider, $customer)
    {
        switch ($provider) {
            case 'Twitter':
                if ($customer->getData('lastname') === '-') {
                    $nameParts = explode(' ', $customer->getData('firstname'));
                    if (count($nameParts) > 1) {
                        $customer->setData('firstname', $nameParts[0]);
                        $lastName = implode(' ', array_slice($nameParts, 1));
                        $customer->setData('lastname', $lastName);
                    }
                }
                break;
        }
    }
private function handleProviderQuirks($provider, $customer)
    {
        switch ($provider) {
            case 'Twitter':
                if ($customer->getData('lastname') === '-') {
                    $nameParts = explode(' ', $customer->getData('firstname'));
                    if (count($nameParts) > 1) {
                        $customer->setData('firstname', $nameParts[0]);
                        $lastName = implode(' ', array_slice($nameParts, 1));
                        $customer->setData('lastname', $lastName);
                    }
                }
                break;
        }
    }
private function handleProviderQuirks ( $ provider , $ customer ) { switch ( $ provider ) { case 'Twitter' : if ( $ customer -> getData ( 'lastname' ) === '-' ) { $ nameParts = explode ( ' ' , $ customer -> getData ( 'firstname' ) ) ; if ( count ( $ nameParts ) > 1 ) { $ customer -> setData ( 'firstname' , $ nameParts [ 0 ] ) ; $ lastName = implode ( ' ' , array_slice ( $ nameParts , 1 ) ) ; $ customer -> setData ( 'lastname' , $ lastName ) ; } } break ; } }
Some providers don't really put data in the right fields.

@param string $provider
@param Customer $customer
Some providers don t really put data in the right fields .