Skip to content

Commit

Permalink
Fixed namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
TriHydera committed Jul 19, 2024
1 parent d6b7011 commit ca97b44
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ The `JsonResponse` class is responsible for handling JSON responses for success
Assuming you have an instance of the `JsonResponse` class and the `Errors` class:

```php
use TriHydera\Res\JsonResponse;
use Trihydera\Res\JsonResponse;

// Create an instance of JsonResponse
$jsonResponse = new JsonResponse();

// Example usage of the useError method
$jsonResponse->useError('NotFound');
```
2 changes: 1 addition & 1 deletion src/Errors.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace TriHydera\Res;
namespace Trihydera\Res;

/**
* Class Errors
Expand Down
2 changes: 1 addition & 1 deletion src/Helpers/JsonHelpers.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace App\Res\Helpers;
namespace Trihydera\Res\Helpers;

/**
* Class JsonHelpers
Expand Down
2 changes: 1 addition & 1 deletion src/Helpers/XmlHelpers.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace App\Res\Helpers;
namespace trihydera\Res\Helpers;

/**
* Class XmlHelpers
Expand Down
2 changes: 1 addition & 1 deletion src/JsonResponse.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace TriHydera\Res;
namespace Trihydera\Res;

/**
* Handles JSON responses for success and error scenarios.
Expand Down
2 changes: 1 addition & 1 deletion src/XmlResponse.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace TriHydera\Res;
namespace Trihydera\Res;

/**
* Class XmlResponse
Expand Down

0 comments on commit ca97b44

Please sign in to comment.