Skip to content

Commit

Permalink
fix: analyse
Browse files Browse the repository at this point in the history
  • Loading branch information
thuankg1752 committed Jan 11, 2025
1 parent 02943fa commit ef96a57
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Http/Controllers/TagController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,21 @@
use CSlant\Blog\Api\Http\Resources\TagResource;
use CSlant\Blog\Core\Facades\Base\SlugHelper;
use CSlant\Blog\Core\Http\Controllers\Base\BaseTagController;
use CSlant\Blog\Core\Http\Responses\Base\BaseHttpResponse;
use CSlant\Blog\Core\Models\Slug;

/**
* Class TagController
*
* @package CSlant\Blog\Api\Http\Controllers
*
* @group Blog
*
* @authenticated
*
* @method BaseHttpResponse httpResponse()
* @method BaseHttpResponse setData(mixed $data)
*/
class TagController extends BaseTagController
{
/**
Expand All @@ -18,6 +32,7 @@ class TagController extends BaseTagController
*/
public function findBySlug(string $slug)

Check failure on line 33 in src/Http/Controllers/TagController.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.2

Method CSlant\Blog\Api\Http\Controllers\TagController::findBySlug() has no return type specified.

Check failure on line 33 in src/Http/Controllers/TagController.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.3

Method CSlant\Blog\Api\Http\Controllers\TagController::findBySlug() has no return type specified.

Check failure on line 33 in src/Http/Controllers/TagController.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.4

Method CSlant\Blog\Api\Http\Controllers\TagController::findBySlug() has no return type specified.

Check failure on line 33 in src/Http/Controllers/TagController.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.1

Method CSlant\Blog\Api\Http\Controllers\TagController::findBySlug() has no return type specified.

Check failure on line 33 in src/Http/Controllers/TagController.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.2

Method CSlant\Blog\Api\Http\Controllers\TagController::findBySlug() has no return type specified.

Check failure on line 33 in src/Http/Controllers/TagController.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.3

Method CSlant\Blog\Api\Http\Controllers\TagController::findBySlug() has no return type specified.

Check failure on line 33 in src/Http/Controllers/TagController.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.4

Method CSlant\Blog\Api\Http\Controllers\TagController::findBySlug() has no return type specified.
{
/** @var Slug $slug */
$slug = SlugHelper::getSlug($slug, SlugHelper::getPrefix(Tag::class));

Check failure on line 36 in src/Http/Controllers/TagController.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.2

Class Botble\Blog\Models\Tag not found.

Check failure on line 36 in src/Http/Controllers/TagController.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.3

Class Botble\Blog\Models\Tag not found.

Check failure on line 36 in src/Http/Controllers/TagController.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.4

Class Botble\Blog\Models\Tag not found.

Check failure on line 36 in src/Http/Controllers/TagController.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.1

Class Botble\Blog\Models\Tag not found.

Check failure on line 36 in src/Http/Controllers/TagController.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.2

Class Botble\Blog\Models\Tag not found.

Check failure on line 36 in src/Http/Controllers/TagController.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.3

Class Botble\Blog\Models\Tag not found.

Check failure on line 36 in src/Http/Controllers/TagController.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.4

Class Botble\Blog\Models\Tag not found.
if (!$slug) {
return $this
Expand Down

0 comments on commit ef96a57

Please sign in to comment.