Format code using php-cs-fixer
This commit is contained in:
parent
43d7dc92cd
commit
d52c6184b9
352 changed files with 17473 additions and 17041 deletions
|
@ -8,9 +8,9 @@ class Airtime_Decorator_SuperAdmin_Only extends Zend_Form_Decorator_Abstract
|
|||
$currentUser = Application_Model_User::getCurrentUser();
|
||||
if ($currentUser->isSuperAdmin()) {
|
||||
return $content;
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -22,8 +22,8 @@ class Airtime_Decorator_Admin_Only extends Zend_Form_Decorator_Abstract
|
|||
$currentUser = Application_Model_User::getCurrentUser();
|
||||
if ($currentUser->isSuperAdmin() || $currentUser->isAdmin()) {
|
||||
return $content;
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
Class Application_Form_Helper_ValidationTypes {
|
||||
|
||||
class Application_Form_Helper_ValidationTypes
|
||||
{
|
||||
public static function overrideNotEmptyValidator()
|
||||
{
|
||||
$validator = new Zend_Validate_NotEmpty();
|
||||
|
@ -11,7 +12,7 @@ Class Application_Form_Helper_ValidationTypes {
|
|||
|
||||
return $validator;
|
||||
}
|
||||
|
||||
|
||||
public static function overrideEmailAddressValidator()
|
||||
{
|
||||
$validator = new Zend_Validate_EmailAddress();
|
||||
|
@ -48,7 +49,7 @@ Class Application_Form_Helper_ValidationTypes {
|
|||
|
||||
return $validator;
|
||||
}
|
||||
|
||||
|
||||
public static function overrideStringLengthValidator($p_min, $p_max)
|
||||
{
|
||||
$validator = new Zend_Validate_StringLength();
|
||||
|
@ -86,11 +87,10 @@ Class Application_Form_Helper_ValidationTypes {
|
|||
$validator->setToken($p_matchAgainst);
|
||||
|
||||
$validator->setMessage(
|
||||
_("Passwords do not match"),
|
||||
_('Passwords do not match'),
|
||||
Zend_Validate_Identical::NOT_SAME
|
||||
);
|
||||
|
||||
return $validator;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue