@@ -60,13 +60,13 @@ |
||
| 60 | 60 | $response = $this->makeCall($data); |
| 61 | 61 | |
| 62 | 62 | // assert response status is correct. Note: this will return 200 if `HASH_ID=false` in the .env |
| 63 | - if(\Config::get('hello.hash-id')){ |
|
| 63 | + if (\Config::get('hello.hash-id')) { |
|
| 64 | 64 | $this->assertEquals('400', $response->getStatusCode()); |
| 65 | 65 | |
| 66 | 66 | $this->assertResponseContainKeyValue([ |
| 67 | 67 | 'message' => 'Only Hashed ID\'s allowed (user_id).', |
| 68 | 68 | ], $response); |
| 69 | - }else{ |
|
| 69 | + } else { |
|
| 70 | 70 | $this->assertEquals('200', $response->getStatusCode()); |
| 71 | 71 | } |
| 72 | 72 | |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | $this->assertResponseContainKeyValue([ |
| 67 | 67 | 'message' => 'Only Hashed ID\'s allowed (user_id).', |
| 68 | 68 | ], $response); |
| 69 | - }else{ |
|
| 69 | + } else{ |
|
| 70 | 70 | $this->assertEquals('200', $response->getStatusCode()); |
| 71 | 71 | } |
| 72 | 72 | |
@@ -66,13 +66,13 @@ |
||
| 66 | 66 | |
| 67 | 67 | |
| 68 | 68 | // assert response status is correct. Note: this will return 200 if `HASH_ID=false` in the .env |
| 69 | - if(\Config::get('hello.hash-id')){ |
|
| 69 | + if (\Config::get('hello.hash-id')) { |
|
| 70 | 70 | $this->assertEquals('400', $response->getStatusCode()); |
| 71 | 71 | |
| 72 | 72 | $this->assertResponseContainKeyValue([ |
| 73 | 73 | 'message' => 'Only Hashed ID\'s allowed (roles_ids.*).', |
| 74 | 74 | ], $response); |
| 75 | - }else{ |
|
| 75 | + } else { |
|
| 76 | 76 | $this->assertEquals('200', $response->getStatusCode()); |
| 77 | 77 | } |
| 78 | 78 | |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | $this->assertResponseContainKeyValue([ |
| 73 | 73 | 'message' => 'Only Hashed ID\'s allowed (roles_ids.*).', |
| 74 | 74 | ], $response); |
| 75 | - }else{ |
|
| 75 | + } else{ |
|
| 76 | 76 | $this->assertEquals('200', $response->getStatusCode()); |
| 77 | 77 | } |
| 78 | 78 | |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | public function run($userId = null) |
| 24 | 24 | { |
| 25 | - $userId = $userId ? : $this->call(GetAuthenticatedUserTask::class)->id; |
|
| 25 | + $userId = $userId ?: $this->call(GetAuthenticatedUserTask::class)->id; |
|
| 26 | 26 | |
| 27 | 27 | $user = $this->call(FindUserByIdTask::class, [$userId]); |
| 28 | 28 | |