Skip to content

Commit

Permalink
#145: Simplified isEtAl method.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Khalipau committed Feb 8, 2023
1 parent 3910bb7 commit 01bf1c2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/Rendering/Name/Name.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,17 +251,12 @@ private function cloneNamePOSC($name)
*/
protected function isEtAl($data, $resultNames): bool
{
if (count($data) > 1
return count($data) > 1
&& !empty($resultNames)
&& !empty($this->etAl)
&& !empty($this->etAlMin)
&& !empty($this->etAlUseFirst)
&& count($data) != count($resultNames)
) {
return true;
}

return false;
&& count($data) != count($resultNames);
}

/**
Expand Down

0 comments on commit 01bf1c2

Please sign in to comment.