Use ::class names instead of strings in LocSubject and EbookTag

This commit is contained in:
Mike Colagrosso 2024-06-14 14:56:08 -06:00 committed by Alex Cabal
parent 43416e76db
commit 4d321061c5
2 changed files with 2 additions and 2 deletions

View file

@ -59,7 +59,7 @@ class EbookTag extends Tag{
SELECT * SELECT *
from Tags from Tags
where Name = ? where Name = ?
', [$name], 'EbookTag'); ', [$name], EbookTag::class);
if(isset($result[0])){ if(isset($result[0])){
return $result[0]; return $result[0];

View file

@ -39,7 +39,7 @@ class LocSubject{
SELECT * SELECT *
from LocSubjects from LocSubjects
where Name = ? where Name = ?
', [$name], 'LocSubject'); ', [$name], LocSubject::class);
if(isset($result[0])){ if(isset($result[0])){
return $result[0]; return $result[0];