CC-4090: Make code style PSR compliant

-removed all trailing whitespace in forms directory
-replace all tabs with 4 spaces
This commit is contained in:
Martin Konecny 2012-07-10 18:55:44 -04:00
parent d9cde230cd
commit 7ce4934cdc
25 changed files with 297 additions and 297 deletions

View file

@ -4,17 +4,17 @@ class Application_Form_Login extends Zend_Form
{
public function init()
{
{
global $CC_CONFIG;
// Set the method for the display form to POST
// Set the method for the display form to POST
$this->setMethod('post');
$this->setDecorators(array(
array('ViewScript', array('viewScript' => 'form/login.phtml'))
));
// Add username element
// Add username element
$this->addElement('text', 'username', array(
'label' => 'Username:',
'class' => 'input_text',
@ -28,8 +28,8 @@ class Application_Form_Login extends Zend_Form
'ViewHelper'
)
));
// Add password element
// Add password element
$this->addElement('password', 'password', array(
'label' => 'Password:',
'class' => 'input_text',
@ -43,7 +43,7 @@ class Application_Form_Login extends Zend_Form
'ViewHelper'
)
));
$recaptchaNeeded = false;
if(Application_Model_LoginAttempts::getAttempts($_SERVER['REMOTE_ADDR']) >= 3){
$recaptchaNeeded = true;
@ -52,8 +52,8 @@ class Application_Form_Login extends Zend_Form
// recaptcha
$this->addRecaptcha();
}
// Add the submit button
// Add the submit button
$this->addElement('submit', 'submit', array(
'ignore' => true,
'label' => 'Login',
@ -64,13 +64,13 @@ class Application_Form_Login extends Zend_Form
));
}
public function addRecaptcha(){
$pubKey = '6Ld4JsISAAAAAIxUKT4IjjOGi3DHqdoH2zk6WkYG';
$privKey = '6Ld4JsISAAAAAJynYlXdrE4hfTReTSxYFe5szdyv';
$recaptcha = new Zend_Service_ReCaptcha($pubKey, $privKey);
$captcha = new Zend_Form_Element_Captcha('captcha',
array(
'label' => 'Type the characters you see in the picture below.',