Code Duplication    Length = 7-7 lines in 4 locations

src/component/Hooks/Action.php 2 locations

@@ 119-125 (lines=7) @@
116
            self::_call_all_hook($all_args);
117
        }
118
119
        if (!isset(Filter::$filters[$tag])) {
120
            if (isset(Filter::$filters['all'])) {
121
                array_pop(Filter::$currentFilter);
122
            }
123
124
            return;
125
        }
126
127
        if (!isset(Filter::$filters['all'])) {
128
            Filter::$currentFilter[] = $tag;
@@ 187-193 (lines=7) @@
184
            self::$_call_all_hook($all_args);
185
        }
186
187
        if (!isset(Filter::$filters[$tag])) {
188
            if (isset(Filter::$filters['all'])) {
189
                array_pop(Filter::$currentFilter);
190
            }
191
192
            return;
193
        }
194
195
        if (!isset(Filter::$filters['all'])) {
196
            Filter::$currentFilter[] = $tag;

src/component/Hooks/Filter.php 2 locations

@@ 176-182 (lines=7) @@
173
            self::callAllHook($args);
174
        }
175
176
        if (!isset(self::$filters[$tag])) {
177
            if (isset(self::$filters['all'])) {
178
                array_pop(self::$currentFilter);
179
            }
180
181
            return $value;
182
        }
183
184
        if (!isset(self::$filters['all'])) {
185
            self::$currentFilter[] = $tag;
@@ 234-240 (lines=7) @@
231
            self::callAllHook($all_args);
232
        }
233
234
        if (!isset(self::$filters[$tag])) {
235
            if (isset(self::$filters['all'])) {
236
                array_pop(self::$currentFilter);
237
            }
238
239
            return $args[0];
240
        }
241
242
        if (!isset(self::$filters['all'])) {
243
            self::$currentFilter[] = $tag;