Code Duplication    Length = 11-11 lines in 3 locations

src/Response/Response.php 3 locations

@@ 297-307 (lines=11) @@
294
     *
295
     * @return \Jaxon\Plugin\Response
296
     */
297
    public function assign($sTarget, $sAttribute, $sData)
298
    {
299
        return $this->addCommand(
300
            array(
301
                'cmd' => 'as',
302
                'id' => trim((string)$sTarget, " \t"),
303
                'prop' => trim((string)$sAttribute, " \t")
304
            ),
305
            trim((string)$sData, " \t\n")
306
        );
307
    }
308
309
    /**
310
     * Add a command to assign the specified HTML content to the given element
@@ 333-343 (lines=11) @@
330
     *
331
     * @return \Jaxon\Plugin\Response
332
     */
333
    public function append($sTarget, $sAttribute, $sData)
334
    {
335
        return $this->addCommand(
336
            array(
337
                'cmd' => 'ap',
338
                'id' => trim((string)$sTarget, " \t"),
339
                'prop' => trim((string)$sAttribute, " \t")
340
            ),
341
            trim((string)$sData, " \t\n")
342
        );
343
    }
344
345
    /**
346
     * Add a command to prepend the specified data to the given element's attribute
@@ 354-364 (lines=11) @@
351
     *
352
     * @return \Jaxon\Plugin\Response
353
     */
354
    public function prepend($sTarget, $sAttribute, $sData)
355
    {
356
        return $this->addCommand(
357
            array(
358
                'cmd' => 'pp',
359
                'id' => trim((string)$sTarget, " \t"),
360
                'prop' => trim((string)$sAttribute, " \t")
361
            ),
362
            trim((string)$sData, " \t\n")
363
        );
364
    }
365
366
    /**
367
     * Add a command to replace a specified value with another value within the given element's attribute