@@ -113,10 +113,11 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | } |