Code Duplication    Length = 12-12 lines in 2 locations

src/Rules/DependOn.php 1 location

@@ 127-138 (lines=12) @@
124
            });
125
    }
126
127
    protected function register_error_suppressor_listener(ListenerRegistry $registry) {
128
        $registry->on_enter_misc
129
            ( [N\Expr\ErrorSuppress::class]
130
            , function(Insert $insert, Location $location, N\Expr\ErrorSuppress $node) {
131
                $language_construct = $insert->_language_construct("@");
132
                $this->insert_relation_into
133
                    ( $insert
134
                    , $location
135
                    , $language_construct
136
                    );
137
            });
138
        }
139
}
140

src/Rules/Invoke.php 1 location

@@ 108-119 (lines=12) @@
105
            });
106
    }
107
108
    protected function register_eval_listener(ListenerRegistry $registry) {
109
        $registry->on_enter_misc
110
            ( [N\Expr\Eval_::class]
111
            , function(Insert $insert, Location $location, N\Expr\Eval_ $node) {
112
                $eval_ = $insert->_language_construct("eval");
113
                $this->insert_relation_into
114
                    ( $insert
115
                    , $location
116
                    , $eval_
117
                    );
118
            });
119
    }
120
}
121