Code Duplication    Length = 4-5 lines in 2 locations

src/Jaxon.php 2 locations

@@ 399-403 (lines=5) @@
396
        if($mResult === true)
397
        {
398
            // Handle after processing event
399
            if(isset($this->aProcessingEvents[self::PROCESSING_EVENT_AFTER]))
400
            {
401
                $bEndRequest = false;
402
                $this->aProcessingEvents[self::PROCESSING_EVENT_AFTER]->call(array($bEndRequest));
403
            }
404
            // If the called function returned no response, give the the global response instead
405
            if($xResponseManager->hasNoResponse())
406
            {
@@ 339-342 (lines=4) @@
336
        $xResponseManager = $this->getResponseManager();
337
338
        // Handle before processing event
339
        if(isset($this->aProcessingEvents[self::PROCESSING_EVENT_BEFORE]))
340
        {
341
            $this->aProcessingEvents[self::PROCESSING_EVENT_BEFORE]->call(array(&$bEndRequest));
342
        }
343
344
        if(!$bEndRequest)
345
        {