Skip to content

Commit

Permalink
style: run cs-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
datamweb committed Aug 19, 2024
1 parent 873d0f0 commit c7036a4
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions user_guide_src/source/outgoing/api_responses/018.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
<?php

namespace App\Libraries;

use CodeIgniter\API\ResponseTrait;
use CodeIgniter\HTTP\Response;

class MyCustomClass
{
use ResponseTrait;

protected Response $response;

public function __construct()
{
// Manually create a Response object
$this->response = service('response');
}

public function createUser()
{
return $this->respondCreated(['message' => 'User created.']);
}
}
<?php

namespace App\Libraries;

use CodeIgniter\API\ResponseTrait;
use CodeIgniter\HTTP\Response;

class MyCustomClass
{
use ResponseTrait;

protected Response $response;

public function __construct()
{
// Manually create a Response object
$this->response = service('response');
}

public function createUser()
{
return $this->respondCreated(['message' => 'User created.']);
}
}

0 comments on commit c7036a4

Please sign in to comment.