Code Duplication    Length = 12-12 lines in 2 locations

src/Response/Response.php 2 locations

@@ 808-819 (lines=12) @@
805
     *
806
     * @return Response
807
     */
808
    public function includeScript($sFileName, $sType = null, $sId = null)
809
    {
810
        $command = ['cmd'  =>  'in'];
811
812
        if(($sType))
813
        {
814
            $command['type'] = trim((string)$sType, " \t");
815
        }
816
        if(($sId))
817
        {
818
            $command['elm_id'] = trim((string)$sId, " \t");
819
        }
820
821
        return $this->addCommand($command, trim((string)$sFileName, " \t"));
822
    }
@@ 832-843 (lines=12) @@
829
     *
830
     * @return Response
831
     */
832
    public function includeScriptOnce($sFileName, $sType = null, $sId = null)
833
    {
834
        $command = ['cmd' => 'ino'];
835
836
        if(($sType))
837
        {
838
            $command['type'] = trim((string)$sType, " \t");
839
        }
840
        if(($sId))
841
        {
842
            $command['elm_id'] = trim((string)$sId, " \t");
843
        }
844
845
        return $this->addCommand($command, trim((string)$sFileName, " \t"));
846
    }