Code Duplication    Length = 10-10 lines in 3 locations

src/Response/Response.php 3 locations

@@ 394-403 (lines=10) @@
391
     *
392
     * @return \Jaxon\Plugin\Response
393
     */
394
    public function contextAssign($sAttribute, $sData)
395
    {
396
        return $this->addCommand(
397
            [
398
                'cmd' => 'c:as',
399
                'prop' => trim((string)$sAttribute, " \t")
400
            ],
401
            trim((string)$sData, " \t\n")
402
        );
403
    }
404
405
    /**
406
     * Add a command to append a value onto the specified member of the javascript
@@ 416-425 (lines=10) @@
413
     *
414
     * @return \Jaxon\Plugin\Response
415
     */
416
    public function contextAppend($sAttribute, $sData)
417
    {
418
        return $this->addCommand(
419
            [
420
                'cmd' => 'c:ap',
421
                'prop' => trim((string)$sAttribute, " \t")
422
            ],
423
            trim((string)$sData, " \t\n")
424
        );
425
    }
426
427
    /**
428
     * Add a command to prepend the speicified data to the given member of the current
@@ 438-447 (lines=10) @@
435
     *
436
     * @return \Jaxon\Plugin\Response
437
     */
438
    public function contextPrepend($sAttribute, $sData)
439
    {
440
        return $this->addCommand(
441
            [
442
                'cmd' => 'c:pp',
443
                'prop' => trim((string)$sAttribute, " \t")
444
            ],
445
            trim((string)$sData, " \t\n")
446
        );
447
    }
448
449
    /**
450
     * Add a command to to clear the value of the attribute specified in the sAttribute parameter