Code Duplication    Length = 10-10 lines in 2 locations

src/StreamFilters/AdviceFilter.php 2 locations

@@ 225-234 (lines=10) @@
222
     *
223
     * @return boolean
224
     */
225
    protected function injectResultInjection(& $bucketData, $functionName)
226
    {
227
        $placeholderHook = Placeholders::AROUND_JOINPOINT . $functionName . Placeholders::PLACEHOLDER_CLOSE;
228
        $bucketData = str_replace(
229
            $placeholderHook,
230
            $placeholderHook . '
231
            ' . ReservedKeywords::METHOD_INVOCATION_OBJECT . '->injectResult(' . ReservedKeywords::RESULT . ');',
232
            $bucketData
233
        );
234
    }
235
236
    /**
237
     * Will inject the injection of any thrown exception into our method invocation object as we need it for later use
@@ 244-253 (lines=10) @@
241
     *
242
     * @return boolean
243
     */
244
    protected function injectExceptionInjection(& $bucketData, $functionName)
245
    {
246
        $placeholderHook = Placeholders::AFTERTHROWING_JOINPOINT . $functionName . Placeholders::PLACEHOLDER_CLOSE;
247
        $bucketData = str_replace(
248
            $placeholderHook,
249
            ReservedKeywords::METHOD_INVOCATION_OBJECT . '->injectThrownException(' . ReservedKeywords::THROWN_EXCEPTION_OBJECT . ');
250
            ' . $placeholderHook,
251
            $bucketData
252
        );
253
    }
254
255
    /**
256
     * Will look at all advices known to the aspect register and filter out pointcut expressions matching the