Code Duplication    Length = 10-10 lines in 2 locations

src/Context/XMLContext.php 1 location

@@ 691-700 (lines=10) @@
688
     * @param object $config configuration object to create arguments from.  
689
     * @return mixed build arguments 
690
     */
691
    protected function getReplyHandlerArguments($config){
692
        $args = array(
693
            $this->doGetChannel('input', $config),
694
            $this->doGetChannel('output', $config)
695
        );
696
        if($args[0] == NULL){
697
            throw new \RuntimeException('Could not receive input channel.');
698
        }
699
        return $args;
700
    }
701
    
702
    
703
    /**

src/Plugins/BasePlugin.php 1 location

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