Code Duplication    Length = 3-3 lines in 2 locations

src/Plugin/Annotation.php 2 locations

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