Completed
Push — master ( dd1fe0...0c359b )
by Sathish
09:29 queued 07:17
created
tests/Pages/SignUpFormTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/Reports/UserReport.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 {
30 30
     protected $periodfield = '"Member"."Created"';
31 31
 
32
-     // the name of the report
32
+        // the name of the report
33 33
     public function title()
34 34
     {
35 35
         return 'Customer List';
Please login to merge, or discard this patch.
src/Forms/SignUpForm.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             $signUpPersonal = Member::create();
48 48
             $form->saveInto($signUpPersonal);
49 49
             if (isset($data['DOB']) && $data['DOB']) {
50
-                  $signUpPersonal->DOB = date('Y-m-d', strtotime($data['DOB']));
50
+                    $signUpPersonal->DOB = date('Y-m-d', strtotime($data['DOB']));
51 51
             }
52 52
             $signUpPersonal->write();
53 53
             $Member = Member::get()->byId($signUpPersonal->ID);
@@ -63,10 +63,10 @@  discard block
 block discarded – undo
63 63
     }
64 64
 
65 65
 
66
-     /**
67
-     * @param Controller $controller the controller instance that is being passed to the form
68
-     * @return FieldList Fields for this form.
69
-     */
66
+        /**
67
+         * @param Controller $controller the controller instance that is being passed to the form
68
+         * @return FieldList Fields for this form.
69
+         */
70 70
     protected function getFormFields($controller = null)
71 71
     {
72 72
         $fields = FieldList::create(
Please login to merge, or discard this patch.
src/Extension/UserManagementConfigExtension.php 1 patch
Braces   +20 added lines, -16 removed lines patch added patch discarded remove patch
@@ -113,10 +113,11 @@  discard block
 block discarded – undo
113 113
         if (!$this->owner->LoginUrl()->ID && $this->getDBstatus()) {
114 114
             $LoginUrl = SiteTree::get()
115 115
                 ->filter('ClassName', 'UserManagement\Page\UserLoginPage');
116
-            if($LoginUrl->count() > 0)
117
-                return $LoginUrl->first()->ID;
118
-            else
119
-                return;
116
+            if($LoginUrl->count() > 0) {
117
+                            return $LoginUrl->first()->ID;
118
+            } else {
119
+                            return;
120
+            }
120 121
         } else {
121 122
             return $this->owner->LoginUrl()->ID;
122 123
         }
@@ -132,10 +133,11 @@  discard block
 block discarded – undo
132 133
         if (!$this->owner->LoginCallBackUrl()->ID && $this->getDBstatus()) {
133 134
             $LoginCallBackUrl = SiteTree::get()
134 135
             ->filter('ClassName', 'UserManagement\Page\UserProfilePage');
135
-            if($LoginCallBackUrl->count() > 0)
136
-                return $LoginCallBackUrl->first()->ID;
137
-            else
138
-                return;
136
+            if($LoginCallBackUrl->count() > 0) {
137
+                            return $LoginCallBackUrl->first()->ID;
138
+            } else {
139
+                            return;
140
+            }
139 141
         } else {
140 142
             return $this->owner->LoginCallBackUrl()->ID;
141 143
         }
@@ -150,10 +152,11 @@  discard block
 block discarded – undo
150 152
     {
151 153
         if (!$this->owner->LostPasswordUrl()->ID && $this->getDBstatus()) {
152 154
             $LostPasswordUrl = SiteTree::get()->filter('ClassName', 'UserManagement\Page\LostPasswordPage');
153
-            if($LostPasswordUrl->count() > 0)
154
-                return $LostPasswordUrl->first()->ID;
155
-            else
156
-                return;
155
+            if($LostPasswordUrl->count() > 0) {
156
+                            return $LostPasswordUrl->first()->ID;
157
+            } else {
158
+                            return;
159
+            }
157 160
         } else {
158 161
             return $this->owner->LostPasswordUrl()->ID;
159 162
         }
@@ -169,10 +172,11 @@  discard block
 block discarded – undo
169 172
     {
170 173
         if (!$this->owner->CustomerGroup()->ID && $this->getDBstatus()) {
171 174
             $group = Group::get()->filter('Title', 'General');
172
-            if($group->count() > 0)
173
-                return $group->first()->ID;
174
-            else
175
-                return;
175
+            if($group->count() > 0) {
176
+                            return $group->first()->ID;
177
+            } else {
178
+                            return;
179
+            }
176 180
         } else {
177 181
             return $this->owner->CustomerGroup()->ID;
178 182
         }
Please login to merge, or discard this patch.
tests/Extension/LoginHandlerExtensionTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@
 block discarded – undo
14 14
  */
15 15
 class LoginHandlerExtensionTest extends FunctionalTest
16 16
 {
17
-   /**
18
-   *
19
-   **/
17
+    /**
18
+     *
19
+     **/
20 20
     public function testRedirect()
21 21
     {
22 22
     }
Please login to merge, or discard this patch.
tests/Extension/UserManagementConfigExtensionTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,8 +74,8 @@
 block discarded – undo
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()) {
Please login to merge, or discard this patch.