@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | { |
25 | 25 | // if the status value is true, |
26 | 26 | // we send output generated from the token value. |
27 | - if($this->checkStatus()){ |
|
27 | + if ($this->checkStatus()) { |
|
28 | 28 | $this->setAuthenticateSuccess(true); |
29 | 29 | return true; |
30 | 30 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | { |
41 | 41 | // if the status value is true, |
42 | 42 | // we send output generated from the token value. |
43 | - if($this->checkStatus()){ |
|
43 | + if ($this->checkStatus()) { |
|
44 | 44 | return true; |
45 | 45 | } |
46 | 46 | |
@@ -53,11 +53,11 @@ discard block |
||
53 | 53 | */ |
54 | 54 | protected function getResult() |
55 | 55 | { |
56 | - $result= []; |
|
56 | + $result = []; |
|
57 | 57 | |
58 | 58 | // if the status value is true, |
59 | 59 | // we send output generated from the token value. |
60 | - if($this->checkStatus()){ |
|
60 | + if ($this->checkStatus()) { |
|
61 | 61 | $result['message'] = 'token success'; |
62 | 62 | $result['token'] = $this->params['token']; |
63 | 63 | $result['user'] = $this->params['data']; |
@@ -79,12 +79,12 @@ discard block |
||
79 | 79 | * |
80 | 80 | * @param bool $value |
81 | 81 | */ |
82 | - private function setAuthenticateSuccess($value=true) |
|
82 | + private function setAuthenticateSuccess($value = true) |
|
83 | 83 | { |
84 | - if(app()->has('authenticateSuccess')){ |
|
84 | + if (app()->has('authenticateSuccess')) { |
|
85 | 85 | app()->terminate('authenticateSuccess'); |
86 | 86 | } |
87 | 87 | |
88 | - app()->register('authenticateSuccess',$value); |
|
88 | + app()->register('authenticateSuccess', $value); |
|
89 | 89 | } |
90 | 90 | } |
91 | 91 | \ No newline at end of file |