@@ -23,7 +23,7 @@ |
||
| 23 | 23 | $this->get("user-registration/"); |
| 24 | 24 | |
| 25 | 25 | $this->submitForm("SignUpForm", "action_doSubmit", array("FirstName" => "John", |
| 26 | - "Password[_Password]" => "admin", |
|
| 26 | + "Password[_Password]" => "admin", |
|
| 27 | 27 | "Password[_ConfirmPassword]" => "admin", "Email" => "[email protected]")); |
| 28 | 28 | |
| 29 | 29 | $this->assertEquals( |
@@ -74,8 +74,8 @@ |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | - * CMS fields test |
|
| 78 | - **/ |
|
| 77 | + * CMS fields test |
|
| 78 | + **/ |
|
| 79 | 79 | public function testgetCMSFields() |
| 80 | 80 | { |
| 81 | 81 | if ($this->siteconfig->getDBstatus()) { |
@@ -94,11 +94,11 @@ discard block |
||
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |
| 97 | - * @param string $start |
|
| 98 | - * @param string $end |
|
| 99 | - * @param string $firstName |
|
| 100 | - * @return string | false |
|
| 101 | - */ |
|
| 97 | + * @param string $start |
|
| 98 | + * @param string $end |
|
| 99 | + * @param string $firstName |
|
| 100 | + * @return string | false |
|
| 101 | + */ |
|
| 102 | 102 | public function FilterByDate($start, $end) |
| 103 | 103 | { |
| 104 | 104 | $filter = false; |
@@ -113,10 +113,10 @@ discard block |
||
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | /** |
| 116 | - * @param string $firstName |
|
| 117 | - * @param string $filter |
|
| 118 | - * @return string | false |
|
| 119 | - */ |
|
| 116 | + * @param string $firstName |
|
| 117 | + * @param string $filter |
|
| 118 | + * @return string | false |
|
| 119 | + */ |
|
| 120 | 120 | public function FilterByName($filter, $firstName) |
| 121 | 121 | { |
| 122 | 122 | if ($firstName) { |
@@ -15,18 +15,18 @@ discard block |
||
| 15 | 15 | class UserProfilePageController extends PageController |
| 16 | 16 | { |
| 17 | 17 | /** |
| 18 | - * @var string |
|
| 19 | - */ |
|
| 18 | + * @var string |
|
| 19 | + */ |
|
| 20 | 20 | private static $url_segment = 'my-profile'; |
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | - * @var array |
|
| 24 | - */ |
|
| 23 | + * @var array |
|
| 24 | + */ |
|
| 25 | 25 | private static $allowed_actions = array('ProfileForm'); |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * @var mixed |
|
| 29 | - */ |
|
| 28 | + * @var mixed |
|
| 29 | + */ |
|
| 30 | 30 | private $member = false; |
| 31 | 31 | |
| 32 | 32 | public function init() |
@@ -37,9 +37,9 @@ discard block |
||
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | - * Returns the profile form |
|
| 41 | - * @return \UserManagement\Forms\ProfileForm |
|
| 42 | - */ |
|
| 40 | + * Returns the profile form |
|
| 41 | + * @return \UserManagement\Forms\ProfileForm |
|
| 42 | + */ |
|
| 43 | 43 | public function ProfileForm() |
| 44 | 44 | { |
| 45 | 45 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | $signUpPersonal = Member::create(); |
| 52 | 52 | $form->saveInto($signUpPersonal); |
| 53 | 53 | if (isset($data['DOB']) && $data['DOB']) { |
| 54 | - $signUpPersonal->DOB = date('Y-m-d', strtotime($data['DOB'])); |
|
| 54 | + $signUpPersonal->DOB = date('Y-m-d', strtotime($data['DOB'])); |
|
| 55 | 55 | } |
| 56 | 56 | $signUpPersonal->write(); |
| 57 | 57 | $Member = Member::get()->byId($signUpPersonal->ID); |
@@ -67,11 +67,11 @@ discard block |
||
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | |
| 70 | - /** |
|
| 71 | - * @param Controller $controller the controller instance that |
|
| 72 | - * is being passed to the form |
|
| 73 | - * @return FieldList Fields for this form. |
|
| 74 | - */ |
|
| 70 | + /** |
|
| 71 | + * @param Controller $controller the controller instance that |
|
| 72 | + * is being passed to the form |
|
| 73 | + * @return FieldList Fields for this form. |
|
| 74 | + */ |
|
| 75 | 75 | protected function getFormFields($controller = null) |
| 76 | 76 | { |
| 77 | 77 | $fields = FieldList::create( |