Skip to content
Snippets Groups Projects
Unverified Commit 4429a3d4 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

ci: fix PersonModel issues with static analysis

parent 1a024bde
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,6 @@ namespace App\Models; ...@@ -10,7 +10,6 @@ namespace App\Models;
use App\Entities\Image; use App\Entities\Image;
use App\Entities\Person; use App\Entities\Person;
use CodeIgniter\Database\BaseResult;
use CodeIgniter\Database\Query; use CodeIgniter\Database\Query;
use CodeIgniter\Model; use CodeIgniter\Model;
...@@ -172,6 +171,7 @@ class PersonModel extends Model ...@@ -172,6 +171,7 @@ class PersonModel extends Model
->getLocale(); ->getLocale();
$cacheName = "taxonomy_options_{$locale}"; $cacheName = "taxonomy_options_{$locale}";
/** @var array<string, array<string, string|array<string, array<string, string>>>> $personsTaxonomy */
$personsTaxonomy = lang('PersonsTaxonomy.persons'); $personsTaxonomy = lang('PersonsTaxonomy.persons');
if (! ($options = cache($cacheName))) { if (! ($options = cache($cacheName))) {
...@@ -327,9 +327,9 @@ class PersonModel extends Model ...@@ -327,9 +327,9 @@ class PersonModel extends Model
/** /**
* Add persons to episode * Add persons to episode
* *
* @return BaseResult|bool Number of rows inserted or FALSE on failure * @return string|bool Number of rows inserted or FALSE on failure
*/ */
public function removePersonFromPodcast(int $podcastId, int $personId): bool | string public function removePersonFromPodcast(int $podcastId, int $personId): string | bool
{ {
return $this->db->table('podcasts_persons') return $this->db->table('podcasts_persons')
->delete([ ->delete([
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment