mirror of
https://github.com/standardebooks/web.git
synced 2025-07-16 11:26:37 -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)){
|
if(isset($this->IndexableText)){
|
||||||
$this->IndexableText = trim($this->IndexableText ?? '');
|
$this->IndexableText = trim($this->IndexableText);
|
||||||
|
|
||||||
if($this->IndexableText == ''){
|
if($this->IndexableText == ''){
|
||||||
$error->Add(new Exceptions\EbookIndexableTextRequiredException());
|
$error->Add(new Exceptions\EbookIndexableTextRequiredException());
|
||||||
|
@ -1593,7 +1593,7 @@ final class Ebook{
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($this->IndexableAuthors)){
|
if(isset($this->IndexableAuthors)){
|
||||||
$this->IndexableAuthors = trim($this->IndexableAuthors ?? '');
|
$this->IndexableAuthors = trim($this->IndexableAuthors);
|
||||||
|
|
||||||
if($this->IndexableAuthors == ''){
|
if($this->IndexableAuthors == ''){
|
||||||
$error->Add(new Exceptions\EbookIndexableAuthorsRequiredException());
|
$error->Add(new Exceptions\EbookIndexableAuthorsRequiredException());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue