Code Duplication    Length = 12-12 lines in 2 locations

source/DomComponentsByDanielGP.php 2 locations

@@ 524-535 (lines=12) @@
521
     * @param string $additionalStyle
522
     * @return string
523
     */
524
    public function setCalendarControl($controlName, $additionalStyle = '')
525
    {
526
        return $this->setStringIntoTag(' ', 'span', [
527
                    'onclick' => implode('', [
528
                        'javascript:NewCssCal(\'' . $controlName,
529
                        '\',\'yyyyMMdd\',\'dropdown\',false,\'24\',false);',
530
                    ]),
531
                    'class'   => 'fa fa-calendar',
532
                    'id'      => $controlName . '_picker',
533
                    'style'   => 'cursor:pointer;' . $additionalStyle,
534
        ]);
535
    }
536
537
    /**
538
     * Set a control to a user-friendly calendar with time included
@@ 544-555 (lines=12) @@
541
     * @param string $additionalStyle
542
     * @return string
543
     */
544
    public function setCalendarControlWithTime($controlName, $additionalStyle = '')
545
    {
546
        return $this->setStringIntoTag(' ', 'span', [
547
                    'onclick' => implode('', [
548
                        'javascript:NewCssCal(\'' . $controlName,
549
                        '\',\'yyyyMMdd\',\'dropdown\',true,\'24\',true);',
550
                    ]),
551
                    'class'   => 'fa fa-calendar',
552
                    'id'      => $controlName . '_picker',
553
                    'style'   => 'cursor:pointer;' . $additionalStyle,
554
        ]);
555
    }
556
557
    /**
558
     * Returns css codes