Skip to content

Commit

Permalink
codestyle(UsersController): doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fxleblanc committed Mar 1, 2016
1 parent 58b732b commit 90d2a58
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Controller/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ public function login()
];

if ($this->request->Session()->read('actionRef') && $this->request->Session()->read('controllerRef') &&
!in_array($this->request->Session()->read('actionRef'), $actionRefs)) {
!in_array($this->request->Session()->read('actionRef'), $actionRefs)
) {
return $this->redirect(['controller' => $this->request->Session()->read('controllerRef'), 'action' => $this->request->Session()->read('actionRef')]);
} elseif ($this->request->Session()->read('actionRef') == 'registerIndustry/') {
return $this->redirect(['controller' => 'Organizations', 'action' => 'submit']);
Expand Down Expand Up @@ -424,6 +425,11 @@ public function registerStudent()
$this->set('_serialize', ['user']);
}

/**
* RegisterStudentOptional method
*
* @return redirect
*/
public function registerStudentOptional()
{
$this->viewBuilder()->layout(false);
Expand Down

0 comments on commit 90d2a58

Please sign in to comment.