Code Duplication    Length = 3-3 lines in 2 locations

src/Plugins/Annotation.php 2 locations

@@ 77-79 (lines=3) @@
74
                $description = $factory->create($property->getDocComment());
75
                $tags = $description->getTags('var');
76
77
                if(!count($tags)) {
78
                    throw new Exception("No var tag for ".$entity.'::'.$property->getName());
79
                }
80
81
                if(count($tags) > 1) {
82
                    throw new Exception("Invalid var tag for ".$entity.'::'.$property->getName());
@@ 81-83 (lines=3) @@
78
                    throw new Exception("No var tag for ".$entity.'::'.$property->getName());
79
                }
80
81
                if(count($tags) > 1) {
82
                    throw new Exception("Invalid var tag for ".$entity.'::'.$property->getName());
83
                }
84
85
                $property = $this->toUnderscore($property->getName());
86
                $type = $this->getTarantoolType($tags[0]->getType());