Skip to content

Commit

Permalink
Apply yoda
Browse files Browse the repository at this point in the history
  • Loading branch information
dmvdbrugge committed Jul 9, 2018
1 parent 58a596c commit db725c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fixer/Phpdoc/PhpdocNoEmptyReturnFixer.php
Expand Up @@ -106,7 +106,7 @@ private function fixAnnotation(DocBlock $doc, Annotation $annotation)
{
$types = $annotation->getTypes();

if (count($types) === 1 && ($types[0] === 'null' || $types[0] === 'void')) {
if (1 === count($types) && ('null' === $types[0] || 'void' === $types[0])) {
$annotation->remove();
}
}
Expand Down

0 comments on commit db725c7

Please sign in to comment.