Merge pull request #3040 from acs-ferreira/patch-22

Clean
This commit is contained in:
Lucas Bartholemy 2018-02-25 19:31:55 +01:00 committed by GitHub
commit 99beefc2d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,10 +34,10 @@ class UploadProfileImage extends Model
*/
public function rules()
{
return array(
array('image', 'required'),
array('image', 'file', 'extensions' => 'jpg, png, jpeg, tiff', 'maxSize' => 3 * 1024 * 1024),
);
return [
['image', 'required'],
['image', 'file', 'extensions' => 'jpg, jpeg, png, tiff', 'maxSize' => 3 * 1024 * 1024],
];
}
/**
@ -45,9 +45,9 @@ class UploadProfileImage extends Model
*/
public function attributeLabels()
{
return array(
return [
'image' => Yii::t('base', 'New profile image'),
);
];
}
}