Test Setup Failed
Push — master ( 877bfe...17b79b )
by Php Easy Api
17:08 queued 02:53
created
src/resta/Authenticate/AuthenticateResponse.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
@@ -78,12 +78,12 @@  discard block
 block discarded – undo
78 78
      *
79 79
      * @param bool $value
80 80
      */
81
-    private function setAuthenticateSuccess($value=true)
81
+    private function setAuthenticateSuccess($value = true)
82 82
     {
83
-        if(app()->has('authenticateSuccess')){
83
+        if (app()->has('authenticateSuccess')) {
84 84
             app()->terminate('authenticateSuccess');
85 85
         }
86 86
 
87
-        app()->register('authenticateSuccess',$value);
87
+        app()->register('authenticateSuccess', $value);
88 88
     }
89 89
 }
90 90
\ No newline at end of file
Please login to merge, or discard this patch.