Code Duplication    Length = 12-12 lines in 3 locations

src/Response/Response.php 3 locations

@@ 701-712 (lines=12) @@
698
     *
699
     * @return \Jaxon\Plugin\Response
700
     */
701
    public function createInput($sParent, $sType, $sName, $sId)
702
    {
703
        return $this->addCommand(
704
            array(
705
                'cmd' => 'ci',
706
                'id' => trim((string)$sParent, " \t"),
707
                'prop' => trim((string)$sId, " \t"),
708
                'type' => trim((string)$sType, " \t")
709
            ),
710
            trim((string)$sName, " \t\n")
711
        );
712
    }
713
714
    /**
715
     * Add a command to insert a new input element preceding the specified element
@@ 724-735 (lines=12) @@
721
     *
722
     * @return \Jaxon\Plugin\Response
723
     */
724
    public function insertInput($sBefore, $sType, $sName, $sId)
725
    {
726
        return $this->addCommand(
727
            array(
728
                'cmd' => 'ii',
729
                'id' => trim((string)$sBefore, " \t"),
730
                'prop' => trim((string)$sId, " \t"),
731
                'type' => trim((string)$sType, " \t")
732
            ),
733
            trim((string)$sName, " \t\n")
734
        );
735
    }
736
737
    /**
738
     * Add a command to insert a new input element after the specified element
@@ 747-758 (lines=12) @@
744
     *
745
     * @return \Jaxon\Plugin\Response
746
     */
747
    public function insertInputAfter($sAfter, $sType, $sName, $sId)
748
    {
749
        return $this->addCommand(
750
            array(
751
                'cmd' => 'iia',
752
                'id' => trim((string)$sAfter, " \t"),
753
                'prop' => trim((string)$sId, " \t"),
754
                'type' => trim((string)$sType, " \t")
755
            ),
756
            trim((string)$sName, " \t\n")
757
        );
758
    }
759
760
    /**
761
     * Add a command to set an event handler on the browser