- some type-hints added
- array() converted to [] style
* @param $isActive Whether the City is active
* @return void
*/
- public final function enableIsActive ($isActive = TRUE) {
- $this->isActive = (bool) $isActive;
+ public final function enableIsActive (bool $isActive = TRUE) {
+ $this->isActive = $isActive;
}
/**
* @param $requestKey Key in request class
* @return void
*/
- public function encryptPassword ($requestKey) {
+ public function encryptPassword (string $requestKey) {
// Check if password is found in request
if (FrameworkBootstrap::getRequestInstance()->isRequestElementSet($requestKey)) {
// So encrypt the password and store it for later usage in
/**
* Elements for criteria
*/
- private $criteriaElements = array(
+ private $criteriaElements = [
'username',
'pass_hash',
'email' => 'email1',
'birth_day',
'birth_month',
'birth_year'
- );
+ ];
/**
* Protected constructor
* @param $requestKey Key in request class
* @return void
*/
- public function encryptPassword ($requestKey) {
+ public function encryptPassword (string $requestKey) {
// Check if password is found in request
if (FrameworkBootstrap::getRequestInstance()->isRequestElementSet($requestKey)) {
// So encrypt the password and store it for later usage in