Code Duplication    Length = 10-10 lines in 3 locations

src/Response/Response.php 3 locations

@@ 415-424 (lines=10) @@
412
     *
413
     * @return \Jaxon\Plugin\Response
414
     */
415
    public function contextAssign($sAttribute, $sData)
416
    {
417
        return $this->addCommand(
418
            array(
419
                'cmd' => 'c:as',
420
                'prop' => trim((string)$sAttribute, " \t")
421
            ),
422
            trim((string)$sData, " \t\n")
423
        );
424
    }
425
426
    /**
427
     * Add a command to append a value onto the specified member of the javascript
@@ 437-446 (lines=10) @@
434
     *
435
     * @return \Jaxon\Plugin\Response
436
     */
437
    public function contextAppend($sAttribute, $sData)
438
    {
439
        return $this->addCommand(
440
            array(
441
                'cmd' => 'c:ap',
442
                'prop' => trim((string)$sAttribute, " \t")
443
            ),
444
            trim((string)$sData, " \t\n")
445
        );
446
    }
447
448
    /**
449
     * Add a command to prepend the speicified data to the given member of the current
@@ 459-468 (lines=10) @@
456
     *
457
     * @return \Jaxon\Plugin\Response
458
     */
459
    public function contextPrepend($sAttribute, $sData)
460
    {
461
        return $this->addCommand(
462
            array(
463
                'cmd' => 'c:pp',
464
                'prop' => trim((string)$sAttribute, " \t")
465
            ),
466
            trim((string)$sData, " \t\n")
467
        );
468
    }
469
470
    /**
471
     * Add a command to to clear the value of the attribute specified in the sAttribute parameter