Skip to content

Commit

Permalink
Lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
ok200paul authored and github-actions[bot] committed Aug 28, 2024
1 parent 8ad7ab3 commit b11dd5e
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,11 @@ public function store(): JsonResponse
*/
$teamId = $this->request->get('team_id');
$userId = $this->request->get('user_id');
$model = TeamUser::where('team_id', $teamId)
->where('user_id', $userId)
->first();
$model = TeamUser::where('team_id', $teamId)
->where('user_id', $userId)
->first();

if(!$model)
{
if (!$model) {
$model = new TeamUser();

foreach ($validationArray as $key => $validationRule) {
Expand All @@ -107,7 +106,6 @@ public function store(): JsonResponse
$model->save();
}


$this->message = ApiResponse::RESPONSE_SAVED->value;
$this->data = $model;

Expand Down

0 comments on commit b11dd5e

Please sign in to comment.