Code Duplication    Length = 10-10 lines in 2 locations

src/EMT/Tret/AbstractTret.php 2 locations

@@ 130-139 (lines=10) @@
127
        return array($this, $name);
128
    }
129
130
    private function _pre_parse()
131
    {
132
        $this->pre_parse();
133
        foreach ($this->rules as $rule) {
134
            if (!isset($rule['init'])) continue;
135
            $m = $this->getmethod($rule['init']);
136
            if (!$m) continue;
137
            call_user_func($m);
138
        }
139
    }
140
141
    private function _post_parse()
142
    {
@@ 141-150 (lines=10) @@
138
        }
139
    }
140
141
    private function _post_parse()
142
    {
143
        foreach ($this->rules as $rule) {
144
            if (!isset($rule['deinit'])) continue;
145
            $m = $this->getmethod($rule['deinit']);
146
            if (!$m) continue;
147
            call_user_func($m);
148
        }
149
        $this->post_parse();
150
    }
151
152
    private function rule_order_sort($a, $b)
153
    {