Code Duplication    Length = 10-10 lines in 3 locations

src/Indexer/BaseVisitor.php 3 locations

@@ 90-99 (lines=10) @@
87
        return [Variable::NAMESPACE_TYPE, $handle];
88
    }
89
90
    public function enterClass(N\Stmt\Class_ $node, $start_line, $end_line) {
91
        $handle = $this->insert->_class
92
            ( $node->name
93
            , $this->location->_file()
94
            , $start_line
95
            , $end_line
96
            , $this->location->_namespace()
97
            );
98
        return [Variable::CLASS_TYPE, $handle];
99
    }
100
101
    public function enterInterface(N\Stmt\Interface_ $node, $start_line, $end_line) {
102
        $handle = $this->insert->_interface
@@ 101-110 (lines=10) @@
98
        return [Variable::CLASS_TYPE, $handle];
99
    }
100
101
    public function enterInterface(N\Stmt\Interface_ $node, $start_line, $end_line) {
102
        $handle = $this->insert->_interface
103
            ( $node->name
104
            , $this->location->_file()
105
            , $start_line
106
            , $end_line
107
            , $this->location->_namespace()
108
            );
109
        return [Variable::INTERFACE_TYPE, $handle];
110
    }
111
112
    public function enterTrait(N\Stmt\Trait_ $node, $start_line, $end_line) {
113
        $handle = $this->insert->_trait
@@ 112-121 (lines=10) @@
109
        return [Variable::INTERFACE_TYPE, $handle];
110
    }
111
112
    public function enterTrait(N\Stmt\Trait_ $node, $start_line, $end_line) {
113
        $handle = $this->insert->_trait
114
            ( $node->name
115
            , $this->location->_file()
116
            , $start_line
117
            , $end_line
118
            , $this->location->_namespace()
119
            );
120
        return [Variable::INTERFACE_TYPE, $handle];
121
    }
122
123
    public function enterMethod(N\Stmt\ClassMethod $node, $start_line, $end_line) {
124
        $handle = $this->insert->_method