Code Duplication    Length = 10-10 lines in 2 locations

src/Plugins/BasePlugin.php 1 location

@@ 224-233 (lines=10) @@
221
     * @param object $config configuration object to create arguments from.
222
     * @return mixed build arguments
223
     */
224
    protected function getReplyHandlerArguments($config){
225
        $args = array(
226
            $this->doGetChannel('input', $config),
227
            $this->doGetChannel('output', $config)
228
        );
229
        if($args[0] == NULL){
230
            throw new \RuntimeException('Could not receive input channel.');
231
        }
232
        return $args;
233
    }
234
235
236
    /**

src/Context/XMLContext.php 1 location

@@ 643-652 (lines=10) @@
640
     * @param object $config configuration object to create arguments from.  
641
     * @return mixed build arguments 
642
     */
643
    protected function getReplyHandlerArguments($config){
644
        $args = array(
645
            $this->doGetChannel('input', $config),
646
            $this->doGetChannel('output', $config)
647
        );
648
        if($args[0] == NULL){
649
            throw new \RuntimeException('Could not receive input channel.');
650
        }
651
        return $args;
652
    }
653
    
654
    
655
    /**