Skip to content

Commit

Permalink
🎨 Coding styles
Browse files Browse the repository at this point in the history
  • Loading branch information
gturpin-dev committed Nov 20, 2024
1 parent 95aabae commit 87b3a85
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/Tempest/Http/src/Commands/MakeResponseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

namespace Tempest\Http\Commands;

use Tempest\Http\Stubs\ResponseStub;
use Tempest\Generation\Exceptions\FileGenerationFailedException;
use Tempest\Generation\Exceptions\FileGenerationAbortedException;
use Tempest\Generation\DataObjects\StubFile;
use Tempest\Core\PublishesFiles;
use Tempest\Console\ConsoleCommand;
use Tempest\Console\ConsoleArgument;
use Tempest\Console\ConsoleCommand;
use Tempest\Core\PublishesFiles;
use Tempest\Generation\DataObjects\StubFile;
use Tempest\Generation\Exceptions\FileGenerationAbortedException;
use Tempest\Generation\Exceptions\FileGenerationFailedException;
use Tempest\Http\Stubs\ResponseStub;

final class MakeResponseCommand
{
Expand Down
3 changes: 2 additions & 1 deletion src/Tempest/Http/src/Stubs/ResponseStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ final class ResponseStub implements Response
{
use IsResponse;

public function __construct() {
public function __construct()
{
$this->setStatus(Status::OK);
$this->addHeader('Content-Type', 'application/json');
}
Expand Down

0 comments on commit 87b3a85

Please sign in to comment.