Code Duplication    Length = 3-3 lines in 2 locations

src/Plugin/Annotation.php 2 locations

@@ 93-95 (lines=3) @@
90
                $description = $factory->create($property->getDocComment(), $context);
91
                $tags = $description->getTags('var');
92
93
                if (!count($tags)) {
94
                    throw new Exception("No var tag for ".$entity.'::'.$property->getName());
95
                }
96
97
                if (count($tags) > 1) {
98
                    throw new Exception("Invalid var tag for ".$entity.'::'.$property->getName());
@@ 97-99 (lines=3) @@
94
                    throw new Exception("No var tag for ".$entity.'::'.$property->getName());
95
                }
96
97
                if (count($tags) > 1) {
98
                    throw new Exception("Invalid var tag for ".$entity.'::'.$property->getName());
99
                }
100
101
                $propertyName = $this->toUnderscore($property->getName());
102
                $phpType = $tags[0]->getType();