mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 19:06:49 -04:00
Remove unnecessary check ?? '' from non-null
This commit is contained in:
parent
fce4fbc601
commit
0c87f1f262
1 changed files with 2 additions and 2 deletions
|
@ -1582,7 +1582,7 @@ final class Ebook{
|
|||
}
|
||||
|
||||
if(isset($this->IndexableText)){
|
||||
$this->IndexableText = trim($this->IndexableText ?? '');
|
||||
$this->IndexableText = trim($this->IndexableText);
|
||||
|
||||
if($this->IndexableText == ''){
|
||||
$error->Add(new Exceptions\EbookIndexableTextRequiredException());
|
||||
|
@ -1593,7 +1593,7 @@ final class Ebook{
|
|||
}
|
||||
|
||||
if(isset($this->IndexableAuthors)){
|
||||
$this->IndexableAuthors = trim($this->IndexableAuthors ?? '');
|
||||
$this->IndexableAuthors = trim($this->IndexableAuthors);
|
||||
|
||||
if($this->IndexableAuthors == ''){
|
||||
$error->Add(new Exceptions\EbookIndexableAuthorsRequiredException());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue