public function validatePhoneNumber($phoneNumber, $verificationCode)
    {
        Piwik::checkUserIsNotAnonymous();

        $phoneNumbers = $this->retrievePhoneNumbers();

        if (isset($phoneNumbers[$phoneNumber])) {
            if ($verificationCode == $phoneNumbers[$phoneNumber]) {

                $phoneNumbers[$phoneNumber] = null;
                $this->savePhoneNumbers($phoneNumbers);
                return true;
            }
        }

        return false;
    }
public function validatePhoneNumber($phoneNumber, $verificationCode)
    {
        Piwik::checkUserIsNotAnonymous();

        $phoneNumbers = $this->retrievePhoneNumbers();

        if (isset($phoneNumbers[$phoneNumber])) {
            if ($verificationCode == $phoneNumbers[$phoneNumber]) {

                $phoneNumbers[$phoneNumber] = null;
                $this->savePhoneNumbers($phoneNumbers);
                return true;
            }
        }

        return false;
    }
public function validatePhoneNumber ( $ phoneNumber , $ verificationCode ) { Piwik :: checkUserIsNotAnonymous ( ) ; $ phoneNumbers = $ this -> retrievePhoneNumbers ( ) ; if ( isset ( $ phoneNumbers [ $ phoneNumber ] ) ) { if ( $ verificationCode == $ phoneNumbers [ $ phoneNumber ] ) { $ phoneNumbers [ $ phoneNumber ] = null ; $ this -> savePhoneNumbers ( $ phoneNumbers ) ; return true ; } } return false ; }
validate phone number

@param string $phoneNumber
@param string $verificationCode

@return bool true if validation code is correct, false otherwise
validate phone number